Author Topic: [PACKAGED] qt-update-notifer - Is it OK?  (Read 1443 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
[PACKAGED] qt-update-notifer - Is it OK?
« on: February 19, 2013, 12:22:16 PM »
qt-update-notifier
---------------------------
This project seeks to provide a kde technology based pclinuxos update notifier tray application.
https://github.com/mhogomchungu/qt-update-notifier#readme
License GPLv2 or higher

This is essentially a replacement for our existing GTK based update notifier written in Qt by forum member muungwana

I have done a preliminary package on my own and it seems to install and run OK on my test system. (I have not been able to test if it informs of updates properly due to lack of time)

Below are the links and I request feedback.

NOTE : This is a 32 bit only build.

SPEC - http://dl.dropbox.com/u/37931428/qt-update-notifier/pclos-qt-update-notifier.spec
LOG - http://dl.dropbox.com/u/37931428/qt-update-notifier/pclos-qt-update-notifier.spec.log
RPM - http://dl.dropbox.com/u/37931428/qt-update-notifier/qt-update-notifier-1.2.0-1slingshot2013.i586.rpm
SRPM - http://dl.dropbox.com/u/37931428/qt-update-notifier/qt-update-notifier-1.2.0-1slingshot2013.src.rpm

Thank you very much muungwana :)
« Last Edit: April 19, 2013, 02:35:40 AM by TerryN »
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1153
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #1 on: February 19, 2013, 12:33:21 PM »
Hi sling-shot,

one little thing in the spec please replace libqt4-devel by %{_lib}qt4-devel so it should be buildable from this spec on 64bit also.

i didnt test the program itself i don't want to mess up my lxde ;D

but the build log looks good for me.

regards
ghostbunny
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #2 on: February 19, 2013, 01:02:34 PM »
Although it doesn't make much difference for this (small) application you should really use:

Code: [Select]
%cmake
rather than:

Code: [Select]
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`  -DCMAKE_BUILD_TYPE=release
This ensures that all the compiler and linker flags are set correctly as well as prefixes for both 32bit and 64bit and other standard paths.

Terry.

Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #3 on: February 19, 2013, 01:34:35 PM »

one little thing in the spec please replace libqt4-devel by %{_lib}qt4-devel so it should be buildable from this spec on 64bit also.


Can this be followed as a rule of thumb in general?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #4 on: February 19, 2013, 01:37:17 PM »
Although it doesn't make much difference for this (small) application you should really use:

Code: [Select]
%cmake
rather than:

Code: [Select]
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`  -DCMAKE_BUILD_TYPE=release
This ensures that all the compiler and linker flags are set correctly as well as prefixes for both 32bit and 64bit and other standard paths.

Terry.



I copied that line from the build instructions given in the source. Thanks for correcting me.

--------------

Also, the instruction in the source was to use "make install" but using that produced error in not being able to copy the .png images from build to buildroot.
I tried the alternative %makeinstall_std which I had seen being used elsewhere and it worked.
(Do not know the difference)
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1153
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #5 on: February 19, 2013, 01:51:44 PM »

one little thing in the spec please replace libqt4-devel by %{_lib}qt4-devel so it should be buildable from this spec on 64bit also.


Can this be followed as a rule of thumb in general?

no because there are still some lib/lib devel packages in 64bit repo which do not have the 64 tag but in the case of libqt4-devel it is %{_lib}, always. which means there exists a lib64qt4-devel
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1153
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #6 on: February 19, 2013, 01:57:09 PM »
Also, the instruction in the source was to use "make install" but using that produced error in not being able to copy the .png images from build to buildroot.
I tried the alternative %makeinstall_std which I had seen being used elsewhere and it worked.
(Do not know the difference)

definition of %makeinstall_std

Code: [Select]
%makeinstall_std make DESTDIR=%{?buildroot:%{buildroot}} install
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #7 on: February 19, 2013, 03:11:50 PM »
Can this be followed as a rule of thumb in general?
no because there are still some lib/lib devel packages in 64bit repo which do not have the 64 tag but in the case of libqt4-devel it is %{_lib}, always. which means there exists a lib64qt4-devel

You should look at the "provides" of the -devel package to see if there is an architecture neutral virtual provide for the lib and use that where possible.
For example:

Code: [Select]
[terry@localhost ~]$ rpm -q --provides lib64qt4-devel
qt-devel = 4.8.4-2pclos2013
qt4-devel = 4.8.4-2pclos2013
libqt4-devel = 4.8.4-2pclos2013
...

So you could use qt-devel, qt4-devel or libqt4-devel.  If there is no architecture neutral VP then you will need to use the %{_lib}qt4-devel format.

Terry.
« Last Edit: February 19, 2013, 03:29:38 PM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Online muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #8 on: February 19, 2013, 04:37:01 PM »

thank you sling-shot for packaging this,very much appreciate it.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3791
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #9 on: February 19, 2013, 09:15:13 PM »
I think that it should be in the 'Software Center' submenu. I found it in 'File Tools'. I also cannot make out what the icons are supposed to represent with a 28 pixel panel. Otherwise, everything seems to work as expected.

Galen

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #10 on: February 19, 2013, 09:21:39 PM »
I think that it should be in the 'Software Center' submenu. I found it in 'File Tools'. I also cannot make out what the icons are supposed to represent with a 28 pixel panel. Otherwise, everything seems to work as expected.

Galen

muungwana is watching this thread. Let me wait for him to update this at source rather than me patching it.

I had just used the .desktop file that came with the source. While testing I did not go through menu but just used the search feature.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Online muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #11 on: February 19, 2013, 09:24:21 PM »
I think that it should be in the 'Software Center' submenu. I found it in 'File Tools'. I also cannot make out what the icons are supposed to represent with a 28 pixel panel. Otherwise, everything seems to work as expected.

Galen

The icon reads "uN" for update notifier.
The important think about the icon is its color since thats the primary way it communicates with the user.

It works as following.

After it is started,it waits for 5 minutes before checking if its time to check for updates or not.
By defaul,it will try to check for updates only after atleast 24 hours have passed since the last check.
The default state where there are no updated has the icon in greenish color.

If there are no updates,the icon will be in "passive state" and hence an "auto" system tray option for it will have it hidden.

If if finds updates,the icon changes to reddish color and will be in "need attention state" and an "auto" system tray option will have the icon displayed ie,not hidden.

The icon changes its color to a whitish when its checking for updates

The tool tip will also tell you if there are no updates or if there are updates.

Right click on the icon and should see various options.You can check for logs to see what is happening.
« Last Edit: February 19, 2013, 09:35:35 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #12 on: February 19, 2013, 09:28:09 PM »

just looked and it has this in the .desktop file

Quote
Categories=Utility;Qt;X-MandrivaLinux-System-FileTools;

I based the .desktop file from zuluCrypt one and forgot to change that file.

What should the category line be to have the icon in a proper place?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3791
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #13 on: February 19, 2013, 09:35:50 PM »
Maybe?

Quote
Categories=PackageManager;System;Application;X-MandrivaLinux-System-Configuration;X-MandrivaLinux-System-Configuration-Packaging;

Galen

Online muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: [PACKAGED] qt-update-notifier - Is it OK?
« Reply #14 on: February 19, 2013, 09:55:35 PM »
Maybe?

Quote
Categories=PackageManager;System;Application;X-MandrivaLinux-System-Configuration;X-MandrivaLinux-System-Configuration-Packaging;

Galen

Thanks,i made the change and make a new release.
The new sources can be found at: https://github.com/mhogomchungu/qt-update-notifier/tree/v1.1.1

You can get them the same way,just click the "zip" button on the page.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..