packages: libmicrohttpd/libmicrohttpd.spec (NEW) - initial

wiget wiget at pld-linux.org
Sat Oct 3 14:14:38 CEST 2009


Author: wiget                        Date: Sat Oct  3 12:14:38 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/libmicrohttpd:
   libmicrohttpd.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/libmicrohttpd/libmicrohttpd.spec
diff -u /dev/null packages/libmicrohttpd/libmicrohttpd.spec:1.1
--- /dev/null	Sat Oct  3 14:14:38 2009
+++ packages/libmicrohttpd/libmicrohttpd.spec	Sat Oct  3 14:14:33 2009
@@ -0,0 +1,114 @@
+# $Revision$, $Date$
+%bcond_with	tests
+Summary:	Embeded HTTP server library
+Name:		libmicrohttpd
+Version:	0.4.2
+Release:	0.1
+License:	LGPL
+Group:		Libraries
+Source0:	ftp://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
+# Source0-md5:	2853d8f32417e3c5f3b18fda38f96e52
+URL:		http://www.gnu.org/software/libmicrohttpd/
+BuildRequires:	autoconf >= 2.61
+BuildRequires:	automake >= 1:1.10
+BuildRequires:	libgcrypt-devel >= 1.2.4
+BuildRequires:	libtool
+%if %{with tests}
+BuildRequires:	curl-devel
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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. 
+
+%package devel
+Summary:	Header files to develop libmicrohttpd applications
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files to develop libmicrohttpd applications.
+
+%package static
+Summary:	Static libmicrohttpd libraries
+Summary(pl.UTF-8):	Biblioteka statyczna libmicrohttpd
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libmicrohttpd libraries.
+
+%description static -l pl.UTF-8
+Biblioteka statyczna libmicrohttpd.
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+%if %{with tests}
+	--enable-curl \
+	--enable-client-side \
+%endif
+	--enable-https \
+	--disable-messages \
+
+%{__make}
+%if %{with tests}
+%{__make} check
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%post	devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun	devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README 
+%attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.5
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmicrohttpd.so
+%{_libdir}/libmicrohttpd.la
+%{_includedir}/microhttpd.h
+%{_infodir}/microhttpd.info*
+%{_mandir}/man3/libmicrohttpd.3*
+%{_pkgconfigdir}/libmicrohttpd.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libmicrohttpd.a
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/10/03 12:14:33  wiget
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list