Author: qboosh                       Date: Sat Feb 27 08:13:54 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build -static
- P+O: agrep

---- Files affected:
packages/tre:
   tre.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/tre/tre.spec
diff -u packages/tre/tre.spec:1.7 packages/tre/tre.spec:1.8
--- packages/tre/tre.spec:1.7   Fri Feb 26 18:50:19 2010
+++ packages/tre/tre.spec       Sat Feb 27 09:13:48 2010
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static lirbary
+#
 Summary:       TRE: approximate regex matching
 Summary(pl.UTF-8):     TRE - przybliżone dopasowywanie wyrażeń regularnych
 Name:          tre
@@ -9,6 +13,8 @@
 Source0:       http://laurikari.net/tre/%{name}-%{version}.tar.bz2
 # Source0-md5: b4d3232593dadf6746f4727bdda20b41
 URL:           http://laurikari.net/tre/
+Provides:      agrep
+Obsoletes:     agrep
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -40,11 +46,24 @@
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki tre.
 
+%package static
+Summary:       Static tre library
+Summary(pl.UTF-8):     Statyczna bibloteka tre
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static tre library.
+
+%description static -l pl.UTF-8
+Statyczna bibloteka tre.
+
 %prep
 %setup -q
 
 %build
-%configure
+%configure \
+       %{?with_static_libs:--enable-static}
 %{__make}
 
 %install
@@ -76,12 +95,20 @@
 %{_includedir}/tre
 %{_pkgconfigdir}/tre.pc
 
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libtre.a
+
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[email protected]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2010/02/27 08:13:48  qboosh
+- build -static
+- P+O: agrep
+
 Revision 1.7  2010/02/26 17:50:19  qboosh
 - ghost soname symlink
 - more accurate summaries
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tre/tre.spec?r1=1.7&r2=1.8&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to