summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--fixed-missing-websocket.inc-in-dist-files.patch41
-rw-r--r--libmicrohttpd.spec102
-rw-r--r--sources1
4 files changed, 145 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7d53de4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libmicrohttpd-1.0.1.tar.gz
diff --git a/fixed-missing-websocket.inc-in-dist-files.patch b/fixed-missing-websocket.inc-in-dist-files.patch
new file mode 100644
index 0000000..b1a2ba4
--- /dev/null
+++ b/fixed-missing-websocket.inc-in-dist-files.patch
@@ -0,0 +1,41 @@
+diff -Nur a/doc/libmicrohttpd-tutorial.texi b/doc/libmicrohttpd-tutorial.texi
+--- a/doc/libmicrohttpd-tutorial.texi 2021-12-27 01:30:00.000000000 +0800
++++ b/doc/libmicrohttpd-tutorial.texi 2022-08-27 10:39:16.578248526 +0800
+@@ -68,7 +68,6 @@
+ * Improved processing of POST data::
+ * Session management::
+ * Adding a layer of security::
+-* Websockets::
+ * Bibliography::
+ * License text::
+ * Example programs::
+@@ -110,10 +109,6 @@
+ @chapter Adding a layer of security
+ @include chapters/tlsauthentication.inc
+
+-@node Websockets
+-@chapter Websockets
+-@include chapters/websocket.inc
+-
+ @node Bibliography
+ @appendix Bibliography
+ @include chapters/bibliography.inc
+@@ -133,7 +128,6 @@
+ * largepost.c::
+ * sessions.c::
+ * tlsauthentication.c::
+-* websocket.c::
+ @end menu
+
+ @node hellobrowser.c
+@@ -184,10 +178,4 @@
+ @verbatiminclude examples/tlsauthentication.c
+ @end smalldisplay
+
+-@node websocket.c
+-@section websocket.c
+-@smalldisplay
+-@verbatiminclude examples/websocket.c
+-@end smalldisplay
+-
+ @bye
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
diff --git a/sources b/sources
new file mode 100644
index 0000000..c9ae14b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b41c83799a478ea9c774e50ed22446bc libmicrohttpd-1.0.1.tar.gz