pcre2/pcre2.spec

149 lines
4.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: pcre2
Version: 10.44
Release: 1mamba
Summary: PCRE - Perl Compatible Regular Expressions
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/PCRE2Project/pcre2
Source: https://github.com/PCRE2Project/pcre2.git/pcre2-%{version}/pcre2-%{version}.tar.bz2
Patch0: pcre2-10.43-x86_xgetbv_feature_detection.patch
Patch1: pcre2-10.43-fix_locking_region_in_sjlit_malloc_exec.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbzip2-devel
BuildRequires: libreadline-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
PCRE - Perl Compatible Regular Expressions.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#cd src/sljit
#%patch 0 -p2 -b .x86_xgetbv_feature_detection
#%patch 1 -p2 -b .fix_locking_region_in_sjlit_malloc_exec
#cd ../..
sed -i "s| man/man| share/man/man|" CMakeLists.txt
%build
%cmake -d build \
-DPCRE2_BUILD_PCRE2_16=ON \
-DPCRE2_BUILD_PCRE2_32=ON \
-DPCRE2_SUPPORT_JIT=ON
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
mv %{buildroot}/usr/cmake %{buildroot}%{_libdir}/cmake
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/pcre2grep
%{_bindir}/pcre2test
%{_mandir}/man1/pcre2grep.1*
%{_mandir}/man1/pcre2test.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libpcre2-8.so.*
%{_libdir}/libpcre2-16.so.*
%{_libdir}/libpcre2-32.so.*
%{_libdir}/libpcre2-posix.so.*
%doc AUTHORS COPYING LICENCE
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_bindir}/pcre2-config
%{_includedir}/pcre2.h
%{_includedir}/pcre2posix.h
%{_libdir}/libpcre2-8.a
%{_libdir}/libpcre2-8.so
%{_libdir}/libpcre2-16.a
%{_libdir}/libpcre2-16.so
%{_libdir}/libpcre2-32.a
%{_libdir}/libpcre2-32.so
%{_libdir}/libpcre2-posix.a
%{_libdir}/libpcre2-posix.so
%{_libdir}/pkgconfig/libpcre2-8.pc
%{_libdir}/pkgconfig/libpcre2-16.pc
%{_libdir}/pkgconfig/libpcre2-32.pc
%{_libdir}/pkgconfig/libpcre2-posix.pc
%{_libdir}/cmake/pcre2-config*.cmake
%dir %{_datadir}/doc/pcre2
%{_datadir}/doc/pcre2/*
%{_mandir}/man1/pcre2-config.1*
%{_mandir}/man3/pcre2*.3*
%doc ChangeLog NEWS README
%changelog
* Wed Jun 19 2024 Automatic Build System <autodist@openmamba.org> 10.44-1mamba
- automatic version update by autodist
* Mon Apr 29 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 10.43-2mamba
- enabled JIT; added patches to fix instruction detection on x86 and thread safety problem
* Tue Feb 20 2024 Automatic Build System <autodist@openmamba.org> 10.43-1mamba
- automatic version update by autodist
* Sat Dec 17 2022 Automatic Build System <autodist@mambasoft.it> 10.42-1mamba
- automatic version update by autodist
* Fri Dec 09 2022 Automatic Build System <autodist@mambasoft.it> 10.41-1mamba
- automatic version update by autodist
* Sat May 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 10.40-1mamba
- update to 10.40
* Thu May 27 2021 Automatic Build System <autodist@mambasoft.it> 10.37-1mamba
- automatic version update by autodist
* Wed Mar 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 10.36-2mamba
- enable 16 and 32 bit character support
* Wed Dec 16 2020 Automatic Build System <autodist@mambasoft.it> 10.36-1mamba
- automatic version update by autodist
* Wed May 20 2020 Automatic Build System <autodist@mambasoft.it> 10.35-1mamba
- automatic version update by autodist
* Tue Nov 26 2019 Automatic Build System <autodist@mambasoft.it> 10.34-1mamba
- automatic version update by autodist
* Fri Aug 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 10.33-1mamba
- update to 10.33
* Mon Mar 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 10.32-1mamba
- package created using the webbuild interface