2024-01-05 17:57:32 +01:00
|
|
|
Name: snowball
|
2024-01-05 17:57:33 +01:00
|
|
|
Version: 2.1.0
|
|
|
|
Release: 1mamba
|
2024-01-05 17:57:32 +01:00
|
|
|
Summary: Snowball compiler and stemming algorithms
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 17:57:33 +01:00
|
|
|
URL: https://snowballstem.org/
|
2024-01-05 17:57:32 +01:00
|
|
|
Source: https://github.com/snowballstem/snowball.git/master/snowball-%{version}.tar.bz2
|
|
|
|
Patch0: snowball-0.20170814git-dynlibrary.patch
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: libstemmer = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Snowball compiler and stemming algorithms.
|
|
|
|
|
|
|
|
%package -n libstemmer
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n libstemmer
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n libstemmer-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: libstemmer = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libstemmer-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 17:57:33 +01:00
|
|
|
%define _default_patch_fuzz 2
|
2024-01-05 17:57:32 +01:00
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
for f in snowball stemwords; do
|
|
|
|
install -D -m0755 $f %{buildroot}%{_bindir}/$f
|
|
|
|
done
|
|
|
|
|
|
|
|
install -D -m0644 include/libstemmer.h %{buildroot}%{_includedir}/libstemmer.h
|
2024-01-05 17:57:32 +01:00
|
|
|
install -D -m0755 libstemmer.so.0.0.0 %{buildroot}%{_libdir}/libstemmer.so.0.0.0
|
2024-01-05 17:57:32 +01:00
|
|
|
ln -s libstemmer.so.0.0.0 %{buildroot}%{_libdir}/libstemmer.so.0
|
|
|
|
ln -s libstemmer.so.0 %{buildroot}%{_libdir}/libstemmer.so
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n libstemmer -p /sbin/ldconfig
|
|
|
|
%postun -n libstemmer -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/snowball
|
|
|
|
%{_bindir}/stemwords
|
|
|
|
|
|
|
|
%files -n libstemmer
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libstemmer.so.*
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files -n libstemmer-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/libstemmer.h
|
|
|
|
%{_libdir}/libstemmer.so
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:57:33 +01:00
|
|
|
* Tue Apr 13 2021 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:57:32 +01:00
|
|
|
* Thu Dec 17 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20170814git-2mamba
|
|
|
|
- fixed permissions of shared library
|
|
|
|
|
2024-01-05 17:57:32 +01:00
|
|
|
* Mon Aug 14 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20170814git-1mamba
|
|
|
|
- package created using the webbuild interface
|