New libmicrohttpd package
This commit is contained in:
112
fedora/SPECS/libmicrohttpd.spec
Normal file
112
fedora/SPECS/libmicrohttpd.spec
Normal file
@@ -0,0 +1,112 @@
|
||||
Name: libmicrohttpd
|
||||
Version: 0.9.62
|
||||
Release: 1%{?dist}
|
||||
Epoch: 1
|
||||
Summary: Lightweight library for embedding a webserver in applications
|
||||
License: LGPLv2+
|
||||
URL: http://www.gnu.org/software/libmicrohttpd/
|
||||
Source0: https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
|
||||
Patch0: gnutls-utilize-system-crypto-policy.patch
|
||||
|
||||
BuildRequires: autoconf, automake, libtool, gettext-devel
|
||||
BuildRequires: texinfo
|
||||
BuildRequires: gnutls-devel
|
||||
BuildRequires: doxygen graphviz
|
||||
Requires(post): info
|
||||
Requires(preun): info
|
||||
|
||||
%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
|
||||
Summary: Development files for libmicrohttpd
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files for libmicrohttpd
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for libmicrohttpd
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Doxygen documentation for libmicrohttpd and some example source code
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
# Required because patches modify .am files
|
||||
autoreconf --install --force
|
||||
%configure --disable-static --with-gnutls --enable-https=yes
|
||||
%make_build
|
||||
make -C doc/doxygen full
|
||||
|
||||
# Disabled for now due to problems reported at
|
||||
# https://gnunet.org/bugs/view.php?id=1619
|
||||
|
||||
%check
|
||||
%ifnarch s390x
|
||||
%make_build check
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
rm -f %{buildroot}%{_infodir}/dir
|
||||
rm -f %{buildroot}%{_bindir}/demo
|
||||
|
||||
# Install some examples in /usr/share/doc/libmicrohttpd-doc/examples
|
||||
mkdir examples
|
||||
install -m 644 src/examples/*.c examples
|
||||
install -m 644 doc/examples/*.c examples
|
||||
|
||||
cp -R doc/doxygen/html html
|
||||
|
||||
%post doc
|
||||
/sbin/install-info %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
|
||||
/sbin/install-info %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
|
||||
|
||||
%preun doc
|
||||
if [ $1 = 0 ] ; then
|
||||
/sbin/install-info --delete %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
|
||||
/sbin/install-info --delete %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%doc README
|
||||
%license COPYING
|
||||
%{_libdir}/libmicrohttpd.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/microhttpd.h
|
||||
%{_libdir}/libmicrohttpd.so
|
||||
%{_libdir}/pkgconfig/libmicrohttpd.pc
|
||||
|
||||
%files doc
|
||||
%{_mandir}/man3/libmicrohttpd.3.gz
|
||||
%{_infodir}/libmicrohttpd.info.gz
|
||||
%{_infodir}/libmicrohttpd-tutorial.info.gz
|
||||
%{_infodir}/libmicrohttpd_performance_data.png.gz
|
||||
%doc AUTHORS README ChangeLog
|
||||
%doc examples
|
||||
%doc html
|
||||
|
||||
%changelog
|
||||
* Sun Jan 13 2019 Daniel Steiner <daniel.steiner@greenmail.ch> - 1:0.9.62-1
|
||||
- First version for Fedora 29
|
||||
- Update to latest version
|
||||
|
||||
Reference in New Issue
Block a user