-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepel-release.spec
91 lines (67 loc) · 2.5 KB
/
epel-release.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Name: epel-release
Version: 6
Release: 2
Summary: Extra Packages for Enterprise Linux repository configuration
Group: System Environment/Base
License: GPLv2
# This is a Red Hat maintained package which is specific to
# our distribution. Thus the source is only available from
# within this srpm.
URL: http://download.fedora.redhat.com/pub/epel
Source0: http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL
Source1: GPL
Source2: epel.repo
Source3: epel-testing.repo
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: redhat-release >= %{version}
%description
This package contains the Extra Packages for Enterprise Linux (EPEL) repository
GPG key as well as configuration for yum and up2date.
%prep
%setup -q -c -T
install -pm 644 %{SOURCE0} .
install -pm 644 %{SOURCE1} .
%build
%install
rm -rf $RPM_BUILD_ROOT
#GPG Key
install -Dpm 644 %{SOURCE0} \
$RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-EPEL
# yum
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
install -pm 644 %{SOURCE2} %{SOURCE3} \
$RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
%clean
rm -rf $RPM_BUILD_ROOT
%post
echo "# epel repo -- added by epel-release " \
>> %{_sysconfdir}/sysconfig/rhn/sources
echo "yum epel http://download.fedora.redhat.com/pub/epel/%{version}/\$ARCH" \
>> %{_sysconfdir}/sysconfig/rhn/sources
%postun
sed -i '/^yum\ epel/d' %{_sysconfdir}/sysconfig/rhn/sources
sed -i '/^\#\ epel\ repo\ /d' %{_sysconfdir}/sysconfig/rhn/sources
%files
%defattr(-,root,root,-)
%doc GPL
%config(noreplace) /etc/yum.repos.d/*
/etc/pki/rpm-gpg/*
%changelog
* Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Jul 17 2008 Tom "spot" Callaway <[email protected]> - 6.1
- fix license tag
* Sun Mar 25 2007 Michael Stahnke <[email protected]> - 6-0
- Bumped in devel to RHEL 6. (We can dream).
* Sun Mar 25 2007 Michael Stahnke <[email protected]> - 4-4
- Changed description again
* Sun Mar 25 2007 Michael Stahnke <[email protected]> - 4-3
- Removed cp in postun
- Removed the file epel-release - provides no value
- Removed dist tag as per review bug #233236
- Changed description
* Mon Mar 14 2007 Michael Stahnke <[email protected]> - 4-2
- Fixed up2date issues.
* Mon Mar 12 2007 Michael Stahnke <[email protected]> - 4-1
- Initial Package