140 lines
3.8 KiB
RPMSpec
140 lines
3.8 KiB
RPMSpec
Name: pcre2
|
|
Version: 10.42
|
|
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
|
|
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
|
|
|
|
sed -i "s| man/man| share/man/man|" CMakeLists.txt
|
|
|
|
%build
|
|
%cmake -d build \
|
|
-DPCRE2_BUILD_PCRE2_16=ON \
|
|
-DPCRE2_BUILD_PCRE2_32=ON
|
|
|
|
#% configure \
|
|
# --enable-pcre2-16 \
|
|
# --enable-pcre2-32
|
|
|
|
%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
|
|
%{_bindir}/pcre2posix_test
|
|
%{_mandir}/man1/pcre2-config.1*
|
|
%{_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
|
|
%dir %{_datadir}/doc/pcre2
|
|
%{_datadir}/doc/pcre2/*
|
|
%{_mandir}/man3/pcre2*.3*
|
|
%doc ChangeLog NEWS README
|
|
|
|
%changelog
|
|
* 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
|