SPECS: libupnp.spec - updated to 1.3.1, added opt patch

qboosh qboosh at pld-linux.org
Sat Jul 22 12:03:03 CEST 2006


Author: qboosh                       Date: Sat Jul 22 10:03:03 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 1.3.1, added opt patch

---- Files affected:
SPECS:
   libupnp.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/libupnp.spec
diff -u SPECS/libupnp.spec:1.6 SPECS/libupnp.spec:1.7
--- SPECS/libupnp.spec:1.6	Wed Sep  1 13:49:24 2004
+++ SPECS/libupnp.spec	Sat Jul 22 12:02:58 2006
@@ -2,13 +2,17 @@
 Summary:	The Universal Plug and Play (UPnP) SDK for Linux
 Summary(pl):	Pakiet programistyczny Universal Plug and Play (UPnP) dla Linuksa
 Name:		libupnp
-Version:	1.2.1a
+Version:	1.3.1
 Release:	1
 License:	BSD
-Group:		Development/Libraries
+Group:		Libraries
 Source0:	http://dl.sourceforge.net/upnp/%{name}-%{version}.tar.gz
-# Source0-md5:	e72b3550bf064eedf080f16f09688891
+# Source0-md5:	6646be5e31e58188e8f47c6ce64faa4c
+Patch0:		%{name}-opt.patch
 URL:		http://upnp.sourceforge.net/
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake >= 1:1.9
+BuildRequires:	libtool >= 2:1.5
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -37,29 +41,37 @@
 Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu
 programistycznego do urządzeń UPnP (libupnp).
 
+%package static
+Summary:	Static upnp libraries
+Summary(pl):	Statyczne biblioteki upnp
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static upnp libraries.
+
+%description static -l pl
+Statyczne biblioteki upnp.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-%{__make} -C ixml \
-	CC="%{__cc}" \
-	%{?!debug:DEBUG=0 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \
-	%{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"}
-%{__make} -C threadutil \
-	CC="%{__cc}" \
-	%{?!debug:DEBUG=0 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \
-	%{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"}
-%{__make} -C upnp\
-	CC="%{__cc}" \
-	%{?!debug:DEBUG=0 DEBUG_FLAGS="%{rpmcflags} -DNDEBUG"} \
-	%{?debug:DEBUG=1 DEBUG_FLAGS="%{rpmcflags} -DDEBUG"}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	%{?debug:--enable-debug}
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/upnp}
 
-cp upnp/inc/* $RPM_BUILD_ROOT%{_includedir}/upnp
-cp upnp/bin%{?debug:/debug}/* $RPM_BUILD_ROOT%{_libdir}
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -69,15 +81,28 @@
 
 %files
 %defattr(644,root,root,755)
-%doc README
-%attr(755,root,root) %{_libdir}/libupnp.so
-%attr(755,root,root) %{_libdir}/libixml.so
-%attr(755,root,root) %{_libdir}/libthreadutil*.so
+%doc ChangeLog LICENSE NEWS README TODO
+%attr(755,root,root) %{_libdir}/libixml.so.*.*.*
+%attr(755,root,root) %{_libdir}/libthreadutil.so.*.*.*
+%attr(755,root,root) %{_libdir}/libupnp.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %doc upnp/doc/UPnP_Programming_Guide.pdf
-%{_includedir}/*
+%attr(755,root,root) %{_libdir}/libixml.so
+%attr(755,root,root) %{_libdir}/libthreadutil.so
+%attr(755,root,root) %{_libdir}/libupnp.so
+%{_libdir}/libixml.la
+%{_libdir}/libthreadutil.la
+%{_libdir}/libupnp.la
+%{_includedir}/upnp
+%{_pkgconfigdir}/libupnp.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libixml.a
+%{_libdir}/libthreadutil.a
+%{_libdir}/libupnp.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -85,6 +110,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2006/07/22 10:02:58  qboosh
+- updated to 1.3.1, added opt patch
+
 Revision 1.6  2004/09/01 11:49:24  snurf
 - typos / formatting / etc.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libupnp.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list