SPECS: libtunepimp.spec - dir to symlink change hack, rel 2

glen glen at pld-linux.org
Tue Aug 22 13:19:14 CEST 2006


Author: glen                         Date: Tue Aug 22 11:19:14 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- dir to symlink change hack, rel 2

---- Files affected:
SPECS:
   libtunepimp.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SPECS/libtunepimp.spec
diff -u SPECS/libtunepimp.spec:1.17 SPECS/libtunepimp.spec:1.18
--- SPECS/libtunepimp.spec:1.17	Wed Aug 16 23:56:13 2006
+++ SPECS/libtunepimp.spec	Tue Aug 22 13:19:09 2006
@@ -1,9 +1,10 @@
 # $Revision$, $Date$
+%define		_major	0.5
 Summary:	The MusicBrainz tagging library
 Summary(pl):	Biblioteka znakowania MusicBrainz
 Name:		libtunepimp
-Version:	0.5.1
-Release:	1
+Version:	%{_major}.1
+Release:	2
 License:	GPL
 Group:		Libraries
 Source0:	ftp://ftp.musicbrainz.org/pub/musicbrainz/%{name}-%{version}.tar.gz
@@ -110,9 +111,9 @@
 install lib/threads/posix/mutex.h \
 	lib/{analyzer,filecache,plugins,readmeta,write}.h \
 	include/tunepimp-*/metadata.h \
-	$RPM_BUILD_ROOT%{_includedir}/tunepimp-0.5
+	$RPM_BUILD_ROOT%{_includedir}/tunepimp-%{_major}
 
-ln -s tunepimp-0.5 $RPM_BUILD_ROOT%{_includedir}/tunepimp
+ln -s tunepimp-%{_major} $RPM_BUILD_ROOT%{_includedir}/tunepimp
 
 #cd perl/tunepimp-perl
 #%{__make} install \
@@ -133,6 +134,13 @@
 %post	-p /sbin/ldconfig
 %postun	-p /sbin/ldconfig
 
+%pre devel
+# includedir is symlink pointing to %{name}-%{_major} since 0.5
+if [ -d %{_includedir}/tunepimp -a ! -L %{_includedir}/tunepimp ]; then
+	mv %{_includedir}/tunepimp{,-%{_major}}
+	ln -s tunepimp-%{_major} %{_includedir}/tunepimp
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README.LGPL TODO
@@ -165,6 +173,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2006/08/22 11:19:09  glen
+- dir to symlink change hack, rel 2
+
 Revision 1.17  2006/08/16 21:56:13  qboosh
 - updated to 0.5.1, removed obsolete fix patch
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libtunepimp.spec?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list