SPECS: libdbi.spec - rel 2 - added pkgconfig support (ported from upstream ...

baggins baggins at pld-linux.org
Fri Dec 26 23:13:33 CET 2008


Author: baggins                      Date: Fri Dec 26 22:13:33 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 2
- added pkgconfig support (ported from upstream CVS)

---- Files affected:
SPECS:
   libdbi.spec (1.34 -> 1.35) 

---- Diffs:

================================================================
Index: SPECS/libdbi.spec
diff -u SPECS/libdbi.spec:1.34 SPECS/libdbi.spec:1.35
--- SPECS/libdbi.spec:1.34	Sat Jul 19 19:46:12 2008
+++ SPECS/libdbi.spec	Fri Dec 26 23:13:27 2008
@@ -7,7 +7,7 @@
 Summary(pl.UTF-8):	Warstwa DBI dla C
 Name:		libdbi
 Version:	0.8.3
-Release:	1
+Release:	2
 License:	LGPL v2+
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/libdbi/%{name}-%{version}.tar.gz
@@ -72,11 +72,24 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/dbd
+install -d $RPM_BUILD_ROOT{%{_libdir}/dbd,%{_pkgconfigdir}}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+cat >$RPM_BUILD_ROOT/%{_pkgconfigdir}/dbi.pc <<EOF
+prefix=%{_prefix}
+exec_prefix=%{_prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}/dbi
+
+Name: libdbi
+Description: database-independent abstraction layer in C
+Version: %{version}
+Libs: -L\${libdir} -ldbi
+Cflags: -I\${includedir} -I\${includedir}/dbi
+EOF
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -96,6 +109,7 @@
 %attr(755,root,root) %{_libdir}/libdbi.so
 %{_libdir}/libdbi.la
 %{_includedir}/dbi
+%{_pkgconfigdir}/dbi.pc
 
 %if %{with static_libs}
 %files static
@@ -109,6 +123,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.35  2008/12/26 22:13:27  baggins
+- rel 2
+- added pkgconfig support (ported from upstream CVS)
+
 Revision 1.34  2008/07/19 17:46:12  qboosh
 - updated to 0.8.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libdbi.spec?r1=1.34&r2=1.35&f=u



More information about the pld-cvs-commit mailing list