SPECS: libfprint.spec - BR updated, static bcond

vip vip at pld-linux.org
Sat Mar 29 18:33:44 CET 2008


Author: vip                          Date: Sat Mar 29 17:33:44 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- BR updated, static bcond

---- Files affected:
SPECS:
   libfprint.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/libfprint.spec
diff -u SPECS/libfprint.spec:1.1 SPECS/libfprint.spec:1.2
--- SPECS/libfprint.spec:1.1	Sat Mar 29 13:25:25 2008
+++ SPECS/libfprint.spec	Sat Mar 29 18:33:39 2008
@@ -1,15 +1,23 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	static_libs	# don't build static library
+#
+
 Summary:	Fingerprint reader library
 Summary(pl.UTF-8):	Biblioteka do obsługi czytników linii papilarnych
 Name:		libfprint
 Version:	0.0.6
-Release:	0.5
+Release:	0.6
 License:	LGPL v2.1
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/fprint/%{name}-%{version}.tar.bz2
 # Source0-md5:	4f47b46021b186488b60aaa97f90fe43
 URL:		http://reactivated.net/fprint/wiki/Libfprint
+BuildRequires:	ImageMagick-devel
+BuildRequires:	glib2-devel
 BuildRequires:	libusb-devel
+BuildRequires:	openssl-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,11 +43,25 @@
 %description devel -l pl.UTF-8
 Pliki nagłówkowe libfprint.
 
+%package static
+Summary:	Static fprint library
+Summary(pl.UTF-8):	Statyczna biblioteka fprint
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static fprint library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka fprint.
+
 %prep
 %setup -q
 
 %build
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
+
 %{__make}
 
 %install
@@ -55,6 +77,7 @@
 
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS ChangeLog HACKING README THANKS TODO
 %attr(755,root,root) %{_libdir}/libfprint.so*
 
 %files devel
@@ -64,6 +87,11 @@
 %{_includedir}/libfprint/fprint.h
 %{_pkgconfigdir}/libfprint.pc
 
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libfprint.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -71,6 +99,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2008-03-29 17:33:39  vip
+- BR updated, static bcond
+
 Revision 1.1  2008-03-29 12:25:25  vip
 - new, NFY
 - TODO: examples, doc
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libfprint.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list