nas-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. Name: nas
  2. Summary: The Network Audio System (NAS)
  3. Version: 1.9.1
  4. Release: 7%{?_dist_release}
  5. URL: http://nas.codebrilliance.com
  6. License: Public Domain
  7. Group: Development/Libraries
  8. Source0: http://nas.codebrilliance.com/nas/nas-%{version}.src.tar.gz
  9. Source1: http://apt.kde-redhat.org/apt/kde-redhat/SOURCES/nas/nasd.init
  10. Source2: http://apt.kde-redhat.org/apt/kde-redhat/SOURCES/nas/nasd.sysconfig
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: bison flex
  13. BuildRequires: imake libXaw-devel libXpm-devel libXp-devel libXext-devel libXt-devel
  14. %define libdir_x11 %{_libdir}/X11
  15. Requires(preun): chkconfig /sbin/service
  16. Requires(post): chkconfig
  17. Requires: %{name}-libs = %{version}-%{release}
  18. %package devel
  19. Summary: Development and doc files for the NAS
  20. Group: Development/Libraries
  21. Requires: %{name}-libs = %{version}-%{release}
  22. %package libs
  23. Summary: Runtime libraries for NAS
  24. Group: System Environment/Libraries
  25. %description libs
  26. %{summary}.
  27. %description
  28. In a nutshell, NAS is the audio equivalent of an X display server.
  29. The Network Audio System (NAS) was developed by NCD for playing,
  30. recording, and manipulating audio data over a network. Like the
  31. X Window System, it uses the client/server model to separate
  32. applications from the specific drivers that control audio input
  33. and output devices.
  34. Key features of the Network Audio System include:
  35. o Device-independent audio over the network
  36. o Lots of audio file and data formats
  37. o Can store sounds in server for rapid replay
  38. o Extensive mixing, separating, and manipulation of audio data
  39. o Simultaneous use of audio devices by multiple applications
  40. o Use by a growing number of ISVs
  41. o Small size
  42. o Free! No obnoxious licensing terms
  43. %description devel
  44. Development files and the documentation
  45. %prep
  46. %setup -q -n nas-%{version}
  47. iconv --from-code=ISO_8859-15 --to-code=UTF-8 HISTORY >HISTORY.tmp
  48. mv HISTORY.tmp HISTORY
  49. %build
  50. xmkmf
  51. find . -name Makefile \
  52. | xargs sed -i -e 's/^\(\s*CDEBUGFLAGS\s*=.*\)/\1 $(RPM_OPT_FLAGS)/'
  53. make %{?_smp_mflags} World MFLAGS="IRULESRC=%{_datadir}/X11/config"
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. make MFLAGS="IRULESRC=%{_datadir}/X11/config" \
  57. DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} INCROOT=%{_includedir} \
  58. LIBDIR=%{libdir_x11} SHLIBDIR=%{_libdir} USRLIBDIR=%{_libdir} MANPATH=%{_mandir} \
  59. INSTALLFLAGS='-p' \
  60. install install.man
  61. install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/nasd
  62. install -p -m644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/nasd
  63. # remove static lib
  64. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  65. # rename cofigfile
  66. mv $RPM_BUILD_ROOT/etc/nas/nasd.conf.eg $RPM_BUILD_ROOT/etc/nas/nasd.conf
  67. %post
  68. /sbin/chkconfig --add nasd
  69. %preun
  70. if [ $1 = 0 ] ; then
  71. /sbin/chkconfig --del nasd
  72. /sbin/service nasd stop >/dev/null 2>&1 ||:
  73. fi
  74. %post libs -p /sbin/ldconfig
  75. %postun libs -p /sbin/ldconfig
  76. %clean
  77. rm -rf $RPM_BUILD_ROOT
  78. %files
  79. %defattr(-,root,root,-)
  80. %dir %{_sysconfdir}/nas
  81. %config(noreplace) %{_sysconfdir}/nas/nasd.conf
  82. %config(noreplace) %{_sysconfdir}/sysconfig/nasd
  83. %{_initrddir}/nasd
  84. %{_bindir}/*
  85. %{_mandir}/man1/*
  86. %{_mandir}/man5/*
  87. %{libdir_x11}/AuErrorDB
  88. %files libs
  89. %defattr(-,root,root,-)
  90. %doc README FAQ HISTORY TODO
  91. %{_libdir}/libaudio.so.*
  92. %files devel
  93. %defattr(-,root,root,-)
  94. %{_includedir}/audio/
  95. %{_libdir}/libaudio.so
  96. %{_mandir}/man3/*
  97. %changelog
  98. * Sun Mar 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.9.1-7
  99. - Initial build for Vine Linux
  100. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-6
  101. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  102. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-5
  103. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  104. * Mon Apr 07 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.9.1-4
  105. - -libs subpkg (f9+, #438547)
  106. - %%install: INSTALLFLAGS='-p' (preserve timestamps)
  107. - fixup %%changelog whitespace
  108. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.9.1-3
  109. - Autorebuild for GCC 4.3
  110. * Sun Nov 11 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9.1-2
  111. - fix spec file
  112. * Sun Nov 11 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9.1-1
  113. - update to 1.9.1
  114. - remove unneeded patches
  115. * Fri Nov 02 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9a-3
  116. - add better patch for #247468
  117. * Fri Nov 02 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9a-2
  118. - add patch to fix #247468
  119. * Sun Oct 28 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9a-1
  120. - update to 1.9a to fix #245712
  121. * Sat Aug 18 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9-4
  122. - fix for bug #245712
  123. * Sat Aug 11 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9-3
  124. - fix for bug #250453
  125. * Fri May 04 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9-2%{?dist}
  126. - rebuild for the new ppc64 arch
  127. * Sun Apr 08 2007 Frank Büttner <frank-buettner@gmx.net> - 1.9-1%{?dist}
  128. - update to 1.9
  129. - remove old patch file
  130. * Mon Mar 26 2007 Frank Büttner <frank-buettner@gmx.net> - 1.8b-1%{?dist}
  131. - update to 1.8b
  132. * Thu Mar 22 2007 Frank Büttner <frank-buettner@gmx.net> - 1.8a-2%{?dist}
  133. - use the SVN version of 1.8a
  134. * Wed Mar 21 2007 Frank Büttner <frank-buettner@gmx.net> - 1.8a-1%{?dist}
  135. - fix bug 233353
  136. * Thu Feb 09 2007 Frank Büttner <frank-buettner@gmx.net> - 1.8-13%{?dist}
  137. - use the corrected patch
  138. * Thu Feb 08 2007 Frank Büttner <frank-buettner@gmx.net> - 1.8-11%{?dist}
  139. - fix bug 227759
  140. * Tue Sep 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> - 1.8-10
  141. - don't rely-on/use potentially broken %%_libdir/X11 symlink (#207180)
  142. * Mon Sep 11 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-9%{?dist}
  143. - second rebuild for FC6
  144. * Mon Jul 24 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-8%{?dist}
  145. - fix ugly output when starting the daemon
  146. * Fri Jul 21 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-7%{?dist}
  147. - disable build for EMT64 on FC4
  148. * Thu Jul 13 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-6%{?dist}
  149. - fix build on EMT64
  150. * Wed Jul 12 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-5%{?dist}
  151. - fix include dir
  152. * Fri Jul 7 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-4%{?dist}
  153. - add Requires(preun): chkconfig /sbin/service
  154. - add Requires(post): chkconfig
  155. - add remarks for FC4
  156. * Fri Jul 7 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-3%{?dist}
  157. - move man3 to devel
  158. - rename nasd.conf.eg to .conf
  159. - add build depend for libXext-devel libXt-devel
  160. - change license to Public Domain
  161. - add path to make intall
  162. - add rc.d/sysconfig files
  163. * Fri Jul 7 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-2%{?dist}
  164. - move libaudio.so.2 to main package
  165. - switch package name from NAS to nas
  166. - fix depend for devel package
  167. - fix version
  168. - add nas subdir in etc to main package
  169. - set license to Distributable
  170. - add readme file
  171. * Fri Jul 7 2006 Frank Büttner <frank-buettner@gmx.net> - 1.8-1%{?dist}
  172. - start