From 1a73da6f75800eb76bdbe26e834211fb28332577 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:12:42 +0100 Subject: [PATCH] update to 1.2.18 [release 1.2.18-1mamba;Fri Dec 30 2022] --- libevhtp.spec | 50 ++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/libevhtp.spec b/libevhtp.spec index 455925a..8efa0f7 100644 --- a/libevhtp.spec +++ b/libevhtp.spec @@ -1,19 +1,22 @@ Name: libevhtp -Version: 1.2.10 +Version: 1.2.18 Release: 1mamba Summary: An API which manages threads and thread-pools in an event based manner Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: https://github.com/ellzey/libevhtp -## GITSOURCE https://github.com/ellzey/libevhtp.git 1.2.9 -Source: https://github.com/ellzey/libevhtp.git/%{version}/libevhtp-%{version}.tar.bz2 +URL: https://github.com/Yellow-Camper/libevhtp +Source: https://github.com/criticalstack/libevhtp.git/%{version}/libevhtp-%{version}.tar.bz2 License: BSD ## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libevent-devel +BuildRequires: libonig-devel ## AUTOBUILDREQ-END +# seaf-server (as of 4.2.2) crashes if not using internal libonig and if libevhtp > 1.2.9 +#BuildConflicts: libonig-devel BuildRequires: cmake -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Libevhtp is an API which manages threads and thread-pools in an event based manner. This API requires libevent with threading support. @@ -21,6 +24,7 @@ Libevhtp is an API which manages threads and thread-pools in an event based mann %package devel Group: Development/Libraries Summary: An API which manages threads and thread-pools in an event based manner +Requires: libevhtp = %{?epoch:%epoch:}%{version}-%{release} %description devel Libevhtp is an API which manages threads and thread-pools in an event based manner. This API requires libevent with threading support. @@ -30,11 +34,14 @@ This package contains libraries and header files for developing applications tha %prep %setup -q +sed -i 's|"lib"|"%{_lib}"|' CMakeLists.txt +sed -i 's|lib/cmake|%{_lib}/cmake|' CMakeLists.txt +sed -i 's|/lib/pkgconfig|/%{_lib}/pkgconfig|' CMakeLists.txt %build %cmake -d build \ -DEVHTP_DISABLE_SSL=ON \ - -DEVHTP_BUILD_SHARED=OFF + -DEVHTP_BUILD_SHARED=ON # See http://manual.seafile.com/build_seafile/server.html#libevhtp @@ -50,18 +57,37 @@ This package contains libraries and header files for developing applications tha %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%files +%defattr(-,root,root) +%{_libdir}/libevhtp.so.* +%doc LICENSE + %files devel %defattr(-,root,root) -%{_includedir}/evhtp-config.h %{_includedir}/evhtp.h -%{_includedir}/evthr.h -%{_includedir}/htparse.h -#%{_includedir}/onigposix.h -%{_libdir}/libevhtp.a -%doc LICENSE +%dir %{_includedir}/evhtp +%{_includedir}/evhtp/*.h +%dir %{_includedir}/evhtp/sys +%{_includedir}/evhtp/sys/*.h +%{_libdir}/libevhtp.so +%{_libdir}/pkgconfig/evhtp.pc +%dir %{_libdir}/cmake/libevhtp +%{_libdir}/cmake/libevhtp/libevhtp*.cmake %doc ChangeLog README.markdown %changelog +* Fri Dec 30 2022 Silvan Calarco 1.2.18-1mamba +- update to 1.2.18 + +* Sun Dec 26 2021 Silvan Calarco 1.2.15-1mamba +- update to 1.2.15 + +* Sun May 24 2015 Silvan Calarco 1.2.9-1mamba +- update to 1.2.9 + +* Sun May 24 2015 Silvan Calarco 1.2.10-2mamba +- rebuilt shared + * Thu May 14 2015 Silvan Calarco 1.2.10-1mamba - update to 1.2.10