2
0

freeswitch-sounds-sv-se-jakob.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. ##############################################################################
  2. # Copyright and license
  3. ##############################################################################
  4. #
  5. # Spec file for package freeswitch-sounds-sv-se-jakob (version 1.0.18-1)
  6. #
  7. # Copyright (c) 2009 Patrick Laimbock
  8. # Copied and modified for mod_say_sv (c) 2013 Jakob Sundberg
  9. # Additional changes (c) 2014 Ken Rice
  10. # This file and all modifications and additions to the pristine
  11. # package are under the same license as the package itself.
  12. #
  13. ##############################################################################
  14. # Set variables
  15. ##############################################################################
  16. %define version 1.0.50
  17. %define release 1
  18. %define fsname freeswitch
  19. # you could add a version number to be more strict
  20. %define PREFIX %{_prefix}
  21. %define EXECPREFIX %{_exec_prefix}
  22. %define BINDIR %{_bindir}
  23. %define SBINDIR %{_sbindir}
  24. %define LIBEXECDIR %{_libexecdir}/%{fsname}
  25. %define SYSCONFDIR %{_sysconfdir}/%{fsname}
  26. %define SHARESTATEDIR %{_sharedstatedir}/%{fsname}
  27. %define LOCALSTATEDIR %{_localstatedir}/lib/%{fsname}
  28. %define LIBDIR %{_libdir}
  29. %define INCLUDEDIR %{_includedir}
  30. %define _datarootdir %{_prefix}/share
  31. %define DATAROOTDIR %{_datarootdir}
  32. %define DATADIR %{_datadir}
  33. %define INFODIR %{_infodir}
  34. %define LOCALEDIR %{_datarootdir}/locale
  35. %define MANDIR %{_mandir}
  36. %define DOCDIR %{_defaultdocdir}/%{fsname}
  37. %define HTMLDIR %{_defaultdocdir}/%{fsname}/html
  38. %define DVIDIR %{_defaultdocdir}/%{fsname}/dvi
  39. %define PDFDIR %{_defaultdocdir}/%{fsname}/pdf
  40. %define PSDIR %{_defaultdocdir}/%{fsname}/ps
  41. %define LOGFILEDIR /var/log/%{fsname}
  42. %define MODINSTDIR %{_libdir}/%{fsname}/mod
  43. %define RUNDIR %{_localstatedir}/run/%{fsname}
  44. %define DBDIR %{LOCALSTATEDIR}/db
  45. %define HTDOCSDIR %{_datarootdir}/%{fsname}/htdocs
  46. %define SOUNDSDIR %{_datarootdir}/%{fsname}/sounds
  47. %define GRAMMARDIR %{_datarootdir}/%{fsname}/grammar
  48. %define SCRIPTDIR %{_datarootdir}/%{fsname}/scripts
  49. %define RECORDINGSDIR %{LOCALSTATEDIR}/recordings
  50. %define PKGCONFIGDIR %{_datarootdir}/%{fsname}/pkgconfig
  51. %define HOMEDIR %{LOCALSTATEDIR}
  52. ##############################################################################
  53. # General
  54. ##############################################################################
  55. Summary: FreeSWITCH sv-se Jakob prompts
  56. Name: freeswitch-sounds-sv-se-jakob
  57. Version: %{version}
  58. Release: %{release}%{?dist}
  59. License: MPL
  60. Group: Applications/Communications
  61. Packager: Ken Rice <krice@freeswitch.org>
  62. URL: http://www.freeswitch.org
  63. Source0:http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
  64. Source1:http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
  65. Source2:http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
  66. Source3:http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
  67. BuildArch: noarch
  68. BuildRequires: sox
  69. Requires: freeswitch
  70. Requires: freeswitch-sounds-sv-se-jakob-48000
  71. Requires: sox
  72. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  73. %description
  74. FreeSWITCH 48kHz sv-se jakob prompts plus, during the installation,
  75. it will also install locally generated 8KHz, 16KHz and 32KHz prompts
  76. %package -n freeswitch-sounds-sv-se-jakob-8000
  77. Summary: FreeSWITCH 8kHz sv-se jakob prompts
  78. Group: Applications/Communications
  79. BuildArch: noarch
  80. Requires: %{fsname}
  81. %description -n freeswitch-sounds-sv-se-jakob-8000
  82. FreeSWITCH 8kHz sv-se jakob prompts
  83. %package -n freeswitch-sounds-sv-se-jakob-16000
  84. Summary: FreeSWITCH 16kHz sv-se jakob prompts
  85. Group: Applications/Communications
  86. BuildArch: noarch
  87. Requires: %{fsname}
  88. %description -n freeswitch-sounds-sv-se-jakob-16000
  89. FreeSWITCH 16kHz sv-se jakob prompts
  90. %package -n freeswitch-sounds-sv-se-jakob-32000
  91. Summary: FreeSWITCH 32kHz sv-se jakob prompts
  92. Group: Applications/Communications
  93. BuildArch: noarch
  94. Requires: %{fsname}
  95. %description -n freeswitch-sounds-sv-se-jakob-32000
  96. FreeSWITCH 32kHz sv-se jakob prompts
  97. %package -n freeswitch-sounds-sv-se-jakob-48000
  98. Summary: FreeSWITCH 48kHz sv-se jakob prompts
  99. Group: Applications/Communications
  100. BuildArch: noarch
  101. Requires: %{fsname}
  102. %description -n freeswitch-sounds-sv-se-jakob-48000
  103. FreeSWITCH 48kHz sv-se jakob prompts
  104. %package -n freeswitch-sounds-sv-se-jakob-all
  105. Summary: FreeSWITCH sv-se jakob prompts
  106. Group: Applications/Communications
  107. BuildArch: noarch
  108. Requires: %{fsname}
  109. Requires: freeswitch-sounds-sv-se-jakob-8000 = %{version}
  110. Requires: freeswitch-sounds-sv-se-jakob-16000 = %{version}
  111. Requires: freeswitch-sounds-sv-se-jakob-32000 = %{version}
  112. Requires: freeswitch-sounds-sv-se-jakob-48000 = %{version}
  113. %description -n freeswitch-sounds-sv-se-jakob-all
  114. FreeSWITCH jakob prompts package that pulls in the 8KHz, 16KHz,
  115. 32KHz and 48KHz RPMs
  116. ##############################################################################
  117. # Prep
  118. ##############################################################################
  119. %prep
  120. %setup -n sv
  121. %setup -T -D -b 0 -n sv
  122. %setup -T -D -b 1 -n sv
  123. %setup -T -D -b 2 -n sv
  124. %setup -T -D -b 3 -n sv
  125. ##############################################################################
  126. # Build
  127. ##############################################################################
  128. %build
  129. # nothing to do here
  130. ##############################################################################
  131. # Install
  132. ##############################################################################
  133. %install
  134. [ "%{buildroot}" != '/' ] && rm -rf %{buildroot}
  135. # create the sounds directories
  136. %{__install} -d -m 0750 %{buildroot}%{SOUNDSDIR}/sv/se/jakob
  137. pushd se/jakob
  138. # first install the 48KHz sounds
  139. %{__cp} -prv ./* %{buildroot}%{SOUNDSDIR}/sv/se/jakob
  140. popd
  141. ##############################################################################
  142. # Clean
  143. ##############################################################################
  144. %clean
  145. [ "%{buildroot}" != '/' ] && rm -rf %{buildroot}
  146. ##############################################################################
  147. # Post
  148. ##############################################################################
  149. %post
  150. ##############################################################################
  151. # Postun
  152. ##############################################################################
  153. %postun
  154. # you could check if there are sound files in 8000/ or
  155. # 16000/ or 32000/ and remove them *only* if the files
  156. # do not belong to an rpm
  157. ##############################################################################
  158. # Files
  159. ##############################################################################
  160. %files
  161. %defattr(-,root,root)
  162. %files -n freeswitch-sounds-sv-se-jakob-8000
  163. %defattr(-,root,root,-)
  164. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/ascii/8000
  165. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/base256/8000
  166. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/conference/8000
  167. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/currency/8000
  168. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/digits/8000
  169. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/directory/8000
  170. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/ivr/8000
  171. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/misc/8000
  172. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/phonetic-ascii/8000
  173. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/time/8000
  174. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/voicemail/8000
  175. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/zrtp/8000
  176. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/ascii/8000/*.wav
  177. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/base256/8000/*.wav
  178. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/conference/8000/*.wav
  179. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/currency/8000/*.wav
  180. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/digits/8000/*.wav
  181. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/directory/8000/*.wav
  182. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/ivr/8000/*.wav
  183. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/misc/8000/*.wav
  184. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/phonetic-ascii/8000/*.wav
  185. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/time/8000/*.wav
  186. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/voicemail/8000/*.wav
  187. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/zrtp/8000/*.wav
  188. %files -n freeswitch-sounds-sv-se-jakob-16000
  189. %defattr(-,root,root,-)
  190. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/ascii/16000
  191. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/base256/16000
  192. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/conference/16000
  193. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/currency/16000
  194. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/digits/16000
  195. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/directory/16000
  196. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/ivr/16000
  197. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/misc/16000
  198. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/phonetic-ascii/16000
  199. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/time/16000
  200. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/voicemail/16000
  201. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/zrtp/16000
  202. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/ascii/16000/*.wav
  203. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/base256/16000/*.wav
  204. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/conference/16000/*.wav
  205. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/currency/16000/*.wav
  206. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/digits/16000/*.wav
  207. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/directory/16000/*.wav
  208. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/ivr/16000/*.wav
  209. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/misc/16000/*.wav
  210. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/phonetic-ascii/16000/*.wav
  211. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/time/16000/*.wav
  212. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/voicemail/16000/*.wav
  213. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/zrtp/16000/*.wav
  214. %files -n freeswitch-sounds-sv-se-jakob-32000
  215. %defattr(-,root,root,-)
  216. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/ascii/32000
  217. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/base256/32000
  218. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/conference/32000
  219. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/currency/32000
  220. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/digits/32000
  221. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/directory/32000
  222. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/ivr/32000
  223. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/misc/32000
  224. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/phonetic-ascii/32000
  225. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/time/32000
  226. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/voicemail/32000
  227. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/zrtp/32000
  228. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/ascii/32000/*.wav
  229. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/base256/32000/*.wav
  230. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/conference/32000/*.wav
  231. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/currency/32000/*.wav
  232. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/digits/32000/*.wav
  233. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/directory/32000/*.wav
  234. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/ivr/32000/*.wav
  235. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/misc/32000/*.wav
  236. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/phonetic-ascii/32000/*.wav
  237. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/time/32000/*.wav
  238. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/voicemail/32000/*.wav
  239. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/zrtp/32000/*.wav
  240. %files -n freeswitch-sounds-sv-se-jakob-48000
  241. %defattr(-,root,root,-)
  242. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/ascii/48000
  243. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/base256/48000
  244. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/conference/48000
  245. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/currency/48000
  246. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/digits/48000
  247. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/directory/48000
  248. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/ivr/48000
  249. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/misc/48000
  250. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/phonetic-ascii/48000
  251. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/time/48000
  252. %attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/voicemail/48000
  253. #%attr(0750,freeswitch,daemon) %dir %{SOUNDSDIR}/sv/se/jakob/zrtp/48000
  254. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/ascii/48000/*.wav
  255. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/base256/48000/*.wav
  256. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/conference/48000/*.wav
  257. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/currency/48000/*.wav
  258. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/digits/48000/*.wav
  259. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/directory/48000/*.wav
  260. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/ivr/48000/*.wav
  261. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/misc/48000/*.wav
  262. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/phonetic-ascii/48000/*.wav
  263. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/time/48000/*.wav
  264. %attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/voicemail/48000/*.wav
  265. #%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/zrtp/48000/*.wav
  266. %files -n freeswitch-sounds-sv-se-jakob-all
  267. ##############################################################################
  268. # Changelog
  269. ##############################################################################
  270. %changelog
  271. * Mon Sep 15 2014 Ken Rice <krice@freeswitch.org> - 1.0.50-1
  272. - new spec file for jakob