[mingw-libmicrohttpd] Initial package commit.

mooninite mooninite at fedoraproject.org
Tue Feb 11 00:51:31 UTC 2014


commit 2790e0f448539d57dc4906e6e5aa8972b7c7466a
Author: Michael Cronenworth <mike at cchtml.com>
Date:   Mon Feb 10 18:52:05 2014 -0600

    Initial package commit.

 .gitignore               |    1 +
 mingw-libmicrohttpd.spec |  137 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 139 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1e82c97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libmicrohttpd-0.9.33.tar.gz
diff --git a/mingw-libmicrohttpd.spec b/mingw-libmicrohttpd.spec
new file mode 100644
index 0000000..837120b
--- /dev/null
+++ b/mingw-libmicrohttpd.spec
@@ -0,0 +1,137 @@
+%{?mingw_package_header}
+
+Name:           mingw-libmicrohttpd
+Version:        0.9.33
+Release:        1%{?dist}
+Summary:        MinGW package for libmicrohttpd
+
+License:        LGPLv2+
+URL:            http://www.gnu.org/software/libmicrohttpd/
+Source0:        http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  mingw32-filesystem >= 95
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw32-curl
+BuildRequires:  mingw32-libgcrypt
+BuildRequires:  mingw32-gnutls
+BuildRequires:  mingw32-plibc
+
+BuildRequires:  mingw64-filesystem >= 95
+BuildRequires:  mingw64-gcc
+BuildRequires:  mingw64-curl
+BuildRequires:  mingw64-libgcrypt
+BuildRequires:  mingw64-gnutls
+BuildRequires:  mingw64-plibc
+
+
+%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.
+
+
+# Mingw32
+%package -n mingw32-libmicrohttpd
+Summary:        MinGW package for libmicrohttpd
+
+%description -n mingw32-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.
+
+
+%package -n mingw32-libmicrohttpd-static
+Summary:        Static version of the libmicrohttpd library
+Requires:       mingw32-libmicrohttpd = %{version}-%{release}
+
+
+%description -n mingw32-libmicrohttpd-static
+Static version of the libmicrohttpd library.
+
+
+# Mingw64
+%package -n mingw64-libmicrohttpd
+Summary:        MinGW package for libmicrohttpd
+
+
+%description -n mingw64-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.
+
+
+%package -n mingw64-libmicrohttpd-static
+Summary:        Static version of the libmicrohttpd library
+Requires:       mingw64-libmicrohttpd = %{version}-%{release}
+
+
+%description -n mingw64-libmicrohttpd-static
+Static version of the libmicrohttpd library.
+
+
+%?mingw_debug_package
+
+
+%prep
+%setup -q -n libmicrohttpd-%{version}
+
+
+%build
+# microspdy is not MinGW-compatible at this time
+%mingw_configure --disable-spdy
+%mingw_make %{?_smp_mflags}
+
+
+%install
+%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
+
+# remove documentation provided by native package
+rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/info
+rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/man
+rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/info
+rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/man
+
+# remove libtool files
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+# Win32
+%files -n mingw32-libmicrohttpd
+%doc COPYING
+%{mingw32_bindir}/libmicrohttpd-10.dll
+%{mingw32_includedir}/microhttpd.h
+%{mingw32_libdir}/libmicrohttpd.dll.a
+%{mingw32_libdir}/pkgconfig/libmicrohttpd.pc
+
+%files -n mingw32-libmicrohttpd-static
+%{mingw32_libdir}/libmicrohttpd.a
+
+
+# Win64
+%files -n mingw64-libmicrohttpd
+%doc COPYING
+%{mingw64_bindir}/libmicrohttpd-10.dll
+%{mingw64_includedir}/microhttpd.h
+%{mingw64_libdir}/libmicrohttpd.dll.a
+%{mingw64_libdir}/pkgconfig/libmicrohttpd.pc
+
+%files -n mingw64-libmicrohttpd-static
+%{mingw64_libdir}/libmicrohttpd.a
+
+
+%changelog
+* Tue Jan 07 2014 Michael Cronenworth <mike at cchtml.com> - 0.9.33-1
+- Update to latest upstream.
+- Package review fixes.
+
+* Fri Aug 30 2013 Michael Cronenworth <mike at cchtml.com> - 0.9.27-4
+- Link against PlibC now that bad code has been removed.
+
+* Wed Aug 07 2013 Michael Cronenworth <mike at cchtml.com> - 0.9.27-3
+- Patches to remove more PlibC dependencies, fix pipe usage.
+
+* Tue Aug 06 2013 Michael Cronenworth <mike at cchtml.com> - 0.9.27-2
+- Patches to remove PlibC dependency.
+
+* Thu Jul 25 2013 Michael Cronenworth <mike at cchtml.com> - 0.9.27-1
+- Initial RPM release.
+
diff --git a/sources b/sources
index e69de29..976c6b5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+013b10f9de1cda5448b29c81305354a3  libmicrohttpd-0.9.33.tar.gz


More information about the scm-commits mailing list