From a0f3fb494e99f4ce90137e064a409619e7f4922f Mon Sep 17 00:00:00 2001 From: Scott Barninger Date: Thu, 30 Dec 2004 13:03:14 +0000 Subject: [PATCH] Add custom Distribution tag. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1780 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/platforms/mandrake/bacula.spec.in | 15 ++++++++++++++- bacula/platforms/redhat/bacula.spec.in | 15 ++++++++++++++- bacula/platforms/suse/bacula.spec.in | 15 ++++++++++++++- 3 files changed, 42 insertions(+), 3 deletions(-) diff --git a/bacula/platforms/mandrake/bacula.spec.in b/bacula/platforms/mandrake/bacula.spec.in index 06fbf10dbe..e80617128d 100644 --- a/bacula/platforms/mandrake/bacula.spec.in +++ b/bacula/platforms/mandrake/bacula.spec.in @@ -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 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 +- add distribution checking and custom Distribution tag * Thu Dec 09 2004 D. Scott Barninger - ASSIGNMENT OF COPYRIGHT - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and diff --git a/bacula/platforms/redhat/bacula.spec.in b/bacula/platforms/redhat/bacula.spec.in index 06fbf10dbe..e80617128d 100644 --- a/bacula/platforms/redhat/bacula.spec.in +++ b/bacula/platforms/redhat/bacula.spec.in @@ -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 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 +- add distribution checking and custom Distribution tag * Thu Dec 09 2004 D. Scott Barninger - ASSIGNMENT OF COPYRIGHT - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and diff --git a/bacula/platforms/suse/bacula.spec.in b/bacula/platforms/suse/bacula.spec.in index 06fbf10dbe..e80617128d 100644 --- a/bacula/platforms/suse/bacula.spec.in +++ b/bacula/platforms/suse/bacula.spec.in @@ -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 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 +- add distribution checking and custom Distribution tag * Thu Dec 09 2004 D. Scott Barninger - ASSIGNMENT OF COPYRIGHT - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and -- 2.39.5