|
@@ -1,6 +1,9 @@
|
|
%define name libupnp
|
|
%define name libupnp
|
|
-%define version 1.6.6
|
|
+%define version 1.6.13
|
|
-%define release 2%{?_dist_release}
|
|
+%define release 1%{?_dist_release}
|
|
|
|
+
|
|
|
|
+%define docdeveldir %{_docdir}/%{name}-devel-%{version}
|
|
|
|
+%define docdir %{_docdir}/%{name}-%{version}
|
|
|
|
|
|
Summary: Universal Plug and Play (UPnP) SDK
|
|
Summary: Universal Plug and Play (UPnP) SDK
|
|
Summary(ja): ユニバーサルプラグアンドプレイ開発キット
|
|
Summary(ja): ユニバーサルプラグアンドプレイ開発キット
|
|
@@ -8,7 +11,6 @@ Name: %{name}
|
|
Version: %{version}
|
|
Version: %{version}
|
|
Release: %{release}
|
|
Release: %{release}
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
-Patch0: %{name}-1.6.5.patch
|
|
|
|
License: BSD
|
|
License: BSD
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
URL: http://pupnp.sourceforge.net/
|
|
URL: http://pupnp.sourceforge.net/
|
|
@@ -32,32 +34,39 @@ you will need to install %{name}-devel.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --with-documentation="/rpm-doc"
|
|
+%configure --with-documentation --enable-static=no
|
|
%{__make} %{?_smp_mflags}
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
+%{__rm} -rf %{buildroot}
|
|
-%{__make} install DESTDIR="${RPM_BUILD_ROOT}"
|
|
+%{__make} install DESTDIR="%{buildroot}"
|
|
|
|
|
|
-#
|
|
+#create the doc devel dir
|
|
-%{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
|
+%{__mkdir_p} %{buildroot}%{docdeveldir}
|
|
|
|
|
|
-### Clean up buildroot
|
|
+#mv examples dir and pdf file to the doc devel dir
|
|
-cp -pr ${RPM_BUILD_ROOT}/rpm-doc/ .
|
|
+%{__mv} %{buildroot}%{docdir}/examples \
|
|
-rm -rf ${RPM_BUILD_ROOT}/rpm-doc/
|
|
+ %{buildroot}%{docdeveldir}/
|
|
-#{__mv} -f ${RPM_BUILD_ROOT}/rpm-doc/ .
|
|
+%{__mv} %{buildroot}%{docdir}/UPnP_Programming_Guide.pdf \
|
|
|
|
+ %{buildroot}%{docdeveldir}/
|
|
|
|
+%{__mv} %{buildroot}%{docdir}/IXML_Programming_Guide.pdf \
|
|
|
|
+ %{buildroot}%{docdeveldir}/
|
|
|
|
+%{__mv} %{buildroot}%{docdir}/html \
|
|
|
|
+ %{buildroot}%{docdeveldir}/
|
|
|
|
+
|
|
|
|
+%{__rm} %{buildroot}%{_libdir}/{libixml.la,libthreadutil.la,libupnp.la}
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
|
|
+
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
%files
|
|
%files
|
|
-%defattr(-, root, root, 0755)
|
|
+%defattr(-, root, root, -)
|
|
%doc AUTHORS ChangeLog COPYING INSTALL LICENSE NEWS README THANKS TODO
|
|
%doc AUTHORS ChangeLog COPYING INSTALL LICENSE NEWS README THANKS TODO
|
|
%{_libdir}/libixml.so.*
|
|
%{_libdir}/libixml.so.*
|
|
%{_libdir}/libthreadutil.so.*
|
|
%{_libdir}/libthreadutil.so.*
|
|
@@ -65,17 +74,17 @@ rm -rf ${RPM_BUILD_ROOT}/rpm-doc/
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-, root, root, 0755)
|
|
%defattr(-, root, root, 0755)
|
|
-%doc rpm-doc/*
|
|
+%doc %{docdeveldir}
|
|
%{_includedir}/upnp/
|
|
%{_includedir}/upnp/
|
|
-%{_libdir}/libixml.a
|
|
|
|
%{_libdir}/libixml.so
|
|
%{_libdir}/libixml.so
|
|
-%{_libdir}/libthreadutil.a
|
|
|
|
%{_libdir}/libthreadutil.so
|
|
%{_libdir}/libthreadutil.so
|
|
-%{_libdir}/libupnp.a
|
|
|
|
%{_libdir}/libupnp.so
|
|
%{_libdir}/libupnp.so
|
|
%{_libdir}/pkgconfig/libupnp.pc
|
|
%{_libdir}/pkgconfig/libupnp.pc
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.6.13-1
|
|
|
|
+- new upstream release
|
|
|
|
+
|
|
* Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.6-2
|
|
* Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.6-2
|
|
- rebuild with rpm-4.8.1 for pkg-config file
|
|
- rebuild with rpm-4.8.1 for pkg-config file
|
|
|
|
|