SHA256
6
0
forked from pool/tre
tre/tre.spec
2024-11-22 23:41:02 +01:00

101 lines
2.8 KiB
RPMSpec

#
# spec file for package tre
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# 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 https://bugs.opensuse.org/
#
%define sover 5
Name: tre
Version: 0.9.0
Release: 0
Summary: POSIX compatible regexp library with approximate matching
License: BSD-3-Clause
Group: System/Libraries
URL: https://laurikari.net/tre/
Source0: https://github.com/laurikari/tre/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: glibc-locale
%lang_package -n libtre%{sover}
%description
TRE is a lightweight, robust, and efficient POSIX compatible regexp
matching library with some exciting features such as approximate
matching.
%package -n libtre%{sover}
Summary: POSIX compatible regexp library with approximate matching
Group: System/Libraries
%description -n libtre%{sover}
TRE is a lightweight, robust, and efficient POSIX compatible regexp
matching library with some exciting features such as approximate
matching.
%package devel
Summary: POSIX compatible regexp library with approximate matching
Group: Development/Libraries/C and C++
Requires: libtre%{sover} = %{version}
%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.
%prep
%autosetup -p1
%build
%configure --disable-static --enable-shared
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%check
%make_build check
%ldconfig_scriptlets -n libtre%{sover}
%files -n libtre%{sover}
%license LICENSE
%{_libdir}/libtre.so.*
%files devel
%license LICENSE
%doc doc/default.css doc/tre-api.html doc/tre-syntax.html
%{_includedir}/*
%{_libdir}/libtre.so
%{_libdir}/pkgconfig/*
%files -n agrep
%license LICENSE
%{_bindir}/agrep
%{_mandir}/man1/agrep.1%{?ext_man}
%files -n libtre%{sover}-lang -f %{name}.lang
%license LICENSE
%changelog