09b48748ad
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tre?expand=0&rev=11
116 lines
3.1 KiB
RPMSpec
116 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package tre
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: tre
|
|
Version: 0.8.0
|
|
Release: 0
|
|
Source0: http://laurikari.net/tre/tre-%{version}.tar.bz2
|
|
Patch0: %{name}.diff
|
|
Summary: POSIX compatible regexp library with approximate matching
|
|
License: BSD-3-Clause
|
|
Group: System/Libraries
|
|
Url: http://laurikari.net/tre/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
|
matching library with some exciting features such as approximate
|
|
matching.
|
|
|
|
%package -n libtre5
|
|
Summary: POSIX compatible regexp library with approximate matching
|
|
Group: System/Libraries
|
|
Requires: %{name} = %{version}
|
|
Obsoletes: libtre
|
|
Provides: libtre
|
|
|
|
%description -n libtre5
|
|
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
|
matching library with some exciting features such as approximate
|
|
matching.
|
|
|
|
|
|
%post -n libtre5 -p /sbin/ldconfig
|
|
|
|
%postun -n libtre5 -p /sbin/ldconfig
|
|
|
|
%package devel
|
|
Requires: libtre5 = %{version}
|
|
Summary: POSIX compatible regexp library with approximate matching
|
|
Group: Development/Libraries/C and C++
|
|
Obsoletes: libtre-devel
|
|
Provides: libtre-devel
|
|
|
|
%description devel
|
|
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
|
matching library with some exciting features such as approximate
|
|
matching.
|
|
|
|
%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
|
|
%patch0 -p1
|
|
|
|
%build
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
%configure --disable-static --enable-shared
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/
|
|
|
|
%files
|
|
%defattr (-, root, root)
|
|
%doc ABOUT-NLS AUTHORS LICENSE NEWS README THANKS TODO
|
|
|
|
%files -n libtre5
|
|
%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
|