[Box Backup-commit] COMMIT r2505 - box/trunk/contrib/rpm

boxbackup-dev at boxbackup.org boxbackup-dev at boxbackup.org
Thu Apr 23 01:01:11 BST 2009


Author: martin
Date: 2009-04-23 01:01:10 +0100 (Thu, 23 Apr 2009)
New Revision: 2505

Modified:
   box/trunk/contrib/rpm/boxbackup.spec
Log:
Use dist tag in version for rpm spec

Modified: box/trunk/contrib/rpm/boxbackup.spec
===================================================================
--- box/trunk/contrib/rpm/boxbackup.spec	2009-04-13 18:40:50 UTC (rev 2504)
+++ box/trunk/contrib/rpm/boxbackup.spec	2009-04-23 00:01:10 UTC (rev 2505)
@@ -25,18 +25,18 @@
 
 %if %{is_suse}
 %define init_dir %{_sysconfdir}/init.d
-%define dist suse
+%define distribution suse
 %define rc_start rc
 %else
 %define init_dir %{_sysconfdir}/rc.d/init.d
-%define dist redhat
+%define distribution redhat
 %define rc_start "service "
 %endif
 
 Summary: An automatic on-line backup system for UNIX.
 Name: boxbackup
 Version: ###DISTRIBUTION-VERSION-NUMBER###
-Release: 1
+Release: 1%{?dist}
 License: BSD
 Group: Applications/Archiving
 Packager: boxbackup-dev at boxbackup.org
@@ -129,7 +129,7 @@
 
 # Client
 touch $RPM_BUILD_ROOT%{_sysconfdir}/box/bbackupd.conf
-install -m 755 contrib/%{dist}/bbackupd $RPM_BUILD_ROOT%{init_dir}
+install -m 755 contrib/%{distribution}/bbackupd $RPM_BUILD_ROOT%{init_dir}
 %if %{is_suse}
 ln -s ../../%{init_dir}/bbackupd $RPM_BUILD_ROOT%{_sbindir}/rcbbackupd
 %endif
@@ -142,7 +142,7 @@
 # Server
 touch $RPM_BUILD_ROOT%{_sysconfdir}/box/bbstored.conf
 touch $RPM_BUILD_ROOT%{_sysconfdir}/box/raidfile.conf
-install -m 755 contrib/%{dist}/bbstored $RPM_BUILD_ROOT%{init_dir}
+install -m 755 contrib/%{distribution}/bbstored $RPM_BUILD_ROOT%{init_dir}
 %if %{is_suse}
 ln -s ../../%{init_dir}/bbstored $RPM_BUILD_ROOT%{_sbindir}/rcbbstored
 %endif
@@ -225,6 +225,9 @@
 %doc %{_docdir}/%{ident}/bbreporter
 
 %changelog
+* Thu Apr 23 2009 Martin Ebourne <martin at zepler.org>
+- Use dist tag in version
+
 * Thu May 29 2008 Martin Ebourne <martin at zepler.org>
 - Fix paths to bbreporter files
 




More information about the Boxbackup-commit mailing list