mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-04 19:31:56 +00:00
centos: rework CentOS spec files
* break out modules * conform to FHS * support CentOS v5
This commit is contained in:
@@ -1,11 +1,41 @@
|
||||
%define prefix /opt/freeswitch
|
||||
%define _prefix %{prefix}
|
||||
%define PREFIX %{_prefix}
|
||||
%define EXECPREFIX %{_exec_prefix}
|
||||
%define BINDIR %{_bindir}
|
||||
%define SBINDIR %{_sbindir}
|
||||
%define LIBEXECDIR %{_libexecdir}/%{fsname}
|
||||
%define SYSCONFDIR %{_sysconfdir}/%{fsname}
|
||||
%define SHARESTATEDIR %{_sharedstatedir}/%{fsname}
|
||||
%define LOCALSTATEDIR %{_localstatedir}/lib/%{fsname}
|
||||
%define LIBDIR %{_libdir}
|
||||
%define INCLUDEDIR %{_includedir}
|
||||
%define _datarootdir %{_prefix}/share
|
||||
%define DATAROOTDIR %{_datarootdir}
|
||||
%define DATADIR %{_datadir}
|
||||
%define INFODIR %{_infodir}
|
||||
%define LOCALEDIR %{_datarootdir}/locale
|
||||
%define MANDIR %{_mandir}
|
||||
%define DOCDIR %{_defaultdocdir}/%{fsname}
|
||||
%define HTMLDIR %{_defaultdocdir}/%{fsname}/html
|
||||
%define DVIDIR %{_defaultdocdir}/%{fsname}/dvi
|
||||
%define PDFDIR %{_defaultdocdir}/%{fsname}/pdf
|
||||
%define PSDIR %{_defaultdocdir}/%{fsname}/ps
|
||||
%define LOGFILEDIR /var/log/%{fsname}
|
||||
%define MODINSTDIR %{_libdir}/%{fsname}/mod
|
||||
%define RUNDIR %{_localstatedir}/run/%{fsname}
|
||||
%define DBDIR %{LOCALSTATEDIR}/db
|
||||
%define HTDOCSDIR %{_datarootdir}/%{fsname}/htdocs
|
||||
%define SOUNDSDIR %{_datarootdir}/%{fsname}/sounds
|
||||
%define GRAMMARDIR %{_datarootdir}/%{fsname}/grammar
|
||||
%define SCRIPTDIR %{_datarootdir}/%{fsname}/scripts
|
||||
%define RECORDINGSDIR %{LOCALSTATEDIR}/recordings
|
||||
%define PKGCONFIGDIR %{_datarootdir}/%{fsname}/pkgconfig
|
||||
%define HOMEDIR %{LOCALSTATEDIR}
|
||||
|
||||
|
||||
Summary: FreeSWITCH Music on Hold soundfiles
|
||||
Name: freeswitch-sounds-music
|
||||
Version: 1.0.8
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: MPL
|
||||
Group: Productivity/Telephony/Servers
|
||||
Packager: Joseph L. Casale <jcasale@activenetwerx.com>
|
||||
@@ -80,8 +110,8 @@ FreeSWITCH 48kHz Music On Hold soundfiles
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__install} -d -m 0750 %{buildroot}/%{_prefix}/sounds/music/{8000,16000,32000,48000}
|
||||
%{__cp} -prv ./{8000,16000,32000,48000} %{buildroot}%{_prefix}/sounds/music
|
||||
%{__install} -d -m 0750 %{buildroot}/%{SOUNDSDIR}/music/{8000,16000,32000,48000}
|
||||
%{__cp} -prv ./{8000,16000,32000,48000} %{buildroot}%{SOUNDSDIR}/music
|
||||
|
||||
|
||||
%clean
|
||||
@@ -99,28 +129,30 @@ FreeSWITCH 48kHz Music On Hold soundfiles
|
||||
|
||||
%files -n freeswitch-sounds-music-8000
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/sounds/music/8000
|
||||
%{_prefix}/sounds/music/8000/*.wav
|
||||
%dir %{SOUNDSDIR}/music/8000
|
||||
%{SOUNDSDIR}/music/8000/*.wav
|
||||
|
||||
|
||||
%files -n freeswitch-sounds-music-16000
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/sounds/music/16000
|
||||
%{_prefix}/sounds/music/16000/*.wav
|
||||
%dir %{SOUNDSDIR}/music/16000
|
||||
%{SOUNDSDIR}/music/16000/*.wav
|
||||
|
||||
|
||||
%files -n freeswitch-sounds-music-32000
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/sounds/music/32000
|
||||
%{_prefix}/sounds/music/32000/*.wav
|
||||
%dir %{SOUNDSDIR}/music/32000
|
||||
%{SOUNDSDIR}/music/32000/*.wav
|
||||
|
||||
|
||||
%files -n freeswitch-sounds-music-48000
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/sounds/music/48000
|
||||
%{_prefix}/sounds/music/48000/*.wav
|
||||
%dir %{SOUNDSDIR}/music/48000
|
||||
%{SOUNDSDIR}/music/48000/*.wav
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Jul 16 2011 Joseph Casale <jcasale@activenetwerx.com> 1.0.8-2
|
||||
- Fix up for FreeSWITCH FHS and AutoBuild System
|
||||
* Sat Jul 16 2011 Joseph Casale <jcasale@activenetwerx.com> 1.0.8-1
|
||||
- Initial release
|
||||
- Initial release
|
||||
|
||||
Reference in New Issue
Block a user