Hello,
I am trying to make a rpm out of the following application:
https://github.com/apandada1/typhoon
but my spec file, created from looking at the batti.spec file looks for a desktop file, rather than a desktop.in file. What I don't understand is where it figures out how to look for a desktop file. Any suggestions/help? I don't have a lot of experience with rpmbuild and spec files.
Here is the spec file:
$ fpaste typhoon.spec Uploading (1.4KiB)... http://ur1.ca/n4lhh -> http://paste.fedoraproject.org/244462/14369268
And here is the error that I am getting:
$rpmbuild -bb typhoon.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Mne9tW + umask 022 + cd /home/maitra/rpmbuild/BUILD + cd /home/maitra/rpmbuild/BUILD + rm -rf typhoon-0.8.9.4 + /usr/bin/bzip2 -dc /home/maitra/rpmbuild/SOURCES/typhoon-0.8.9.4.tar.bz2 + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd typhoon-0.8.9.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf stapler.egg-info + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZQvdSk + umask 022 + cd /home/maitra/rpmbuild/BUILD + cd typhoon-0.8.9.4 + /usr/bin/python setup.py build Unable to init server: Could not connect: Connection refused running build running build_py creating build creating build/lib creating build/lib/typhoon_lib copying typhoon_lib/Window.py -> build/lib/typhoon_lib copying typhoon_lib/helpers.py -> build/lib/typhoon_lib copying typhoon_lib/Builder.py -> build/lib/typhoon_lib copying typhoon_lib/typhoonconfig.py -> build/lib/typhoon_lib copying typhoon_lib/__init__.py -> build/lib/typhoon_lib creating build/lib/typhoon copying typhoon/TyphoonWindow.py -> build/lib/typhoon copying typhoon/__init__.py -> build/lib/typhoon running build_scripts creating build/scripts-2.7 copying and adjusting bin/typhoon -> build/scripts-2.7 changing mode of build/scripts-2.7/typhoon from 644 to 755 running build_i18n intltool-update -p -g typhoon intltool-merge -d po typhoon.desktop.in build/share/applications/typhoon.desktop Merging translations into build/share/applications/typhoon.desktop. running build_icons running build_help + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.X1IL6J + umask 022 + cd /home/maitra/rpmbuild/BUILD + '[' /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 '!=' / ']' + rm -rf /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 ++ dirname /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 + mkdir -p /home/maitra/rpmbuild/BUILDROOT + mkdir /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 + cd typhoon-0.8.9.4 + rm -rf /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 + /usr/bin/python setup.py install -O1 --skip-build --root /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 Unable to init server: Could not connect: Connection refused running install running install_lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/Window.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/helpers.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/Builder.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/typhoonconfig.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/__init__.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon copying build/lib/typhoon/TyphoonWindow.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon copying build/lib/typhoon/__init__.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/Window.py to Window.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/helpers.py to helpers.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/Builder.py to Builder.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.py to typhoonconfig.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/__init__.py to __init__.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon/TyphoonWindow.py to TyphoonWindow.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmp7Rmg8v.py' /usr/bin/python -O /tmp/tmp7Rmg8v.py removing /tmp/tmp7Rmg8v.py running install_scripts creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin copying build/scripts-2.7/typhoon -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin changing mode of /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin/typhoon to 755 running install_data creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0/schemas copying data/glib-2.0/schemas/net.launchpad.typhoon.gschema.xml -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0/schemas/ creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/app.html -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/fonts/climacons-webfont.woff -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/tick.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/ui/TyphoonWindow.ui -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/media/fonts/climacons-webfont.ttf -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/manifest.json -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/ui/typhoon_window.xml -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/media/jquery.min.js -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/style.css -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/climacons-webfont.eot -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/settings.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/climacons-webfont.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/back.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/typhoon.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/Climacons.ttf -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/script.js -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/ubuntu.woff -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/sync.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon copying README.md -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon running install_egg_info Writing /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info ("ERROR: Can't find", '/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/applications/typhoon.desktop') error: Bad exit status from /var/tmp/rpm-tmp.X1IL6J (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.X1IL6J (%install)
Many thanks for any advice!
Best wishes, Ranjan
____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/manager
On Tue, 14 Jul 2015 21:25:13 -0500 Ranjan Maitra maitra.mbox.ignored@inbox.com wrote:
Hello,
I am trying to make a rpm out of the following application:
https://github.com/apandada1/typhoon
but my spec file, created from looking at the batti.spec file looks for a desktop file, rather than a desktop.in file. What I don't understand is where it figures out how to look for a desktop file. Any suggestions/help? I don't have a lot of experience with rpmbuild and spec files.
Here is the spec file:
$ fpaste typhoon.spec Uploading (1.4KiB)... http://ur1.ca/n4lhh -> http://paste.fedoraproject.org/244462/14369268
And here is the error that I am getting:
$rpmbuild -bb typhoon.spec
-> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon running install_egg_info Writing /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info ("ERROR: Can't find", '/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/applications/typhoon.desktop') error: Bad exit status from /var/tmp/rpm-tmp.X1IL6J (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.X1IL6J (%install)
Someone more knowledgeable will probably offer better advice. But here's my take. If you look in the files section of the spec file, you find the egg.info file listed. And rpmbuild is obviously looking for the files listed in there. Go to the BUILD directory, and look inside that file to see what it wants.
You can then put shell commands in the spec file to create dummy files where they are expected using something like touch. Or you can patch the source to create them with real information, from a currently running version, for example. That will allow rpmbuild to find the files it wants, and create the rpms.
Hi,
Thank you for your response!
I am trying to make a rpm out of the following application:
https://github.com/apandada1/typhoon
but my spec file, created from looking at the batti.spec file looks for a desktop file, rather than a desktop.in file. What I don't understand is where it figures out how to look for a desktop file. Any suggestions/help? I don't have a lot of experience with rpmbuild and spec files.
Here is the spec file:
$ fpaste typhoon.spec Uploading (1.4KiB)... http://ur1.ca/n4lhh -> http://paste.fedoraproject.org/244462/14369268
And here is the error that I am getting:
$rpmbuild -bb typhoon.spec
-> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon running install_egg_info Writing /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info ("ERROR: Can't find", '/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/applications/typhoon.desktop') error: Bad exit status from /var/tmp/rpm-tmp.X1IL6J (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.X1IL6J (%install)
Someone more knowledgeable will probably offer better advice. But here's my take. If you look in the files section of the spec file, you find the egg.info file listed. And rpmbuild is obviously looking for the files listed in there. Go to the BUILD directory, and look inside that file to see what it wants.
So, from what I understood from your suggestions, I should look at:
/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info
So, that is what I did but I can not see what the files are that it wants. (I still can not see the desktop stuff.)
$ more typhoon-0.8.94-py2.7.egg-info Metadata-Version: 1.1 Name: typhoon Version: 0.8.94 Summary: Quickly check the weather with this beautiful application Home-page: https://launchpad.net/typhoon Author: Archisman Panigrahi Author-email: apandada1@gmail.com License: GPL-3 Description: Typhoon is a free and open source weather application. It is contin uation of discontinued Stormcloud 1.1 ,however with some changes. It is and alwa ys will be free.
PPA: https://launchpad.net/~apandada1/+archive/typhoon/
Homepage: http://gettyphoon.tk/ Platform: UNKNOWN Requires: gi.repository.GObject Requires: gi.repository.Gio Requires: gi.repository.Gtk Requires: gi.repository.Unity Requires: gi.repository.WebKit Provides: typhoon Provides: typhoon_lib
Where is any mention to desktop?
You can then put shell commands in the spec file to create dummy files where they are expected using something like touch. Or you can patch the source to create them with real information, from a currently running version, for example. That will allow rpmbuild to find the files it wants, and create the rpms.
I guess it might be helpful to know the difference between a desktop and a desktop.in file. Could someone please tell me about this difference?
Many thanks and best wishes, Ranjan
____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
On Tue, 14 Jul 2015 23:35:24 -0500 Ranjan Maitra maitra.mbox.ignored@inbox.com wrote:
So, from what I understood from your suggestions, I should look at:
/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info
So, that is what I did but I can not see what the files are that it wants. (I still can not see the desktop stuff.)
$ more typhoon-0.8.94-py2.7.egg-info Metadata-Version: 1.1 Name: typhoon Version: 0.8.94 Summary: Quickly check the weather with this beautiful application Home-page: https://launchpad.net/typhoon Author: Archisman Panigrahi Author-email: apandada1@gmail.com License: GPL-3 Description: Typhoon is a free and open source weather application. It is contin uation of discontinued Stormcloud 1.1 ,however with some changes. It is and alwa ys will be free. PPA: https://launchpad.net/~apandada1/+archive/typhoon/ Homepage: http://gettyphoon.tk/ Platform: UNKNOWN Requires: gi.repository.GObject Requires: gi.repository.Gio Requires: gi.repository.Gtk Requires: gi.repository.Unity Requires: gi.repository.WebKit Provides: typhoon Provides: typhoon_lib
Where is any mention to desktop?
I would guess that it would be part of the Requires: specs. Unity is probably a desktop for Ubuntu. Gtk for other desktops? Possibly GObject for Gnome?
You've exhausted my small store of knowledge.
You can then put shell commands in the spec file to create dummy files where they are expected using something like touch. Or you can patch the source to create them with real information, from a currently running version, for example. That will allow rpmbuild to find the files it wants, and create the rpms.
I guess it might be helpful to know the difference between a desktop and a desktop.in file. Could someone please tell me about this difference?
I can't help with this. Do you have a currently installed version of this package that you can consult? rpm -q --files [package name]
Thanks again!
So, from what I understood from your suggestions, I should look at:
/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info
So, that is what I did but I can not see what the files are that it wants. (I still can not see the desktop stuff.)
$ more typhoon-0.8.94-py2.7.egg-info Metadata-Version: 1.1 Name: typhoon Version: 0.8.94 Summary: Quickly check the weather with this beautiful application Home-page: https://launchpad.net/typhoon Author: Archisman Panigrahi Author-email: apandada1@gmail.com License: GPL-3 Description: Typhoon is a free and open source weather application. It is contin uation of discontinued Stormcloud 1.1 ,however with some changes. It is and alwa ys will be free. PPA: https://launchpad.net/~apandada1/+archive/typhoon/ Homepage: http://gettyphoon.tk/ Platform: UNKNOWN Requires: gi.repository.GObject Requires: gi.repository.Gio Requires: gi.repository.Gtk Requires: gi.repository.Unity Requires: gi.repository.WebKit Provides: typhoon Provides: typhoon_lib
Where is any mention to desktop?
I would guess that it would be part of the Requires: specs. Unity is probably a desktop for Ubuntu. Gtk for other desktops? Possibly GObject for Gnome?
I also don't know what the above repositories mean.
You've exhausted my small store of knowledge.
Sorry, at least there is some sense in what you are saying.
You can then put shell commands in the spec file to create dummy files where they are expected using something like touch. Or you can patch the source to create them with real information, from a currently running version, for example. That will allow rpmbuild to find the files it wants, and create the rpms.
I guess it might be helpful to know the difference between a desktop and a desktop.in file. Could someone please tell me about this difference?
I can't help with this. Do you have a currently installed version of this package that you can consult? rpm -q --files [package name]
No. This software is under GPL and so I thought it might be interesting to see if it can be packaged for Fedora.
The app looks cool and the current developer (who I contacted) is a high school student but does not know much about packaging for Fedora. He did suggest using Alien for creating the spec file from the debian package (but he did not know much about it, and I had not even heard about it) so I passed on that. I also thought that perhaps the debian package needs a Debian machine.
Many thanks again!
Best wishes, Ranjan
____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop! Check it out at http://www.inbox.com/marineaquarium
On Wed, 15 Jul 2015 00:27:53 -0500, Ranjan Maitra wrote:
I guess it might be helpful to know the difference between a desktop and a desktop.in file. Could someone please tell me about this difference?
A *.in file is an input/include file, i.e. a template file that is taken by a tool to generate the complete output file by filling in the missing details (such as unexpanded variables).
The app looks cool and the current developer (who I contacted) is a high school student but does not know much about packaging for Fedora. He did suggest using Alien for creating the spec file from the debian package (but he did not know much about it, and I had not even heard about it) so I passed on that. I also thought that perhaps the debian package needs a Debian machine.
Do some trouble-shooting. As a first step, forget rpmbuild. Run the same commands you run in %build and %install in your terminal. If the commands fail, you need to fix the source code and cannot blame rpmbuild or the spec file.
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.X1IL6J [...] running install_egg_info Writing /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info ("ERROR: Can't find", '/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/applications/typhoon.desktop') [...]
You may need to debug install_egg_info for this piece of software. This error is not a spec file error, because your spec %files section does not refer to this .desktop file anywhere [yet]. If the file were installed into the buildroot, you would see a different error (rpmbuild complaining about installed files not present in %files section).
Hi,
Thanks (to Richard also)!
Do some trouble-shooting. As a first step, forget rpmbuild. Run the same commands you run in %build and %install in your terminal. If the commands fail, you need to fix the source code and cannot blame rpmbuild or the spec file.
I was not familiar with setup.py files so this has been a learning experience for me!
So the build section builds fine with no issues.
The install section installs without the error if I removed the --skip-build (so that is what I did in my new .spec file).
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.X1IL6J [...] running install_egg_info Writing /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info ("ERROR: Can't find", '/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/applications/typhoon.desktop') [...]
You may need to debug install_egg_info for this piece of software. This error is not a spec file error, because your spec %files section does not refer to this .desktop file anywhere [yet]. If the file were installed into the buildroot, you would see a different error (rpmbuild complaining about installed files not present in %files section).
So, now with this modified spec file, I am in this predicament now (files not packaged but installed) -- how do I get rid of this problem?
Many thanks again and best wishes, Ranjan
PS: Here is 1) the spec file and 2) the error messages:
$ fpaste typhoon.spec Uploading (1.4KiB)... http://ur1.ca/n4ptz -> http://paste.fedoraproject.org/244574/43696498
$ rpmbuild -bb typhoon.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TXm6s4 + umask 022 + cd /home/maitra/rpmbuild/BUILD + cd /home/maitra/rpmbuild/BUILD + rm -rf typhoon-0.8.9.4 + /usr/bin/bzip2 -dc /home/maitra/rpmbuild/SOURCES/typhoon-0.8.9.4.tar.bz2 + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd typhoon-0.8.9.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf stapler.egg-info + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3gtA9u + umask 022 + cd /home/maitra/rpmbuild/BUILD + cd typhoon-0.8.9.4 + /usr/bin/python setup.py build Unable to init server: Could not connect: Connection refused running build running build_py creating build creating build/lib creating build/lib/typhoon_lib copying typhoon_lib/Window.py -> build/lib/typhoon_lib copying typhoon_lib/helpers.py -> build/lib/typhoon_lib copying typhoon_lib/Builder.py -> build/lib/typhoon_lib copying typhoon_lib/typhoonconfig.py -> build/lib/typhoon_lib copying typhoon_lib/__init__.py -> build/lib/typhoon_lib creating build/lib/typhoon copying typhoon/TyphoonWindow.py -> build/lib/typhoon copying typhoon/__init__.py -> build/lib/typhoon running build_scripts creating build/scripts-2.7 copying and adjusting bin/typhoon -> build/scripts-2.7 changing mode of build/scripts-2.7/typhoon from 644 to 755 running build_i18n intltool-update -p -g typhoon intltool-merge -d po typhoon.desktop.in build/share/applications/typhoon.desktop Merging translations into build/share/applications/typhoon.desktop. running build_icons running build_help + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.1FB1JW + umask 022 + cd /home/maitra/rpmbuild/BUILD + '[' /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 '!=' / ']' + rm -rf /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 ++ dirname /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 + mkdir -p /home/maitra/rpmbuild/BUILDROOT + mkdir /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 + cd typhoon-0.8.9.4 + rm -rf /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 + /usr/bin/python setup.py install -O1 --root /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 Unable to init server: Could not connect: Connection refused running install running build running build_py running build_scripts running build_i18n intltool-update -p -g typhoon running build_icons running build_help running install_lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/Window.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/helpers.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/Builder.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/typhoonconfig.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/__init__.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon copying build/lib/typhoon/TyphoonWindow.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon copying build/lib/typhoon/__init__.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/Window.py to Window.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/helpers.py to helpers.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/Builder.py to Builder.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.py to typhoonconfig.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/__init__.py to __init__.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon/TyphoonWindow.py to TyphoonWindow.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmpPoFeiE.py' /usr/bin/python -O /tmp/tmpPoFeiE.py removing /tmp/tmpPoFeiE.py running install_scripts creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin copying build/scripts-2.7/typhoon -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin changing mode of /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin/typhoon to 755 running install_data creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0/schemas copying data/glib-2.0/schemas/net.launchpad.typhoon.gschema.xml -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0/schemas/ creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/app.html -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/fonts/climacons-webfont.woff -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/tick.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/ui/TyphoonWindow.ui -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/media/fonts/climacons-webfont.ttf -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/manifest.json -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/ui/typhoon_window.xml -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/media/jquery.min.js -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/style.css -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/climacons-webfont.eot -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/settings.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/climacons-webfont.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/back.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/typhoon.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/Climacons.ttf -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/script.js -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/ubuntu.woff -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/sync.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon copying README.md -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/applications copying build/share/applications/typhoon.desktop -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/applications running install_egg_info Writing /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/maitra/rpmbuild/BUILD/typhoon-0.8.9.4 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: typhoon-0.8.9.4-1.fc22.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.3H0RUp + umask 022 + cd /home/maitra/rpmbuild/BUILD + cd typhoon-0.8.9.4 + DOCDIR=/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon + export DOCDIR + /usr/bin/mkdir -p /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon + cp -pr AUTHORS /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon + cp -pr COPYING /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon + exit 0 Provides: typhoon = 0.8.9.4-1.fc22 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python python(abi) = 2.7 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 error: Installed (but unpackaged) file(s) found: /usr/lib/python2.7/site-packages/typhoon_lib/Builder.py /usr/lib/python2.7/site-packages/typhoon_lib/Builder.pyc /usr/lib/python2.7/site-packages/typhoon_lib/Builder.pyo /usr/lib/python2.7/site-packages/typhoon_lib/Window.py /usr/lib/python2.7/site-packages/typhoon_lib/Window.pyc /usr/lib/python2.7/site-packages/typhoon_lib/Window.pyo /usr/lib/python2.7/site-packages/typhoon_lib/__init__.py /usr/lib/python2.7/site-packages/typhoon_lib/__init__.pyc /usr/lib/python2.7/site-packages/typhoon_lib/__init__.pyo /usr/lib/python2.7/site-packages/typhoon_lib/helpers.py /usr/lib/python2.7/site-packages/typhoon_lib/helpers.pyc /usr/lib/python2.7/site-packages/typhoon_lib/helpers.pyo /usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.py /usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.pyc /usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.pyo /usr/share/applications/typhoon.desktop /usr/share/glib-2.0/schemas/net.launchpad.typhoon.gschema.xml /usr/share/typhoon/media/app.html /usr/share/typhoon/media/back.svg /usr/share/typhoon/media/fonts/Climacons.ttf /usr/share/typhoon/media/fonts/climacons-webfont.eot /usr/share/typhoon/media/fonts/climacons-webfont.svg /usr/share/typhoon/media/fonts/climacons-webfont.ttf /usr/share/typhoon/media/fonts/climacons-webfont.woff /usr/share/typhoon/media/fonts/ubuntu.woff /usr/share/typhoon/media/jquery.min.js /usr/share/typhoon/media/manifest.json /usr/share/typhoon/media/script.js /usr/share/typhoon/media/settings.svg /usr/share/typhoon/media/style.css /usr/share/typhoon/media/sync.svg /usr/share/typhoon/media/tick.svg /usr/share/typhoon/media/typhoon.svg /usr/share/typhoon/ui/TyphoonWindow.ui /usr/share/typhoon/ui/typhoon_window.xml
RPM build errors: Installed (but unpackaged) file(s) found: /usr/lib/python2.7/site-packages/typhoon_lib/Builder.py /usr/lib/python2.7/site-packages/typhoon_lib/Builder.pyc /usr/lib/python2.7/site-packages/typhoon_lib/Builder.pyo /usr/lib/python2.7/site-packages/typhoon_lib/Window.py /usr/lib/python2.7/site-packages/typhoon_lib/Window.pyc /usr/lib/python2.7/site-packages/typhoon_lib/Window.pyo /usr/lib/python2.7/site-packages/typhoon_lib/__init__.py /usr/lib/python2.7/site-packages/typhoon_lib/__init__.pyc /usr/lib/python2.7/site-packages/typhoon_lib/__init__.pyo /usr/lib/python2.7/site-packages/typhoon_lib/helpers.py /usr/lib/python2.7/site-packages/typhoon_lib/helpers.pyc /usr/lib/python2.7/site-packages/typhoon_lib/helpers.pyo /usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.py /usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.pyc /usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.pyo /usr/share/applications/typhoon.desktop /usr/share/glib-2.0/schemas/net.launchpad.typhoon.gschema.xml /usr/share/typhoon/media/app.html /usr/share/typhoon/media/back.svg /usr/share/typhoon/media/fonts/Climacons.ttf /usr/share/typhoon/media/fonts/climacons-webfont.eot /usr/share/typhoon/media/fonts/climacons-webfont.svg /usr/share/typhoon/media/fonts/climacons-webfont.ttf /usr/share/typhoon/media/fonts/climacons-webfont.woff /usr/share/typhoon/media/fonts/ubuntu.woff /usr/share/typhoon/media/jquery.min.js /usr/share/typhoon/media/manifest.json /usr/share/typhoon/media/script.js /usr/share/typhoon/media/settings.svg /usr/share/typhoon/media/style.css /usr/share/typhoon/media/sync.svg /usr/share/typhoon/media/tick.svg /usr/share/typhoon/media/typhoon.svg /usr/share/typhoon/ui/TyphoonWindow.ui /usr/share/typhoon/ui/typhoon_window.xml
____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/manager
On Wed, 15 Jul 2015 07:59:39 -0500, Ranjan Maitra wrote:
So, now with this modified spec file, I am in this predicament now (files not packaged but installed) -- how do I get rid of this problem?
error: Installed (but unpackaged) file(s) found:
Well, obviously you need to edit the %files section of the spec file and add as many entries as necessary to include (or exclude) in the package what is found in the buildroot. That's:
http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-files-list.html and https://fedoraproject.org/wiki/Packaging:Guidelines#File_and_Directory_Owner...
On Wed, 15 Jul 2015 16:01:25 +0200 Michael Schwendt mschwendt@gmail.com wrote:
On Wed, 15 Jul 2015 07:59:39 -0500, Ranjan Maitra wrote:
So, now with this modified spec file, I am in this predicament now (files not packaged but installed) -- how do I get rid of this problem?
error: Installed (but unpackaged) file(s) found:
Well, obviously you need to edit the %files section of the spec file and add as many entries as necessary to include (or exclude) in the package what is found in the buildroot. That's:
http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-files-list.html and https://fedoraproject.org/wiki/Packaging:Guidelines#File_and_Directory_Owner... --
OK, thanks! Your response made sense to me, and I went back and looked at what I have also done in the past. (I never understood it at that point, but now I have a better sense of what it was doing.)
So, now things work (and here is the spec file):
$ fpaste typhoon.spec Uploading (1.5KiB)... http://ur1.ca/n4qq5 -> http://paste.fedoraproject.org/244635/70759143
However, there appears to be some errors in the actual application. Upon installing, I get:
/usr/lib/python2.7/site-packages/typhoon_lib/Builder.py:81: Warning: The property GtkWindow:has-resize-grip is deprecated and shouldn't be used anymore. It will be removed in a future version. Gtk.Builder.add_from_file(self, filename) /usr/lib64/python2.7/site-packages/gi/overrides/__init__.py:313: Warning: The property GSettings:schema is deprecated and shouldn't be used anymore. It will be removed in a future version. return super_init_func(self, **new_kwargs)
(typhoon:1076): GLib-GIO-ERROR **: Settings schema 'net.launchpad.typhoon' is not installed
The last is perhaps a consequence of this application having been written in/for Ubuntu. Here is the offending file:
$ more /usr/share/glib-2.0/schemas/net.launchpad.typhoon.gschema.xml <?xml version="1.0" encoding="UTF-8"?> <schemalist gettext-domain="typhoon"> <schema id="net.launchpad.typhoon" path="/net/launchpad/typhoon/"> <key name="example" type="s"> <default>''</default> <summary>Sample setting</summary> <description>Longer description of this sample setting. Talk about allowe d values and what it does.</description> </key> </schema> </schemalist>
But how do I get around it? Is there a similar schemas for Fedora also?
I guess trying to package this was not a very smart idea: issues here are getting to be beyond me.
Many thanks and best wishes, Ranjan
____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
On Wed, 15 Jul 2015 09:41:18 -0500, Ranjan Maitra wrote:
However, there appears to be some errors in the actual application. Upon installing, I get:
/usr/lib/python2.7/site-packages/typhoon_lib/Builder.py:81: Warning: The property GtkWindow:has-resize-grip is deprecated and shouldn't be used anymore. It will be removed in a future version. Gtk.Builder.add_from_file(self, filename) /usr/lib64/python2.7/site-packages/gi/overrides/__init__.py:313: Warning: The property GSettings:schema is deprecated and shouldn't be used anymore. It will be removed in a future version. return super_init_func(self, **new_kwargs)
(typhoon:1076): GLib-GIO-ERROR **: Settings schema 'net.launchpad.typhoon' is not installed
Are you aware of
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema
?
I guess trying to package this was not a very smart idea: issues here are getting to be beyond me.
Have you ever before installed this program as superuser root? When packaging it, one may need to duplicate things it does in its make install target.
Are you aware of
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema
?
Thanks, no. I will take a look.
I guess trying to package this was not a very smart idea: issues here are getting to be beyond me.
Have you ever before installed this program as superuser root? When packaging it, one may need to duplicate things it does in its make install target.
No. Sorry. I have not actually made it run before packaging. I am not sure how one runs a python application such as this.
Ranjan
____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/password-manager
Michael,
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema
?
Reading this was a great help and I have been able to create a rpm (which works). Here is the rpm if someone is interested.
https://streaming.stat.iastate.edu/~stat580/fedora/typhoon-0.8.9.4-1.fc22.no...
What does do not work;
1. Transparency -- I can not get it to do anything: perhaps something is missing. (Perhaps some error in my packaging.)
2. GeoLocator also does not seem to be picking up automatically -- I had to put in my location manually.
Things that will require development (and will not work with Yahoo! Weather which this application uses):
1. No "Feels Like" setting -- very useful as far as I can tell.
2. Hourly forecast (available as a popup).
Hope this is helpful to someone!
Best wishes, Ranjan
____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
On Tue, Jul 14, 2015 at 9:25 PM, Ranjan Maitra < maitra.mbox.ignored@inbox.com> wrote:
Hello,
I am trying to make a rpm out of the following application:
https://github.com/apandada1/typhoon
but my spec file, created from looking at the batti.spec file looks for a desktop file, rather than a desktop.in file. What I don't understand is where it figures out how to look for a desktop file. Any suggestions/help? I don't have a lot of experience with rpmbuild and spec files.
Here is the spec file:
$ fpaste typhoon.spec Uploading (1.4KiB)... http://ur1.ca/n4lhh -> http://paste.fedoraproject.org/244462/14369268
And here is the error that I am getting:
$rpmbuild -bb typhoon.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Mne9tW
- umask 022
- cd /home/maitra/rpmbuild/BUILD
- cd /home/maitra/rpmbuild/BUILD
- rm -rf typhoon-0.8.9.4
- /usr/bin/bzip2 -dc /home/maitra/rpmbuild/SOURCES/typhoon-0.8.9.4.tar.bz2
- /usr/bin/tar -xf -
- STATUS=0
- '[' 0 -ne 0 ']'
- cd typhoon-0.8.9.4
- /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
- rm -rf stapler.egg-info
- exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZQvdSk
- umask 022
- cd /home/maitra/rpmbuild/BUILD
- cd typhoon-0.8.9.4
- /usr/bin/python setup.py build
Unable to init server: Could not connect: Connection refused running build running build_py creating build creating build/lib creating build/lib/typhoon_lib copying typhoon_lib/Window.py -> build/lib/typhoon_lib copying typhoon_lib/helpers.py -> build/lib/typhoon_lib copying typhoon_lib/Builder.py -> build/lib/typhoon_lib copying typhoon_lib/typhoonconfig.py -> build/lib/typhoon_lib copying typhoon_lib/__init__.py -> build/lib/typhoon_lib creating build/lib/typhoon copying typhoon/TyphoonWindow.py -> build/lib/typhoon copying typhoon/__init__.py -> build/lib/typhoon running build_scripts creating build/scripts-2.7 copying and adjusting bin/typhoon -> build/scripts-2.7 changing mode of build/scripts-2.7/typhoon from 644 to 755 running build_i18n intltool-update -p -g typhoon intltool-merge -d po typhoon.desktop.in build/share/applications/typhoon.desktop Merging translations into build/share/applications/typhoon.desktop.
Here it looks like it's taking the desktop.in file and creating the desktop file but...
running build_icons running build_help
- exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.X1IL6J
- umask 022
- cd /home/maitra/rpmbuild/BUILD
- '[' /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 '!=' /
']'
- rm -rf /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64
++ dirname /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64
- mkdir -p /home/maitra/rpmbuild/BUILDROOT
- mkdir /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64
- cd typhoon-0.8.9.4
- rm -rf /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64
- /usr/bin/python setup.py install -O1 --skip-build --root
/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 Unable to init server: Could not connect: Connection refused running install running install_lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/Window.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/helpers.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/Builder.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/typhoonconfig.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib copying build/lib/typhoon_lib/__init__.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon copying build/lib/typhoon/TyphoonWindow.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon copying build/lib/typhoon/__init__.py -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/Window.py to Window.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/helpers.py to helpers.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/Builder.py to Builder.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/typhoonconfig.py to typhoonconfig.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon_lib/__init__.py to __init__.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon/TyphoonWindow.py to TyphoonWindow.pyc byte-compiling /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmp7Rmg8v.py' /usr/bin/python -O /tmp/tmp7Rmg8v.py removing /tmp/tmp7Rmg8v.py running install_scripts creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin copying build/scripts-2.7/typhoon -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin changing mode of /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/bin/typhoon to 755 running install_data creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0 creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0/schemas copying data/glib-2.0/schemas/net.launchpad.typhoon.gschema.xml -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/glib-2.0/schemas/ creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/app.html -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/fonts/climacons-webfont.woff -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/tick.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/ui/TyphoonWindow.ui -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/media/fonts/climacons-webfont.ttf -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/manifest.json -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/ui/typhoon_window.xml -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/ui copying data/media/jquery.min.js -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/style.css -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/climacons-webfont.eot -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/settings.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/climacons-webfont.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/back.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/typhoon.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/Climacons.ttf -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/script.js -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media copying data/media/fonts/ubuntu.woff -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media/fonts copying data/media/sync.svg -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/typhoon/media creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc creating /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon copying README.md -> /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/doc/typhoon running install_egg_info Writing /home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/lib/python2.7/site-packages/typhoon-0.8.94-py2.7.egg-info
This above is the last successful output, not the problem...
("ERROR: Can't find", '/home/maitra/rpmbuild/BUILDROOT/typhoon-0.8.9.4-1.fc22.x86_64/usr/share/applications/typhoon.desktop') error: Bad exit status from /var/tmp/rpm-tmp.X1IL6J (%install)
I briefly looked at the setup.py and it seems to have a mechanism to take the desktop.in file and write it to a location (making the necessary substitutions in it) but during the actual install process it's not getting installed, I'm not familiar enough with python/setup.py installs to understand why.
Thanks, Richard