2
0

freeswitch-sounds-music.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. %define fsname freeswitch
  2. %define PREFIX %{_prefix}
  3. %define EXECPREFIX %{_exec_prefix}
  4. %define BINDIR %{_bindir}
  5. %define SBINDIR %{_sbindir}
  6. %define LIBEXECDIR %{_libexecdir}/%{fsname}
  7. %define SYSCONFDIR %{_sysconfdir}/%{fsname}
  8. %define SHARESTATEDIR %{_sharedstatedir}/%{fsname}
  9. %define LOCALSTATEDIR %{_localstatedir}/lib/%{fsname}
  10. %define LIBDIR %{_libdir}
  11. %define INCLUDEDIR %{_includedir}
  12. %define _datarootdir %{_prefix}/share
  13. %define DATAROOTDIR %{_datarootdir}
  14. %define DATADIR %{_datadir}
  15. %define INFODIR %{_infodir}
  16. %define LOCALEDIR %{_datarootdir}/locale
  17. %define MANDIR %{_mandir}
  18. %define DOCDIR %{_defaultdocdir}/%{fsname}
  19. %define HTMLDIR %{_defaultdocdir}/%{fsname}/html
  20. %define DVIDIR %{_defaultdocdir}/%{fsname}/dvi
  21. %define PDFDIR %{_defaultdocdir}/%{fsname}/pdf
  22. %define PSDIR %{_defaultdocdir}/%{fsname}/ps
  23. %define LOGFILEDIR /var/log/%{fsname}
  24. %define MODINSTDIR %{_libdir}/%{fsname}/mod
  25. %define RUNDIR %{_localstatedir}/run/%{fsname}
  26. %define DBDIR %{LOCALSTATEDIR}/db
  27. %define HTDOCSDIR %{_datarootdir}/%{fsname}/htdocs
  28. %define SOUNDSDIR %{_datarootdir}/%{fsname}/sounds
  29. %define GRAMMARDIR %{_datarootdir}/%{fsname}/grammar
  30. %define SCRIPTDIR %{_datarootdir}/%{fsname}/scripts
  31. %define RECORDINGSDIR %{LOCALSTATEDIR}/recordings
  32. %define PKGCONFIGDIR %{_datarootdir}/%{fsname}/pkgconfig
  33. %define HOMEDIR %{LOCALSTATEDIR}
  34. Summary: FreeSWITCH Music on Hold soundfiles
  35. Name: freeswitch-sounds-music
  36. Version: 1.0.50
  37. Release: 2%{?dist}
  38. License: MPL
  39. Group: Productivity/Telephony/Servers
  40. Packager: Joseph L. Casale <jcasale@activenetwerx.com>
  41. URL: http://www.freeswitch.org
  42. Source0: http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
  43. Source1: http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
  44. Source2: http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
  45. Source3: http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
  46. BuildArch: noarch
  47. BuildRequires: bash
  48. Requires: freeswitch
  49. Requires: freeswitch-sounds-music-8000 = %{version}
  50. Requires: freeswitch-sounds-music-16000 = %{version}
  51. Requires: freeswitch-sounds-music-32000 = %{version}
  52. Requires: freeswitch-sounds-music-48000 = %{version}
  53. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  54. %description
  55. FreeSWITCH Music On Hold soundfiles package that installs the 8KHz, 16KHz,
  56. 32KHz and 48KHz RPMs
  57. %package -n freeswitch-sounds-music-8000
  58. Summary: FreeSWITCH 8kHz Music On Hold soundfiles
  59. Group: Productivity/Telephony/Servers
  60. BuildArch: noarch
  61. Requires: freeswitch
  62. %description -n freeswitch-sounds-music-8000
  63. FreeSWITCH 8kHz Music On Hold soundfiles
  64. %package -n freeswitch-sounds-music-16000
  65. Summary: FreeSWITCH 16kHz Music On Hold soundfiles
  66. Group: Productivity/Telephony/Servers
  67. BuildArch: noarch
  68. Requires: freeswitch
  69. %description -n freeswitch-sounds-music-16000
  70. FreeSWITCH 16kHz Music On Hold soundfiles
  71. %package -n freeswitch-sounds-music-32000
  72. Summary: FreeSWITCH 32kHz Music On Hold soundfiles
  73. Group: Productivity/Telephony/Servers
  74. BuildArch: noarch
  75. Requires: freeswitch
  76. %description -n freeswitch-sounds-music-32000
  77. FreeSWITCH 32kHz Music On Hold soundfiles
  78. %package -n freeswitch-sounds-music-48000
  79. Summary: FreeSWITCH 48kHz Music On Hold soundfiles
  80. Group: Productivity/Telephony/Servers
  81. BuildArch: noarch
  82. Requires: freeswitch
  83. %description -n freeswitch-sounds-music-48000
  84. FreeSWITCH 48kHz Music On Hold soundfiles
  85. %prep
  86. %setup -n music
  87. %setup -T -D -b 1 -n music
  88. %setup -T -D -b 2 -n music
  89. %setup -T -D -b 3 -n music
  90. %build
  91. %install
  92. %{__rm} -rf %{buildroot}
  93. %{__install} -d -m 0750 %{buildroot}/%{SOUNDSDIR}/music/{8000,16000,32000,48000}
  94. %{__cp} -prv ./{8000,16000,32000,48000} %{buildroot}%{SOUNDSDIR}/music
  95. %clean
  96. %{__rm} -rf %{buildroot}
  97. %post
  98. %postun
  99. %files
  100. %files -n freeswitch-sounds-music-8000
  101. %defattr(-,root,root,-)
  102. %dir %{SOUNDSDIR}/music/8000
  103. %{SOUNDSDIR}/music/8000/*.wav
  104. %files -n freeswitch-sounds-music-16000
  105. %defattr(-,root,root,-)
  106. %dir %{SOUNDSDIR}/music/16000
  107. %{SOUNDSDIR}/music/16000/*.wav
  108. %files -n freeswitch-sounds-music-32000
  109. %defattr(-,root,root,-)
  110. %dir %{SOUNDSDIR}/music/32000
  111. %{SOUNDSDIR}/music/32000/*.wav
  112. %files -n freeswitch-sounds-music-48000
  113. %defattr(-,root,root,-)
  114. %dir %{SOUNDSDIR}/music/48000
  115. %{SOUNDSDIR}/music/48000/*.wav
  116. %changelog
  117. * Sat Jul 16 2011 Joseph Casale <jcasale@activenetwerx.com> 1.0.8-2
  118. - Fix up for FreeSWITCH FHS and AutoBuild System
  119. * Sat Jul 16 2011 Joseph Casale <jcasale@activenetwerx.com> 1.0.8-1
  120. - Initial release