libmicrohttpd-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. Summary: Lightweight library for embedding a webserver in applications
  2. Name: libmicrohttpd
  3. Version: 0.9.72
  4. Release: 1%{?_dist_release}
  5. Group: system
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: LGPLv2+
  9. URL: https://www.gnu.org/software/libmicrohttpd/
  10. Source0: https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: autoconf, automake, libtool
  13. BuildRequires: curl-devel
  14. BuildRequires: gnutls-devel
  15. BuildRequires: libgcrypt-devel
  16. BuildRequires: openssl-devel
  17. BuildRequires: zlib-devel
  18. BuildRequires: graphviz
  19. BuildRequires: doxygen
  20. Requires(post): info
  21. Requires(preun): info
  22. %description
  23. GNU libmicrohttpd is a small C library that is supposed to make it
  24. easy to run an HTTP server as part of another application.
  25. Key features that distinguish libmicrohttpd from other projects are:
  26. * C library: fast and small
  27. * API is simple, expressive and fully reentrant
  28. * Implementation is http 1.1 compliant
  29. * HTTP server can listen on multiple ports
  30. * Support for IPv6
  31. * Support for incremental processing of POST data
  32. * Creates binary of only 25k (for now)
  33. * Three different threading models
  34. %package devel
  35. Summary: Development files for libmicrohttpd
  36. Summary(ja): libmicrohttpd の開発用ファイル
  37. Group: programming
  38. Requires: %{name} = %{version}-%{release}
  39. %description devel
  40. Development files for libmicrohttpd
  41. %package doc
  42. Summary: Documentation for libmicrohttpd
  43. Summary(ja): libmicrohttpd のドキュメント
  44. Group: documentation
  45. Buildarch: noarch
  46. Requires: %{name} = %{version}-%{release}
  47. %description doc
  48. Doxygen documentation for libmicrohttpd and some example source code
  49. %debug_package
  50. %prep
  51. %setup -q
  52. %build
  53. %configure --disable-static --with-gnutls
  54. make %{?_smp_mflags}
  55. make full -C doc/doxygen
  56. %install
  57. rm -rf %{buildroot}
  58. make install DESTDIR=%{buildroot}
  59. rm -f %{buildroot}%{_libdir}/libmicrohttpd.la
  60. rm -f %{buildroot}%{_libdir}/libmicrospdy.la
  61. rm -f %{buildroot}%{_infodir}/dir
  62. # Install some examples in /usr/share/doc/libmicrohttpd-${version}/examples
  63. rm -rf examples
  64. mkdir -p examples
  65. install -m 644 src/examples/*.c examples
  66. # Install the doxygen documentation in /usr/share/doc/libmicrohttpd-${version}/html
  67. rm -rf html
  68. cp -R doc/doxygen/html .
  69. # Disabled for now due to problems reported at
  70. # https://gnunet.org/bugs/view.php?id=1619
  71. #check
  72. #make check %{?_smp_mflags}
  73. %clean
  74. rm -rf %{buildroot}
  75. %post doc
  76. /sbin/install-info %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
  77. /sbin/install-info %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
  78. %preun doc
  79. if [ $1 = 0 ] ; then
  80. /sbin/install-info --delete %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
  81. /sbin/install-info --delete %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
  82. fi
  83. %files
  84. %defattr(-,root,root,-)
  85. %license COPYING
  86. %{_libdir}/libmicro*.so.*
  87. %files devel
  88. %defattr(-,root,root,-)
  89. %{_includedir}/micro*.h
  90. %{_libdir}/libmicro*.so
  91. %{_libdir}/pkgconfig/libmicro*.pc
  92. %files doc
  93. %doc AUTHORS README ChangeLog
  94. %doc examples
  95. %doc html
  96. %defattr(-,root,root,-)
  97. %{_mandir}/man3/libmicrohttpd.3.gz
  98. %{_infodir}/libmicrohttpd.info.gz
  99. %{_infodir}/libmicrohttpd_performance_data.png.gz
  100. %{_infodir}/libmicrohttpd-tutorial.info.gz
  101. %changelog
  102. * Mon Mar 29 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.72-1
  103. - new upstream release.
  104. - dropped ldconfig scriptlets.
  105. * Sun Mar 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.70-1
  106. - rebuilt with current environment.
  107. * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.39-2
  108. - rebuild with openssl-1.0.2
  109. * Mon Jan 12 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.39-1
  110. - updated to 0.9.39
  111. - built with libgcrypt 1.6.0 and gnutls 3.2.20
  112. * Mon Jan 17 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9.2-1
  113. - initial build for Vine Linux based on fedora development
  114. * Tue Nov 16 2010 Tim Niemueller <tim@niemueller.de> - 0.9.2-3
  115. - Add missing BR gnutls-devel and libgcrypt-devel
  116. - Added patch to fix test apps (NSS instead of GnuTLS/OpenSSL curl,
  117. implicit DSO linking)
  118. - Disable test cases for now due to false errors, reported upstream
  119. * Tue Nov 16 2010 Tim Niemueller <tim@niemueller.de> - 0.9.2-2
  120. - Re-enable HTTPS, configure flags had unexpected result
  121. * Sun Nov 7 2010 Tim Niemueller <tim@niemueller.de> - 0.9.2-1
  122. - Update to 0.9.2
  123. * Fri Jun 4 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.4.6-1
  124. - Update to 0.4.6
  125. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
  126. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  127. * Tue Jul 21 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.4.2-1
  128. - Update to version 0.4.2
  129. - Drop upstreamed patch
  130. * Fri Feb 27 2009 Erik van Pienbroek <info@nntpgrab.nl> - 0.4.0a-1
  131. - Update to version 0.4.0a
  132. - Drop upstreamed patch
  133. - Added a new patch to fix a 64bit issue
  134. - The -devel package now contains a pkgconfig file
  135. - The configure script is now run with '--enable-messages --enable-https'
  136. - Made the -doc subpackage noarch (F11+)
  137. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
  138. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  139. * Sat Feb 14 2009 Erik van Pienbroek <info@nntpgrab.nl> - 0.4.0-1
  140. - Update to version 0.4.0
  141. - This version introduces a API bump (which is required for
  142. supporting large files on 32bit environments)
  143. - The license issues we had with version 0.3.1 of this package (as
  144. discussed in #457924) are resolved in this version. The license
  145. of this package is now changed to LGPLv2+
  146. - Added a patch to fix two testcases on 64bit environments (upstream bug #1454)
  147. * Sat Sep 6 2008 Erik van Pienbroek <info@nntpgrab.nl> - 0.3.1-3
  148. - Changed license to GPLv3+ and added some comments
  149. regarding the license issues with this package
  150. * Sun Aug 10 2008 Erik van Pienbroek <info@nntpgrab.nl> - 0.3.1-2
  151. - Changed license to LGPLv2+
  152. - Moved the COPYING file to the main package
  153. * Tue Aug 5 2008 Erik van Pienbroek <info@nntpgrab.nl> - 0.3.1-1
  154. - Initial release