Browse Source

bind is changed to 9.6.ESV
bind-current is latest bind version package


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2123 ec354946-7b23-47d6-9f5a-488ba84defc7

iwamoto 14 years ago
parent
commit
b5d648b0b5
1 changed files with 32 additions and 13 deletions
  1. 32 13
      b/bind-current/bind-current-vl.spec

+ 32 - 13
b/bind-current/bind-current-vl.spec

@@ -1,19 +1,23 @@
 %define _localstatedir /var
 
-%define pversion 9.7.1P2
-%define sversion 9.7.1-P2
+%define sname bind
+%define pname bind-current
+%define pversion 9.7.2P2
+%define sversion 9.7.2-P2
+%define bind_epoch 1
 
 %define bind_uid  25
 %define bind_gid  25
 
 Summary: A DNS (Domain Name System) server.
 Summary(ja): DNS (Domain Name System) サーバ
-Name: bind
+Name: %{pname}
 Version: %{pversion}
 Release: 1%{?_dist_release}
+Epoch: %{bind_epoch}
 License: distributable
 Group: System Environment/Daemons
-Source: ftp://ftp.isc.org/isc/bind9/%{version}/%{name}-%{sversion}.tar.gz
+Source: ftp://ftp.isc.org/isc/bind9/%{version}/%{sname}-%{sversion}.tar.gz
 Source1: bind-manpages.tar.bz2
 Source2: named.sysconfig
 Source3: named.init
@@ -24,14 +28,15 @@ Patch1: bind-9.3.3rc2-rndckey.patch
 
 Buildroot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: openssl-devel glibc-devel libtool
-Requires: bind-libs = %{version}-%{release}
+Requires: %{pname}-libs = %{bind_epoch}:%{version}-%{release}
 Requires(pre): shadow-utils
-Requires(post): bind-utils = %{version}-%{release}
+Requires(post): %{pname}-utils = %{version}-%{release}
 Requires(post): coreutils, chkconfig
 Requires(preun): initscripts, chkconfig
 Requires(triggerpostun): chkconfig
-Conflicts: bind9 <= 9.2.1-0vl5
-Obsoletes: bind9 <= 9.2.1-0vl5
+Conflicts: bind9 <= 9.2.1-0vl5, bind < %{bind_epoch}:%{version}-%{release}
+Obsoletes: bind9 <= 9.2.1-0vl5, bind < %{bind_epoch}:%{version}-%{release}
+Provides: bind = %{bind_epoch}:%{version}-%{release}
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -57,6 +62,11 @@ the caching-nameserver package.
 %package libs
 Summary: Libraries used by various DNS packages
 Group: System Environment/Libraries
+Conflicts: bind9-libs <= 9.2.1-0vl5
+Conflicts: bind-libs < %{bind_epoch}:%{version}-%{release}
+Obsoletes: bind9-libs <= 9.2.1-0vl5
+Obsoletes: bind-libs < %{bind_epoch}:%{version}-%{release}
+Provides: bind-libs = %{bind_epoch}:%{version}-%{release}
 
 %description libs
 Contains libraries used by both the bind server package as well as the utils packages.
@@ -66,10 +76,12 @@ Contains libraries used by both the bind server package as well as the utils pac
 Summary: Utilities for querying DNS name servers.
 Summary(ja): DNS ネームサーバに問い合わせをするユーティリティ
 Group: Applications/System
-Requires: bind-libs = %{version}-%{release}
+Requires: %{pname}-libs = %{bind_epoch}:%{version}-%{release}
 Conflicts: bind9-utils <= 9.2.1-0vl5
+Conflicts: bind-utils < %{bind_epoch}:%{version}-%{release}
 Obsoletes: bind9-utils <= 9.2.1-0vl5
-
+Obsoletes: bind-utils < %{bind_epoch}:%{version}-%{release}
+Provides: bind-utils = %{bind_epoch}:%{version}-%{release}
 
 %description utils
 Bind-utils contains a collection of utilities for querying DNS (Domain
@@ -86,11 +98,13 @@ servers.
 Summary: Include files and libraries needed for bind DNS development.
 Summary(ja): bind DNS 開発に必要なインクルードファイルとライブラリ
 Group: Development/Libraries
-Requires: bind >= 9.2.1-0vl7
-Requires: bind-libs = %{version}-%{release}
+Requires: %{pname} = %{bind_epoch}:%{version}-%{release}
+Requires: %{pname}-libs = %{bind_epoch}:%{version}-%{release}
 Conflicts: bind9-devel <= 9.2.1-0vl5
+Conflicts: bind-devel < %{bind_epoch}:%{version}-%{release}
 Obsoletes: bind9-devel <= 9.2.1-0vl5
-
+Obsoletes: bind-devel < %{bind_epoch}:%{version}-%{release}
+Provides: bind-devel = %{bind_epoch}:%{version}-%{release}
 
 %description devel
 The bind-devel package contains all the include files and the 
@@ -263,6 +277,11 @@ rm -rf ${RPM_BUILD_ROOT} ${RPM_BUILD_DIR}/%{name}-%{version}
 %{_bindir}/isc-config.sh
 
 %changelog
+* Wed Oct 20 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 9.7.2P2-1
+- change package name bind -> bind-current
+- add epoch 1
+- new upstream release
+
 * Sat Jul 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 9.7.1P2-1
 - new upstream release