update libmicrohttpd.spec.
This commit is contained in:
parent
20d29e5975
commit
97e7a5a5aa
@ -1,183 +1,92 @@
|
|||||||
Name: libmicrohttpd
|
Name: libmicrohttpd
|
||||||
|
|
||||||
Version: 0.9.59
|
Version: 0.9.59
|
||||||
|
|
||||||
Release: 4
|
Release: 4
|
||||||
|
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
Summary: Lightweight library for embedding a webserver in applications
|
Summary: Lightweight library for embedding a webserver in applications
|
||||||
|
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
|
|
||||||
URL: http://www.gnu.org/software/libmicrohttpd/
|
URL: http://www.gnu.org/software/libmicrohttpd/
|
||||||
|
|
||||||
Source0: https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
|
Source0: https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0001: gnutls-utilize-system-crypto-policy.patch
|
Patch0001: gnutls-utilize-system-crypto-policy.patch
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: autoconf automake libtool gettext-devel texinfo gnutls-devel doxygen graphviz
|
BuildRequires: autoconf automake libtool gettext-devel texinfo gnutls-devel doxygen graphviz
|
||||||
|
|
||||||
Requires(post): info
|
Requires(post): info
|
||||||
|
|
||||||
Requires(preun):info
|
Requires(preun):info
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
GNU libmicrohttpd is a small C library that is supposed to make it
|
GNU libmicrohttpd is a small C library that is supposed to make it
|
||||||
|
|
||||||
easy to run an HTTP server as part of another application.
|
easy to run an HTTP server as part of another application.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
|
|
||||||
Summary: Development files for libmicrohttpd
|
Summary: Development files for libmicrohttpd
|
||||||
|
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
|
|
||||||
Development files for libmicrohttpd
|
Development files for libmicrohttpd
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
|
|
||||||
Summary: This help package for libmicrohttpd
|
Summary: This help package for libmicrohttpd
|
||||||
|
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Provides: %{name}-doc = %{epoch}:%{version}-%{release}
|
Provides: %{name}-doc = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
Obsoletes: %{name}-doc < %{epoch}:%{version}-%{release}
|
Obsoletes: %{name}-doc < %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%description help
|
%description help
|
||||||
|
|
||||||
The help package contains manual pages and doc files for libmicrohttpd
|
The help package contains manual pages and doc files for libmicrohttpd
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
autoreconf --install --force
|
autoreconf --install --force
|
||||||
|
|
||||||
%configure --disable-static --with-gnutls --enable-https=yes
|
%configure --disable-static --with-gnutls --enable-https=yes
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
make -C doc/doxygen full
|
make -C doc/doxygen full
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mkdir examples
|
mkdir examples
|
||||||
|
|
||||||
cp src/examples/*.c examples
|
cp src/examples/*.c examples
|
||||||
|
|
||||||
cp doc/examples/*.c examples
|
cp doc/examples/*.c examples
|
||||||
|
|
||||||
chmod 644 examples/*.c
|
chmod 644 examples/*.c
|
||||||
|
|
||||||
cp -R doc/doxygen/html html
|
cp -R doc/doxygen/html html
|
||||||
|
|
||||||
%post help
|
%post help
|
||||||
|
|
||||||
install-info %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
|
install-info %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
|
||||||
|
|
||||||
install-info %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
|
install-info %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%preun help
|
%preun help
|
||||||
|
|
||||||
if [ $1 = 0 ] ; then
|
if [ $1 = 0 ] ; then
|
||||||
|
|
||||||
install-info --delete %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
|
install-info --delete %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
|
||||||
|
|
||||||
install-info --delete %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
|
install-info --delete %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%{_libdir}/libmicrohttpd.so.*
|
%{_libdir}/libmicrohttpd.so.*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
|
||||||
%{_includedir}/microhttpd.h
|
%{_includedir}/microhttpd.h
|
||||||
|
|
||||||
%{_libdir}/libmicrohttpd.so
|
%{_libdir}/libmicrohttpd.so
|
||||||
|
|
||||||
%{_libdir}/pkgconfig/libmicrohttpd.pc
|
%{_libdir}/pkgconfig/libmicrohttpd.pc
|
||||||
|
|
||||||
%exclude %{_libdir}/libmicrohttpd.la
|
%exclude %{_libdir}/libmicrohttpd.la
|
||||||
|
|
||||||
%exclude %{_infodir}/dir
|
%exclude %{_infodir}/dir
|
||||||
|
|
||||||
%exclude %{_bindir}/demo
|
%exclude %{_bindir}/demo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
|
|
||||||
%doc AUTHORS ChangeLog examples html README
|
%doc AUTHORS ChangeLog examples html README
|
||||||
|
|
||||||
%{_mandir}/man3/libmicrohttpd.3.gz
|
%{_mandir}/man3/libmicrohttpd.3.gz
|
||||||
|
|
||||||
%{_infodir}/libmicrohttpd.info.gz
|
%{_infodir}/libmicrohttpd.info.gz
|
||||||
|
|
||||||
%{_infodir}/libmicrohttpd-tutorial.info.gz
|
%{_infodir}/libmicrohttpd-tutorial.info.gz
|
||||||
|
|
||||||
%{_infodir}/libmicrohttpd_performance_data.png.gz
|
%{_infodir}/libmicrohttpd_performance_data.png.gz
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
* Thu Nov 21 2019 wangye<wangye54@huawei.com> - 0.9.59-4
|
* Thu Nov 21 2019 wangye<wangye54@huawei.com> - 0.9.59-4
|
||||||
|
|
||||||
- Package init
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user