[packaging] [Bug 5303] newer versions of rpm do not allow roundcubemail subpackages to build without any files in the package

Kolab Bugzilla noreply at kolab.org
Fri Dec 18 16:06:02 CET 2015


https://issues.kolab.org/show_bug.cgi?id=5303

--- Comment #4 from Timotheus Pokorra (TBits.net) <tp at tbits.net> ---
and it seems, for roundcubemail-plugins-kolab it is again a different case:

I get the error:
    Processing files:
roundcubemail-plugin-libcalendaring-skin-larry-3.3-53.1.fc23.kolab_3.5.noarch
    error: Empty %files file
/root/rpmbuild/BUILD/roundcubemail-plugins-kolab-3.3/plugin-libcalendaring-skin-larry.files

I run this command to verify that I can drop the skin sub package:

    ls -la
/root/rpmbuild/BUILD/roundcubemail-plugins-kolab-3.3/plugin-libcalendaring-skin*

But that shows there is plugin-libcalendaring-skin-larry-assets.files which
references assets/plugins/libcalendaring/skins/larry/libcal.css

So we have a plugin with a file for a skin, but only for assets, not for the
skin itself.

First I thought I have to add a dummy.html, which would end up in the skin sub
package. So I tried to create a dummy.html for all packages, that have a skin
assets directory. Then I realised that there is already a case with plugin
libkolab, that does only have a skin assets subpackage  which provides the skin
subpackage as well, and obsoletes the skin subpackage.

so the solution for roundcubemail-plugin-libcalendaring-skin looks like this:

completely dropping sub package roundcubemail-plugin-libcalendaring-skin-larry

and adding a couple of lines to
roundcubemail-plugin-libcalendaring-skin-larry-assets:
 %package -n roundcubemail-plugin-libcalendaring-skin-larry-assets
 Summary:        Plugin libcalendaring / Skin larry (Assets)
 Group:          Applications/Internet
+Requires:       roundcubemail(plugin-libcalendaring) =
%{?epoch:%{epoch}:}%{version}-%{release}
+Requires:       roundcubemail(skin-larry) >= %{roundcube_version}
+Obsoletes:      roundcubemail-plugin-libcalendaring-skin-larry
+Provides:       roundcubemail(plugin-libcalendaring-skin) =
%{?epoch:%{epoch}:}%{version}-%{release}
+Provides:       roundcubemail(plugin-libcalendaring-skin-larry) =
%{?epoch:%{epoch}:}%{version}-%{release}
 Provides:       roundcubemail(plugin-libcalendaring-skin-larry-assets) =
%{?epoch:%{epoch}:}%{version}-%{release}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolabsys.com/pipermail/packaging-bugs/attachments/20151218/af1aa8b1/attachment.htm>


More information about the packaging-bugs mailing list