SHA256
6
0
forked from pool/tre
tre/tre.spec
Ismail Dönmez dea49826e6 Accepting request 116743 from home:babelworx:ldig:branches:devel:libraries:c_c++
license update: BSD-3-Clause
Package is predominantly BSD-3-Clause licensed. This spec file license update makes the openSUSE package license substantially similar to the Fedora package license"

OBS-URL: https://build.opensuse.org/request/show/116743
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tre?expand=0&rev=10
2012-05-08 12:49:24 +00:00

120 lines
3.2 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: 1
License: BSD-3-Clause
Group: System/Libraries
Source0: http://laurikari.net/tre/tre-%{version}.tar.bz2
Patch0: %{name}.diff
Summary: POSIX compatible regexp library with approximate matching
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
License: BSD-3-Clause
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
License: BSD-3-Clause
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
License: BSD-3-Clause
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