freeswitch-release.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Name: freeswitch-release
  2. Version: 1
  3. Release: 0
  4. Summary: FreeSWITCH Packages for Enterprise Linux repository configuration
  5. Group: System Environment/Base
  6. License: GPL
  7. URL: http://www.freeswitch.org
  8. Source0: http://files.freeswitch.org/yum/RPM-GPG-KEY-FREESWITCH
  9. Source1: GPL
  10. Source2: freeswitch.repo
  11. Source3: freeswitch-testing.repo
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13. BuildArch: noarch
  14. Requires: redhat-release >= %{version}
  15. %description
  16. This package contains the FreeSWITCH Yum repository
  17. GPG key as well as configuration for yum.
  18. %prep
  19. %setup -q -c -T
  20. install -pm 644 %{SOURCE0} .
  21. install -pm 644 %{SOURCE1} .
  22. %build
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. #GPG Key
  26. install -Dpm 644 %{SOURCE0} \
  27. $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH
  28. # yum
  29. install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
  30. install -pm 644 %{SOURCE2} %{SOURCE3} \
  31. $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %files
  35. %defattr(-,root,root,-)
  36. %doc GPL
  37. %config(noreplace) /etc/yum.repos.d/*
  38. /etc/pki/rpm-gpg/*
  39. %changelog
  40. * Fri Jan 27 2012 Ken Rice <krice at freeswitch.org> - 5-0
  41. - Replace GPG key with correct key, and update primary URLs
  42. * Wed Dec 21 2011 Ken Rice <krice at freeswitch.org> - 5-0
  43. - Initial Version - Thanks to the EPEL Guys I had something to Rip Off. Hense this package is GPL