Mailinglist Archive: opensuse-buildservice (140 mails)

< Previous Next >
Re: [opensuse-buildservice] Problem with spec file
On Wed, Jul 25, 2012 at 12:24:25PM +0530, Saurabh Sood wrote:
Hi,
I am trying to build a package for a cmake based project which
generates two executabes, one in /bin and the other in /sbin. I
created a desktop file for the one in /bin, but not for the other. I
am getting Build Errors, saying that 'Installed (but unpackaged) files
present. What does this error mean?

Build Log: http://paste.opensuse.org/49867032
Spec File:
https://build.opensuse.org/package/view_file?file=oneclickinstaller.spec&package=oneclickinstaller&project=home%3Asaurabhsood91&rev=6a35ab2b5c1300eca6e1fb10ba6d5f6f

As you have changed the spec, it's hard to say

Anyway this is quite weird (despite the UsrMove).

/bin/oneclickinstaller
/sbin/oneclickhelper
/usr/share/applications/oci.desktop
/usr/share/icons/hicolor/32x32/apps/oneclickinstall.png

All those files should appear in /usr/(s)bin/, so the cmake file does
not recognize the DCMAKE_INSTALL_PREFIX

So, please fix the cmake file to get whose files installed into /usr (or
%{_prefix}. Then following filelist will work for you

# this package owns the /usr/share/icons/hicolor/32x32/apps/, therefor
# you don't need to own it as well
BuildRequires: hicolor-icon-theme

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_sbindir}/oneclickhelper
%{_datadir}/applications/oci.desktop
%{_datadir}/icons/hicolor/32x32/apps/oneclickinstall.png

Regards
Michal Vyskocil
< Previous Next >
References