summaryrefslogtreecommitdiff
path: root/libmicrohttpd.spec
diff options
context:
space:
mode:
Diffstat (limited to 'libmicrohttpd.spec')
-rw-r--r--libmicrohttpd.spec102
1 files changed, 102 insertions, 0 deletions
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 <fundawang@yeah.net> - 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 <yao_xin001@hoperun.com> - 1:0.9.77-1
+- Upgrade to 0.9.77
+
+* Sun Oct 08 2023 wulei <wulei80@h-partners.com> - 1:0.9.75-4
+- Fixed missing websocket.inc in dist files
+
+* Mon Mar 13 2023 yaoxin <yaoxin30@h-partners.com> - 1:0.9.75-3
+- Fix CVE-2023-27371
+
+* Fri Aug 5 2022 liyanan <liyanan32@h-partners.com> - 1:0.9.75-2
+- Fixed missing websocket.inc in dist files
+
+* Fri Jan 14 2022 xigaoxinyan<xigaoxinyan@huawei.com> - 0.9.75-1
+- update to 0.9.75
+* Thu Aug 05 2021 caodongxia<caodongxia@huawei.com> - 0.9.59-5
+- Fix libmicrohttpd-tutorial info
+
+* Thu Nov 21 2019 wangye<wangye54@huawei.com> - 0.9.59-4
+- Package init