SPECS: libid3tag.spec - added hack to create libid3tag.pc file - r...

paszczus paszczus at pld-linux.org
Wed Sep 27 19:07:24 CEST 2006


Author: paszczus                     Date: Wed Sep 27 17:07:24 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added hack to create libid3tag.pc file
- release 4 ; STBR

---- Files affected:
SPECS:
   libid3tag.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/libid3tag.spec
diff -u SPECS/libid3tag.spec:1.11 SPECS/libid3tag.spec:1.12
--- SPECS/libid3tag.spec:1.11	Tue Aug  8 16:38:10 2006
+++ SPECS/libid3tag.spec	Wed Sep 27 19:07:19 2006
@@ -3,7 +3,7 @@
 Summary(pl):	Biblioteka pozwalająca na odczyt i zapis znaczników ID3
 Name:		libid3tag
 Version:	0.15.1b
-Release:	3
+Release:	4
 License:	GPL
 Group:		Libraries
 Source0:	ftp://ftp.mars.org/pub/mpeg/%{name}-%{version}.tar.gz
@@ -56,6 +56,21 @@
 %setup -q
 %patch0 -p1
 
+# Create an additional pkgconfig file
+%{__cat} > id3tag.pc << EOF
+prefix=%{_prefix}
+exec_prefix=%{_prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}
+
+Name: id3tag
+Description: ID3 tag library
+Requires:
+Version: %{version}
+Libs: -L%{_libdir} -lid3tag -lz
+Cflags: -I%{_includedir}
+EOF
+
 %build
 %{__libtoolize}
 %{__aclocal}
@@ -71,6 +86,9 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
+install id3tag.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -87,6 +105,7 @@
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_libdir}/lib*.la
 %{_includedir}/*.h
+%{_pkgconfigdir}/id3tag.pc
 
 %files static
 %defattr(644,root,root,755)
@@ -98,6 +117,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2006/09/27 17:07:19  paszczus
+- added hack to create libid3tag.pc file
+- release 4 ; STBR
+
 Revision 1.11  2006/08/08 14:38:10  sparky
 - mass attack: s/%patch /%patch0 / -- usefull for overloaded %patch macro
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libid3tag.spec?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list