From f384f4c3a2ed26d0d2c596b601cbf2531153311f Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 20 Oct 2024 13:32:24 +0000 Subject: automatic import of libmicrohttpd --- libmicrohttpd.spec | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 libmicrohttpd.spec (limited to 'libmicrohttpd.spec') diff --git a/libmicrohttpd.spec b/libmicrohttpd.spec new file mode 100644 index 0000000..cd87d4b --- /dev/null +++ b/libmicrohttpd.spec @@ -0,0 +1,102 @@ +Name: libmicrohttpd +Version: 1.0.1 +Release: 2 +Epoch: 1 +Summary: Lightweight library for embedding a webserver in applications +License: LGPL-2.1-or-later +URL: https://www.gnu.org/software/libmicrohttpd/ +Source0: https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz +Patch5000: fixed-missing-websocket.inc-in-dist-files.patch + +BuildRequires: gcc make +BuildRequires: libgcrypt-devel >= 1.2.2 +BuildRequires: pkgconfig(gnutls) +BuildRequires: doxygen + +%description +GNU libmicrohttpd is a small C library that is supposed to make it +easy to run an HTTP server as part of another application. + +%package devel +Summary: Development files for libmicrohttpd +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description devel +Development files for libmicrohttpd + +%package help +Summary: This help package for libmicrohttpd +Requires: %{name} = %{epoch}:%{version}-%{release} +BuildArch: noarch +Provides: %{name}-doc = %{epoch}:%{version}-%{release} +Obsoletes: %{name}-doc < %{epoch}:%{version}-%{release} + +%description help +The help package contains manual pages and doc files for libmicrohttpd + +%prep +%autosetup -p1 + +%build +%configure --disable-static --with-gnutls --enable-https=yes +%make_build +make -C doc/doxygen full + +%check +%make_build check + +%install +%make_install +%delete_la + +rm -f %{buildroot}%{_infodir}/dir + +mkdir examples +cp src/examples/*.c examples +cp doc/examples/*.c examples +chmod 644 examples/*.c +cp -R doc/doxygen/html html + +%files +%license COPYING +%{_libdir}/libmicrohttpd.so.* + +%files devel +%{_includedir}/microhttpd.h +%{_libdir}/libmicrohttpd.so +%{_libdir}/pkgconfig/libmicrohttpd.pc + +%files help +%doc AUTHORS ChangeLog examples html README +%{_mandir}/man3/libmicrohttpd.3* +%{_infodir}/* + +%changelog +* Sun Oct 20 2024 Funda Wang - 1:1.0.1-2 +- cleanup spec + +* Mon Jul 08 2024 xu_ping <707078654@qq.com> - 1:1.0.1-1 +- Upgrade to 1.0.1 +- fix some bugs +- Reduced the binary size for builds without messages by removing + the strings with filenames used for panic reports. + +* Fri Jan 12 2024 yaoxin - 1:0.9.77-1 +- Upgrade to 0.9.77 + +* Sun Oct 08 2023 wulei - 1:0.9.75-4 +- Fixed missing websocket.inc in dist files + +* Mon Mar 13 2023 yaoxin - 1:0.9.75-3 +- Fix CVE-2023-27371 + +* Fri Aug 5 2022 liyanan - 1:0.9.75-2 +- Fixed missing websocket.inc in dist files + +* Fri Jan 14 2022 xigaoxinyan - 0.9.75-1 +- update to 0.9.75 +* Thu Aug 05 2021 caodongxia - 0.9.59-5 +- Fix libmicrohttpd-tutorial info + +* Thu Nov 21 2019 wangye - 0.9.59-4 +- Package init -- cgit v1.2.3