Hi!
I'm trying to create a Mageia package for this IDE/Framework: http://www.ultimatepp.org/
They provide a .tar.gz file with a spec file inside. Here's the current development package: http://www.ultimatepp.org/downloads/upp ... 618.tar.gz
I tried to build it with the following command:
rpmbuild -tb --define 'version 6618' --define "date $(LC_TIME=En date '+%a %b %d %Y')" upp-x11-src-6618.tar.gz
It starts compiling, then I get this error on Mageia:
Error in the building of the RPM:
The file must begin with a "/": %{_desktopdir}/theide.desktop
(I translated it to english, as my system is in portuguese-Brazil)
I researched on the internet and found this: http://stackoverflow.com/questions/1592 ... begin-with
It seems to be a problem with the %{_desktopdir} macro.
I think it must be a Mageia specific thing. Any help is appretiated.
Thanks
And doktor5000 answered me:
Please put that inside a thread under Packaging subforum, as otherwise nobody will benefit from possible solutions.
It's easy to validate available rpm macros, use rpm --eval %somemacro or rpm -E (capital e, lowercase e is for rpm removal [erase] )
And rpm --showrc will show all available macros.
This particular macro comes from the macro definition that comes with package jpackage-utils
Code: Select all
[doktor5000@Mageia3 ~]$ grep -Ri desktopdir /etc/rpm
/etc/rpm/macros.jpackage:%_desktopdir %{_datadir}/applications
[doktor5000@Mageia3 ~]$ rpm -qf /etc/rpm/macros.jpackage
jpackage-utils-1.7.5-20.mga3
So put the following in the spec:
BuildRequires: jpackage-utils
and the macro will be there ...
So, hopefully this can help someone. After finishing building this package I'll send the instructions to the upstream developers of U++ to help them with packaging for Mageia.
EDIT: Finished building and the RPM worked great! Thanks doktor5000!