Jelajahi Sumber

次回更新時用。不要な古いパッケージを削除できるように Conflicts を追加。[VineSeed:20565]

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@856 ec354946-7b23-47d6-9f5a-488ba84defc7
kazutaka 15 tahun lalu
induk
melakukan
140ea8a60f
1 mengubah file dengan 11 tambahan dan 1 penghapusan
  1. 11 1
      i/install-assist-Go-oo/install-assist-Go-oo-vl.spec

+ 11 - 1
i/install-assist-Go-oo/install-assist-Go-oo-vl.spec

@@ -7,6 +7,10 @@
 %ifarch x86_64
 %define	uarch	x86_64
 %endif
+# we have to specify previous version with "Conflicts:" 
+# to make smart upgrading.[VineSeed:20565]
+%define	conflict_prev_compt ooobasis3.1-core01
+
 %define baseurl http://go-oo.mirrorbrain.org/stable/linux-%{uarch}/3.2
 %define dlurl	"\
 		%{baseurl}/openoffice.org3-%{version}-%{urel}.%{uarch}.rpm \
@@ -55,7 +59,7 @@ Summary:	Package to assist installation of %{pkgname}
 Summary(ja): 	%{pkgname} のインストールを補助するパッケージ
 Name:		install-assist-%{pkgname}
 Version:	%{version}
-Release: 	1%{?_dist_release}
+Release: 	2%{?_dist_release}
 License:	LGPL
 Group:		Applications/Productivity
 
@@ -63,6 +67,7 @@ ExclusiveArch:	%{ix86} x86_64
 # Requires(posttrans) not yet implemented. So we use (post) instead.
 Requires(post):	self-build-setup >= 0.9.0
 Conflicts:	openoffice.org-core <= 2.4.1-5vl5
+Conflicts:	%{conflict_prev_compt}
 
 Packager:	kazutaka
 
@@ -123,6 +128,11 @@ Go-oo はオリジナルの OpenOffice.org と比べて以下のような特徴
 %files
 
 %changelog
+* Sat Apr 17 2010 REMINDER!!
+- add conflict_prev_compt macro
+- set Conflicts: %%{conflict_prev_compt} to remove unnecessary
+  old packges when updating
+
 * Sun Mar 21 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 3.2.0-1
 - new upstream release