build package for 11.1, not possible to install icons


I try to package a tool for openSUSE 11.1, I have an error relative to icons while almost is done :

... checking filelist
bouml-4.9-9.1.i586.rpm: directories not owned by a package:
- /usr/share/icons/hicolor
- /usr/share/icons/hicolor/16x16
- /usr/share/icons/hicolor/16x16/apps
- /usr/share/icons/hicolor/32x32
- /usr/share/icons/hicolor/32x32/apps
- /usr/share/icons/hicolor/48x48
- /usr/share/icons/hicolor/48x48/apps
- /usr/share/icons/hicolor/64x64
- /usr/share/icons/hicolor/64x64/apps

the end of my spec file is :

%if 0%{?suse_version} 
%dir %{_datadir}/applications
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/48x48/apps
%dir %{_datadir}/icons/hicolor/64x64/apps

I invalided the lines like “%dir %{_datadir}/applications” in case of suse to (try to) avoid similar message about these directories

is something changed about icons with 11.1 ?

I can make the package without any problems with the same spec file for openSUSE 10.3 and openSUSE 11.0 (and other packages like RHEL etc)

my project is under

Thanks for your help



just remove following if else clause:

%if 0%{?suse_version}

That should do it :slight_smile: I had a similar issue.

Hope this helps


I first tried without success without the %if

the problem was these lines was not enough, it is needed to have :

%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/48x48/apps
%dir %{_datadir}/icons/hicolor/64x64
%dir %{_datadir}/icons/hicolor/64x64/apps

furthermore the line %dir %{_datadir}/applications must be removed

in fact this was an old error in my spec, but in the 11.1 the checks was improved and more errors are now detected

thanks for your answer and happy new year :slight_smile:



glad to see that you got it working now. I just have one more hint how you can disable some of the more strict checks just add “BuildRequires: -post-build-checks -rpmlint-Factory” to the spec file :wink:

Happy new year