libupnp-vl.spec 3.1 KB

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