ushare-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Summary: Universal Plug'nPlay (uPNP) Media Server
  2. Summary(ja): ユニバーサルプラグアンドプレイ(uPNP)メディアサーバ
  3. Name: ushare
  4. Version: 1.0
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: Applications/Multimedia
  8. URL: http://ushare.geexbox.org/
  9. Source: http://ushare.geexbox.org/releases/ushare-%{version}.tar.bz2
  10. Source1: ushare.init
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: pkgconfig >= 0.9.0, libupnp-devel
  13. Requires(post): chkconfig
  14. Requires(preun): initscripts, chkconfig
  15. Requires(postun): initscripts
  16. %description
  17. uShare is a UPnP (TM) A/V Media Server. It implements the server
  18. component that provides UPnP media devices with information on
  19. available multimedia files. uShare uses the built-in http server
  20. of libupnp to stream the files to clients.
  21. %prep
  22. %setup
  23. %build
  24. %configure
  25. %{__make} %{?_smp_mflags}
  26. %install
  27. %{__rm} -rf %{buildroot}
  28. %{__make} install DESTDIR="%{buildroot}"
  29. %{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/ushare
  30. %{__install} -d -m0755 %{buildroot}%{_localstatedir}/lib/ushare/
  31. %find_lang %{name}
  32. %{__rm} %{buildroot}%{_sysconfdir}/init.d/ushare
  33. %pre
  34. if ! /usr/bin/id ushare &>/dev/null; then
  35. /usr/sbin/useradd -r -M -d %{_localstatedir}/lib/ushare -s /bin/false -c "ushare service accoung" ushare ||:
  36. fi
  37. %post
  38. /sbin/chkconfig --add ushare
  39. %preun
  40. if [ $1 -eq 0 ]; then
  41. /sbin/service ushare stop &>/dev/null || :
  42. /sbin/chkconfig --del ushare
  43. fi
  44. %postun
  45. if [ $1 -eq 0 ]; then
  46. /usr/sbin/userdel ushare ||:
  47. /usr/sbin/groupdel ushare ||:
  48. fi
  49. if [ $1 -ge 1 ]; then
  50. /sbin/service ushare condrestart &>/dev/null || :
  51. fi
  52. %clean
  53. %{__rm} -rf %{buildroot}
  54. %files -f %{name}.lang
  55. %defattr(-, root, root, 0755)
  56. %doc AUTHORS ChangeLog COPYING NEWS README
  57. %doc %{_mandir}/man1/ushare.1*
  58. %config(noreplace) %{_sysconfdir}/ushare.conf
  59. %attr(755,root,root) %{_sysconfdir}/rc.d/init.d/ushare
  60. %{_bindir}/ushare
  61. %defattr(-, ushare, ushare, 0770)
  62. %{_localstatedir}/lib/ushare/
  63. %changelog
  64. * Mon Oct 13 2008 Shu KONNO <owa@bg.wakwak.com> 1.0-1vl5
  65. - applied new versioning policy, spec in utf-8
  66. * Tue Jul 31 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0vl1
  67. - new upstream release
  68. * Sat May 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.10-0vl1
  69. - initial build for Vine Linux
  70. * Thu Mar 01 2007 Dag Wieers <dag@wieers.com> - 0.9.10-1 - 5190+/dag
  71. - Updated to release 0.9.10.
  72. * Wed Feb 21 2007 Dag Wieers <dag@wieers.com> - 0.9.8-1
  73. - Initial package. (using DAR)