freeswitch-release.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Name: freeswitch-release
  2. Version: 1
  3. Release: 6
  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. * Tue Sep 08 2015 Ken Rice <krice at freeswitch.org> - 5-0
  41. - Create New version for the 1.6 repository
  42. * Fri Jan 27 2012 Ken Rice <krice at freeswitch.org> - 5-0
  43. - Replace GPG key with correct key, and update primary URLs
  44. * Wed Dec 21 2011 Ken Rice <krice at freeswitch.org> - 5-0
  45. - Initial Version - Thanks to the EPEL Guys I had something to Rip Off. Hense this package is GPL