update to 0.8.0.20201128git
added debug package, remove python binding (not building with python3) [release 0.8.0.20201128git-1mamba;Sat Nov 28 2020]
This commit is contained in:
parent
c53fe63ba8
commit
8fc4a11f64
48
libtre.spec
48
libtre.spec
@ -1,5 +1,5 @@
|
|||||||
Name: libtre
|
Name: libtre
|
||||||
Version: 0.8.0
|
Version: 0.8.0.20201128git
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: Free and portable approximate regex matching library
|
Summary: Free and portable approximate regex matching library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -7,12 +7,13 @@ Vendor: openmamba
|
|||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
||||||
URL: http://laurikari.net/tre
|
URL: http://laurikari.net/tre
|
||||||
Source: http://laurikari.net/tre/tre-%{version}.tar.bz2
|
Source: https://github.com/laurikari/tre.git/master/tre-%{version}.tar.bz2
|
||||||
|
#Source: http://laurikari.net/tre/tre-%{version}.tar.bz2
|
||||||
Patch0: %{name}-0.8.0-python.patch
|
Patch0: %{name}-0.8.0-python.patch
|
||||||
License: BSD
|
License: BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libpython-devel
|
BuildRequires: libpython3-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
@ -37,25 +38,32 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
agrep (approximate grep) command line tool approximate regexp matching in the style of grep.
|
agrep (approximate grep) command line tool approximate regexp matching in the style of grep.
|
||||||
agrep allows full regexps of any length, any number of errors, and non-uniform costs for insertion, deletion and substitution.
|
agrep allows full regexps of any length, any number of errors, and non-uniform costs for insertion, deletion and substitution.
|
||||||
|
|
||||||
%package -n python-tre
|
%package -n python-tre-py3
|
||||||
Summary: Python bindings for %{name}
|
Summary: Python bindings for %{name}
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
Provides: python-tre
|
||||||
|
Obsoletes: python-tre
|
||||||
|
|
||||||
%description -n python-tre
|
%description -n python-tre-py3
|
||||||
This package contains the python bindings for %{name}.
|
This package contains the python bindings for %{name}.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tre-%{version}
|
%setup -q -n tre-%{version}
|
||||||
|
|
||||||
# fix python bindings build
|
# fix python bindings build
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
ln -s lib tre
|
ln -s lib tre
|
||||||
|
|
||||||
|
autoreconf -f -i
|
||||||
|
|
||||||
|
#sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," utils/config.sub
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
%make
|
%make
|
||||||
|
|
||||||
(cd python; CFLAGS="%{optflags}" %{__python} setup.py build)
|
#(cd python; CFLAGS="%{optflags}" %{__python3} setup.py build)
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -63,14 +71,14 @@ ln -s lib tre
|
|||||||
|
|
||||||
%find_lang tre || touch tre.lang
|
%find_lang tre || touch tre.lang
|
||||||
|
|
||||||
(cd python; %{__python} setup.py install \
|
#(cd python; %{__python} setup.py install \
|
||||||
-O1 --skip-build \
|
# -O1 --skip-build \
|
||||||
--root="%{buildroot}" \
|
# --root="%{buildroot}" \
|
||||||
--install-headers="%{_includedir}/python" \
|
# --install-headers="%{_includedir}/python" \
|
||||||
--install-lib="%{python_sitearch}" \
|
# --install-lib="%{python_sitearch}" \
|
||||||
--record=tre.filelist)
|
# --record=tre.filelist)
|
||||||
|
#
|
||||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," python/tre.filelist
|
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," python/tre.filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -83,8 +91,8 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," python/tre.filelist
|
|||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%doc AUTHORS LICENSE THANKS
|
%doc AUTHORS LICENSE THANKS
|
||||||
|
|
||||||
%files -n python-tre -f python/tre.filelist
|
#%files -n python-tre-py3 -f python/tre.filelist
|
||||||
%defattr(644,root,root,755)
|
#%defattr(644,root,root,755)
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -92,7 +100,7 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," python/tre.filelist
|
|||||||
%{_libdir}/*.la
|
%{_libdir}/*.la
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%doc ChangeLog NEWS README TODO
|
%doc NEWS TODO
|
||||||
%doc doc/default.css doc/tre-api.html doc/tre-syntax.html
|
%doc doc/default.css doc/tre-api.html doc/tre-syntax.html
|
||||||
|
|
||||||
%files -n agrep
|
%files -n agrep
|
||||||
@ -101,5 +109,9 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," python/tre.filelist
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0.20201128git-1mamba
|
||||||
|
- update to 0.8.0.20201128git
|
||||||
|
- added debug package, remove python binding (not building with python3)
|
||||||
|
|
||||||
* Mon Jun 25 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.8.0-1mamba
|
* Mon Jun 25 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.8.0-1mamba
|
||||||
- package created by autospec
|
- package created by autospec
|
||||||
|
Loading…
Reference in New Issue
Block a user