libupnp-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. %define name libupnp
  2. %define version 1.6.13
  3. %define release 1%{?_dist_release}
  4. %define docdeveldir %{_docdir}/%{name}-devel-%{version}
  5. %define docdir %{_docdir}/%{name}-%{version}
  6. Summary: Universal Plug and Play (UPnP) SDK
  7. Summary(ja): ユニバーサルプラグアンドプレイ開発キット
  8. Name: %{name}
  9. Version: %{version}
  10. Release: %{release}
  11. Source0: %{name}-%{version}.tar.bz2
  12. License: BSD
  13. Group: System Environment/Libraries
  14. URL: http://pupnp.sourceforge.net/
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. %description
  17. The Universal Plug and Play (UPnP) SDK for Linux provides
  18. support for building UPnP-compliant control points, devices,
  19. and bridges on Linux.
  20. %package devel
  21. Summary: Header files, libraries and development documentation for %{name}.
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. This package contains the header files, static libraries and development
  26. documentation for %{name}. If you like to develop programs using %{name},
  27. you will need to install %{name}-devel.
  28. %prep
  29. %setup -q
  30. %build
  31. %configure --with-documentation --enable-static=no
  32. %{__make} %{?_smp_mflags}
  33. %install
  34. %{__rm} -rf %{buildroot}
  35. %{__make} install DESTDIR="%{buildroot}"
  36. #create the doc devel dir
  37. %{__mkdir_p} %{buildroot}%{docdeveldir}
  38. #mv examples dir and pdf file to the doc devel dir
  39. %{__mv} %{buildroot}%{docdir}/examples \
  40. %{buildroot}%{docdeveldir}/
  41. %{__mv} %{buildroot}%{docdir}/UPnP_Programming_Guide.pdf \
  42. %{buildroot}%{docdeveldir}/
  43. %{__mv} %{buildroot}%{docdir}/IXML_Programming_Guide.pdf \
  44. %{buildroot}%{docdeveldir}/
  45. %{__mv} %{buildroot}%{docdir}/html \
  46. %{buildroot}%{docdeveldir}/
  47. %{__rm} %{buildroot}%{_libdir}/{libixml.la,libthreadutil.la,libupnp.la}
  48. %post -p /sbin/ldconfig
  49. %postun -p /sbin/ldconfig
  50. %clean
  51. %{__rm} -rf ${RPM_BUILD_ROOT}
  52. %files
  53. %defattr(-, root, root, -)
  54. %doc AUTHORS ChangeLog COPYING INSTALL LICENSE NEWS README THANKS TODO
  55. %{_libdir}/libixml.so.*
  56. %{_libdir}/libthreadutil.so.*
  57. %{_libdir}/libupnp.so.*
  58. %files devel
  59. %defattr(-, root, root, 0755)
  60. %doc %{docdeveldir}
  61. %{_includedir}/upnp/
  62. %{_libdir}/libixml.so
  63. %{_libdir}/libthreadutil.so
  64. %{_libdir}/libupnp.so
  65. %{_libdir}/pkgconfig/libupnp.pc
  66. %changelog
  67. * Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.6.13-1
  68. - new upstream release
  69. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.6-2
  70. - rebuild with rpm-4.8.1 for pkg-config file
  71. * Sun Mar 01 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.6-1
  72. - new upstream release
  73. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.5-1vl5
  74. - applied new versioning policy, spec in utf-8
  75. * Tue Feb 14 2008 Masahiro INOUE <miyabi.-.inoue@nifty.com> 1.6.5
  76. - new upstream release
  77. * Tue Jul 31 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.0-0vl1
  78. - new upstream release
  79. * Sat May 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-0vl1
  80. - initial build for Vine Linux
  81. * Wed Feb 21 2007 Dag Wieers <dag@wieers.com> - 1.4.2-1 - +/
  82. - Initial package. (using DAR)