Home » Developing U++ » U++ Developers corner » Bugfix in spec file for Mageia 3
Bugfix in spec file for Mageia 3 [message #41324] |
Sat, 30 November 2013 17:45 |
lectus
Messages: 329 Registered: September 2006 Location: Brazil
|
Senior Member |
|
|
I was having trouble building the U++ RPM in Mageia 3. I was getting this error:
Quote: | RPM build errors::
The file must begin with a "/": %{_desktopdir}/theide.desktop
|
I contacted the Mageia forum and figured out the %{desktopdir} macro needs the following to be available:
Quote: | BuildRequires: jpackage-utils
|
The %{_desktopdir} macro is expanded to: /usr/share/applications
Attached is the final spec file that worked for me in Mageia. In another thread I also provided the spec file for OpenSUSE.
Now the file just needs some cleaning and organizing to be useful for all distributions (in the attached file I just made a quick test for Mageia and it worked fine)
Instructions:
1) Download this: http://www.ultimatepp.org/downloads/upp-x11-src-6618.tar.gz
2) Extract this package. Substitute for attached spec file or edit the spec file and add to BuildRequires: jpackage-utils
3) Install jpackage-utils:
# urpmi jpackage-utils
4) Repackage the extracted folder as tar.gz.
5) As normal user build the RPM:
$ rpmbuild -tb --define 'version 6618' --define "date $(LC_TIME=En date '+%a %b %d %Y')" upp-x11-src-6618.tar.gz
6) After it finished double-click the generated RPM in ~/rpmbuild/RPMS/ folder to install it.
Enjoy!
PS: Some useful information:
Quote: | $ grep -Ri desktopdir /etc/rpm
/etc/rpm/macros.jpackage:%_desktopdir %{_datadir}/applications
$ rpm -qf /etc/rpm/macros.jpackage
jpackage-utils-1.7.5-20.mga3
|
-
Attachment: upp.spec
(Size: 5.13KB, Downloaded 291 times)
[Updated on: Sat, 30 November 2013 17:58] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu May 01 01:00:16 CEST 2025
Total time taken to generate the page: 0.01449 seconds
|