]> git.sur5r.net Git - bacula/bacula/commitdiff
Add custom Distribution tag.
authorScott Barninger <scott@barninger.com>
Thu, 30 Dec 2004 13:03:14 +0000 (13:03 +0000)
committerScott Barninger <scott@barninger.com>
Thu, 30 Dec 2004 13:03:14 +0000 (13:03 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1780 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/platforms/mandrake/bacula.spec.in
bacula/platforms/redhat/bacula.spec.in
bacula/platforms/suse/bacula.spec.in

index 06fbf10dbebee32fbbce1ba21ddeeb7a5f71cea4..e80617128d8643dbce787cb311391afb0a9bb6cb 100644 (file)
@@ -58,6 +58,17 @@ exit 1
 exit 1
 %endif
 
+# check what distribution we are
+%if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{wb3}
+%define _dist %(grep Red /etc/redhat-release)
+%endif
+%if %{su9}
+%define _dist %(grep SuSE /etc/SuSE-release)
+%endif
+%if %{mdk}
+%define _dist %(grep Mandrake /etc/mandrake-release)
+%endif
+
 Summary: Bacula - The Network Backup Solution
 Name: bacula
 Version: @VERSION@
@@ -71,7 +82,7 @@ Source3: Release_Notes-%{version}-%{release}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-root
 URL: http://www.bacula.org/
 Vendor: The Bacula Team
-Distribution: The Bacula Team
+Distribution: %{_dist}
 Packager: D. Scott Barninger <barninger@fairfieldcomputers.com>
 BuildRequires: readline-devel, atk-devel, ncurses-devel, pango-devel
 BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel, pkgconfig
@@ -1137,6 +1148,8 @@ echo "The database update scripts were installed to /etc/bacula/updatedb"
 
 
 %changelog
+* Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- add distribution checking and custom Distribution tag
 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
 - ASSIGNMENT OF COPYRIGHT
 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and 
index 06fbf10dbebee32fbbce1ba21ddeeb7a5f71cea4..e80617128d8643dbce787cb311391afb0a9bb6cb 100644 (file)
@@ -58,6 +58,17 @@ exit 1
 exit 1
 %endif
 
+# check what distribution we are
+%if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{wb3}
+%define _dist %(grep Red /etc/redhat-release)
+%endif
+%if %{su9}
+%define _dist %(grep SuSE /etc/SuSE-release)
+%endif
+%if %{mdk}
+%define _dist %(grep Mandrake /etc/mandrake-release)
+%endif
+
 Summary: Bacula - The Network Backup Solution
 Name: bacula
 Version: @VERSION@
@@ -71,7 +82,7 @@ Source3: Release_Notes-%{version}-%{release}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-root
 URL: http://www.bacula.org/
 Vendor: The Bacula Team
-Distribution: The Bacula Team
+Distribution: %{_dist}
 Packager: D. Scott Barninger <barninger@fairfieldcomputers.com>
 BuildRequires: readline-devel, atk-devel, ncurses-devel, pango-devel
 BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel, pkgconfig
@@ -1137,6 +1148,8 @@ echo "The database update scripts were installed to /etc/bacula/updatedb"
 
 
 %changelog
+* Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- add distribution checking and custom Distribution tag
 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
 - ASSIGNMENT OF COPYRIGHT
 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and 
index 06fbf10dbebee32fbbce1ba21ddeeb7a5f71cea4..e80617128d8643dbce787cb311391afb0a9bb6cb 100644 (file)
@@ -58,6 +58,17 @@ exit 1
 exit 1
 %endif
 
+# check what distribution we are
+%if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{wb3}
+%define _dist %(grep Red /etc/redhat-release)
+%endif
+%if %{su9}
+%define _dist %(grep SuSE /etc/SuSE-release)
+%endif
+%if %{mdk}
+%define _dist %(grep Mandrake /etc/mandrake-release)
+%endif
+
 Summary: Bacula - The Network Backup Solution
 Name: bacula
 Version: @VERSION@
@@ -71,7 +82,7 @@ Source3: Release_Notes-%{version}-%{release}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-root
 URL: http://www.bacula.org/
 Vendor: The Bacula Team
-Distribution: The Bacula Team
+Distribution: %{_dist}
 Packager: D. Scott Barninger <barninger@fairfieldcomputers.com>
 BuildRequires: readline-devel, atk-devel, ncurses-devel, pango-devel
 BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel, pkgconfig
@@ -1137,6 +1148,8 @@ echo "The database update scripts were installed to /etc/bacula/updatedb"
 
 
 %changelog
+* Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- add distribution checking and custom Distribution tag
 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
 - ASSIGNMENT OF COPYRIGHT
 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and