diff --git a/README.md b/README.md index 44a7407..17a875e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ # libmicrohttpd +GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application. +Key features that distinguish libmicrohttpd from other projects are: + * C library: fast and small + * API is simple, expressive and fully reentrant + * Implementation is http 1.1 compliant + * HTTP server can listen on multiple ports + * Support for IPv6 + * Support for incremental processing of POST data + * Creates binary of only 25k (for now) + * Three different threading models + diff --git a/libmicrohttpd.spec b/libmicrohttpd.spec new file mode 100644 index 0000000..2bc0f9d --- /dev/null +++ b/libmicrohttpd.spec @@ -0,0 +1,152 @@ +Name: libmicrohttpd +Version: 0.9.35 +Release: 1mamba +Summary: A library embedding HTTP server functionality +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: http://www.gnu.org/software/libmicrohttpd/ +Source: ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libgcrypt-devel +BuildRequires: libgnutls-devel +BuildRequires: libgpg-error-devel +## AUTOBUILDREQ-END +BuildRequires: libgmp-devel +BuildRequires: libtasn1-devel +BuildRequires: p11-kit-devel +BuildRequires: graphviz +BuildRequires: doxygen +Requires(post): %{__install_info} +Requires(preun): %{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. +Key features that distinguish libmicrohttpd from other projects are: + * C library: fast and small + * API is simple, expressive and fully reentrant + * Implementation is http 1.1 compliant + * HTTP server can listen on multiple ports + * Support for IPv6 + * Support for incremental processing of POST data + * Creates binary of only 25k (for now) + * Three different threading models + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package apidocs +Group: Documentation +Summary: %{name} API documentation +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description apidocs +This package includes the %{name} API documentation. + +%debug_package + +%prep +%setup -q +#sed -i "s|/home/grothoff/svn/libmicrohttpd|.|" doc/Doxyfile + +%build +%configure --disable-static --with-gnutls +%make + +#doxygen doc/Doxyfile + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +# Install some examples +mkdir examples +install -m 644 src/examples/*.c examples + +rm -f %{buildroot}%{_bindir}/demo + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%post devel +%install_info %{name}.info +exit 0 + +%preun devel +%uninstall_info %{name}.info +exit 0 + +%files +%defattr(-,root,root) +%{_bindir}/microspdy2http +%{_libdir}/libmicrohttpd.so.* +%{_libdir}/libmicrospdy.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/microhttpd.h +%{_includedir}/microspdy.h +%{_libdir}/libmicrohttpd.la +%{_libdir}/libmicrohttpd.so +%{_libdir}/libmicrospdy.la +%{_libdir}/libmicrospdy.so +%{_libdir}/pkgconfig/libmicrohttpd.pc +%{_libdir}/pkgconfig/libmicrospdy.pc +%{_mandir}/man3/libmicrohttpd.* +%{_infodir}/libmicrohttpd.info.* +%{_infodir}/libmicrohttpd-tutorial.info.* +%doc NEWS README + +%files apidocs +%defattr(-,root,root) +%doc examples +#%doc doc/doxygen/html + +%changelog +* Sun May 11 2014 Automatic Build System 0.9.35-1mamba +- automatic version update by autodist + +* Wed Apr 09 2014 Automatic Build System 0.9.34-1mamba +- automatic version update by autodist + +* Wed Jan 22 2014 Automatic Build System 0.9.33-1mamba +- automatic version update by autodist + +* Tue Dec 10 2013 Automatic Build System 0.9.32-1mamba +- automatic version update by autodist + +* Tue Sep 10 2013 Automatic Build System 0.9.30-1mamba +- automatic update by autodist + +* Sun Sep 01 2013 Automatic Build System 0.9.29-1mamba +- automatic update by autodist + +* Sat Jul 27 2013 Automatic Build System 0.9.28-1mamba +- automatic update by autodist + +* Mon May 06 2013 Automatic Build System 0.9.27-1mamba +- automatic version update by autodist + +* Mon Apr 01 2013 Automatic Build System 0.9.26-1mamba +- automatic version update by autodist + +* Sat Mar 02 2013 Automatic Build System 0.9.25-1mamba +- automatic version update by autodist + +* Sun Feb 17 2013 Davide Madrisan 0.9.25-1mamba +- package created by autospec