SPECS: miniupnpc.spec (NEW) - new
glen
glen at pld-linux.org
Sun Mar 29 15:09:00 CEST 2009
Author: glen Date: Sun Mar 29 13:09:00 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
miniupnpc.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/miniupnpc.spec
diff -u /dev/null SPECS/miniupnpc.spec:1.1
--- /dev/null Sun Mar 29 15:09:00 2009
+++ SPECS/miniupnpc.spec Sun Mar 29 15:08:55 2009
@@ -0,0 +1,112 @@
+# $Revision$, $Date$
+Summary: MiniUPnP client and a library
+Name: miniupnpc
+Version: 1.2
+Release: 0.1
+License: BSD
+Group: Libraries
+Source0: http://miniupnp.tuxfamily.org/files/%{name}-%{version}.tar.gz
+# Source0-md5: 004864b69d2fbdb787e56c095607f6dd
+URL: http://miniupnp.tuxfamily.org/
+BuildRequires: python-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MiniUPnP client and a library
+
+%package devel
+Summary: Header files for miniupnpc library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki miniupnpc
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for miniupnpc library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki miniupnpc.
+
+%package static
+Summary: Static miniupnpc library
+Summary(pl.UTF-8): Statyczna biblioteka miniupnpc
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static miniupnpc library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka miniupnpc.
+
+%package -n python-miniupnpc
+Summary: Python binding for miniupnpc library
+Group: Development/Languages/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-miniupnpc
+Python binding for miniupnpc library.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags} -fPIC -Wall -DNDEBUG"
+
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man3
+%{__make} install \
+ INSTALLPREFIX=$RPM_BUILD_ROOT%{_prefix}
+
+# let SONAME be the symlink
+mv $RPM_BUILD_ROOT%{_libdir}/libminiupnpc.so.{3,3.0.0}
+ldconfig -n $RPM_BUILD_ROOT%{_libdir}
+
+cp -a man3/miniupnpc.3 $RPM_BUILD_ROOT%{_mandir}/man3
+
+%{__python} setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc Changelog.txt README LICENCE
+%attr(755,root,root) %{_bindir}/upnpc
+%attr(755,root,root) %{_libdir}/libminiupnpc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libminiupnpc.so.3
+
+%files devel
+%defattr(644,root,root,755)
+%doc upnpc.c
+%{_libdir}/libminiupnpc.so
+%{_includedir}/miniupnpc
+%{_mandir}/man3/miniupnpc.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libminiupnpc.a
+
+%files -n python-miniupnpc
+%defattr(644,root,root,755)
+%doc pymoduletest.py testupnpigd.py
+%{py_sitedir}/miniupnpc.so
+
+%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/03/29 13:08:55 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list