File libtre.spec of Package libtre
#
# spec file for package libtre (Version 0.7.5)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libtre
Version: 0.7.5
Release: 53
License: LGPL v2.1 or later
Group: System/Libraries
Source0: http://laurikari.net/tre/tre-%{version}.tar.bz2
Patch0: libtre.diff
Summary: POSIX compatible regexp library with approximate matching
Url: http://laurikari.net/tre/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
TRE is a lightweight, robust, and efficient POSIX compatible regexp
matching library with some exciting features such as approximate
matching.
Authors:
--------
Ville Laurikari <vl@iki.fi>
%post
%{run_ldconfig}
%postun
%{run_ldconfig}
%package devel
Requires: %{name} = %{version}
Summary: POSIX compatible regexp library with approximate matching
Group: System/Libraries
%description devel
TRE is a lightweight, robust, and efficient POSIX compatible regexp
matching library with some exciting features such as approximate
matching.
Authors:
--------
Ville Laurikari <vl@iki.fi>
%package -n agrep
Summary: Another powerful grep with interesting features
Group: Productivity/Text/Utilities
%description -n agrep
agrep is another powerful grep which has the ability to search for
approximate patterns as well as block oriented search.
Authors:
--------
Sun Wu
Udi Manber
Burra Gopal
%prep
%setup -q -n tre-%{version}
%patch0 -p1
%build
export CXXFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --enable-shared
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -rf $RPM_BUILD_ROOT/usr/share/locale/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%{_libdir}/libtre.so.*
%files devel
%defattr (-, root, root)
%doc doc/default.css doc/tre-api.html doc/tre-syntax.html
%{_includedir}/*
%{_libdir}/libtre.so
%{_libdir}/pkgconfig/*
%files -n agrep
%defattr (-, root, root)
%{_bindir}/agrep
%{_mandir}/man1/agrep.1.gz
%changelog
* Thu Jan 24 2008 coolo@suse.de
- fix build
* Sun Feb 25 2007 dmueller@suse.de
- Initial package (0.7.5)