[Bins] .spec file for producing an RPM
Kevin R. Bulgrien
kbulgrien at worldnet.att.net
Mon Sep 20 04:38:58 BST 2004
The Mandrake 1.1.25-2mdk RPM does have a much nicer .spec file than the
one I patched up.
I don't care much for the split up into two separate RPMs (bins and bins-gui)
though I suppose it is nice for people who might not want the gui. The split
is especially weird since the bins RPM contains the documentation for the
bins-gui RPM... Odd, but understandable from the structure of the docs
directory.
In any event, take this patch or leave it. I tweaked the .spec file to make it
easy to choose to build a single RPM if one wants to.
RCS file: /home/cvs/pkg/bins/rpm/bins.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- bins/rpm/bins.spec 2004/09/20 03:27:06 1.2
+++ bins/rpm/bins.spec 2004/09/20 03:29:15 1.3
@@ -1,12 +1,15 @@
%define name bins
%define version 1.1.26
%define release 6mdk
+
+# 1 to make one RPM, 0 to split the GUI out to its own RPM
+%define all_in_one 1
Name: %{name}
Version: %{version}
Release: %{release}
Summary: A fully configurable HTML photo album generator.
Source: %{name}-%{version}.tar.bz2
License: GPL
Group: Graphics
Url: http://bins.sautret.org
@@ -72,7 +75,11 @@ chmod 644 ChangeLog
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f %{name}.lang
+%if %{all_in_one}
+%files -f %{name}.lang.old
+%else
+%files -f %{name}.lang
+%endif
%defattr(-,root,root)
%doc ChangeLog CREDITS LICENSE README TODO doc/*.html
%{_bindir}/bins
@@ -86,7 +93,9 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/bins
%{_datadir}/bins/templates.*
+%if ! %{all_in_one}
%files gui -f %{name}-gui.lang
+%endif
%defattr(-,root,root)
%doc README.gui RELEASE.gui
%{_bindir}/bins-edit-gui
More information about the Bins
mailing list