From 68926691f015c642f2531eafa1227e71a6e47dfb Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:12:41 +0100 Subject: [PATCH] update to 1.2.9 [release 1.2.9-1mamba;Sun May 24 2015] --- README.md | 2 ++ libevhtp.spec | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 libevhtp.spec diff --git a/README.md b/README.md index c0ca951..5a377e7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libevhtp +Libevhtp is an API which manages threads and thread-pools in an event based manner. This API requires libevent with threading support. + diff --git a/libevhtp.spec b/libevhtp.spec new file mode 100644 index 0000000..6b84e0d --- /dev/null +++ b/libevhtp.spec @@ -0,0 +1,87 @@ +Name: libevhtp +Version: 1.2.9 +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 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libevent-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. + +%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. +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build \ + -DEVHTP_DISABLE_SSL=ON \ + -DEVHTP_BUILD_SHARED=ON + +# See http://manual.seafile.com/build_seafile/server.html#libevhtp + +# FIXME: shared needs soname patch +# -DEVHTP_BUILD_SHARED=OFF + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +#%files +#%defattr(-,root,root) +#%{_libdir}/libevhtp.so +#%doc LICENSE + +%files +%defattr(-,root,root) +%{_libdir}/libevhtp.so + +%files devel +%defattr(-,root,root) +%{_includedir}/evhtp-config.h +%{_includedir}/evhtp.h +%{_includedir}/evthr.h +%{_includedir}/htparse.h +%{_includedir}/onigposix.h +%doc ChangeLog README.markdown + +%changelog +* 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 + +* Sat Aug 09 2014 Silvan Calarco 1.2.9-1mamba +- package created using the webbuild interface