Просмотр исходного кода

r2559 | fabbione | 2009-12-01 23:30:27 -0700 (Tue, 01 Dec 2009) | 2 lines

spec file cleanup



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2614 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 16 лет назад
Родитель
Сommit
3926c5ea6f
1 измененных файлов с 6 добавлено и 7 удалено
  1. 6 7
      corosync.spec.in

+ 6 - 7
corosync.spec.in

@@ -1,4 +1,4 @@
-%define alphatag @alphatag@
+%global alphatag @alphatag@
 
 
 Name: corosync
 Name: corosync
 Summary: The Corosync Cluster Engine and Application Programming Interfaces
 Summary: The Corosync Cluster Engine and Application Programming Interfaces
@@ -7,7 +7,7 @@ Release: 1%{?alphatag:.%{alphatag}}%{?dist}
 License: BSD
 License: BSD
 Group: System Environment/Base
 Group: System Environment/Base
 URL: http://www.openais.org
 URL: http://www.openais.org
-Source0: http://developer.osdl.org/dev/openais/downloads/corosync-%{version}/corosync-%{version}.tar.gz
+Source0: http://developer.osdl.org/dev/openais/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz
 
 
 # Runtime bits
 # Runtime bits
 Requires: corosynclib = %{version}-%{release}
 Requires: corosynclib = %{version}-%{release}
@@ -16,6 +16,8 @@ Requires(post): /sbin/chkconfig
 Requires(preun): /sbin/chkconfig
 Requires(preun): /sbin/chkconfig
 Conflicts: openais <= 0.89, openais-devel <= 0.89
 Conflicts: openais <= 0.89, openais-devel <= 0.89
 
 
+# Build bits
+
 %define buildtrunk 0
 %define buildtrunk 0
 %{?_with_buildtrunk: %define buildtrunk 1}
 %{?_with_buildtrunk: %define buildtrunk 1}
 
 
@@ -28,7 +30,7 @@ BuildRequires: libibverbs-devel librdmacm-devel
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 
 %prep
 %prep
-%setup -q -n corosync-%{version}
+%setup -q -n %{name}-%{version}
 
 
 %if %{buildtrunk}
 %if %{buildtrunk}
 ./autogen.sh
 ./autogen.sh
@@ -73,9 +75,6 @@ if [ $1 -eq 0 ]; then
 	/sbin/chkconfig --del corosync || :
 	/sbin/chkconfig --del corosync || :
 fi
 fi
 
 
-%postun
-[ "$1" -ge "1" ] && /sbin/service corosync condrestart &>/dev/null || :
-
 %files
 %files
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %doc LICENSE SECURITY
 %doc LICENSE SECURITY
@@ -112,7 +111,7 @@ fi
 %package -n corosynclib
 %package -n corosynclib
 Summary: The Corosync Cluster Engine Libraries
 Summary: The Corosync Cluster Engine Libraries
 Group: System Environment/Libraries
 Group: System Environment/Libraries
-Conflicts: corosync < 0.92-7
+Requires: %{name} = %{version}-%{release}
 
 
 %description -n corosynclib
 %description -n corosynclib
 This package contains corosync libraries.
 This package contains corosync libraries.