-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvarnish-release.spec
60 lines (44 loc) · 1.62 KB
/
varnish-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
Name: varnish-release
Version: 4.1
Release: 1%{?dist}
Summary: Varnish Cache %{version} package repository configuration.
Group: System Environment/Base
License: BSD
URL: https://www.varnish-software.com/installation/redhat
Source0: varnish-4.1.repo
Source1: RPM-GPG-KEY-VARNISH
Source2: RPM-GPG-KEY-VARNISH-SOFTWARE
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%description
This package contains the repo.varnish-cache.org repository
GPG key as well as configuration for yum.
%prep
%setup -q -c -T
%build
%install
rm -rf $RPM_BUILD_ROOT
# yum
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
install -Dpm 644 %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d/$(basename "%{SOURCE0}")
install -Dpm 644 %{SOURCE1} \
$RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-VARNISH
install -Dpm 644 %{SOURCE2} \
$RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-VARNISH-SOFTWARE
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%config(noreplace) /etc/yum.repos.d/*
/etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH*
%changelog
* Wed Jun 18 2014 Lasse Karstensen <[email protected]> 4.0-2
- Install GPG keys.
* Fri May 09 2014 Lasse Karstensen <[email protected]> 4.0-1
- 4.0 release.
* Thu Jun 16 2011 Tollef Fog Heen <[email protected]> 3.0-1
- 3.0 release
* Tue Sep 08 2010 Tollef Fog Heen <[email protected]> 2.1-2
- Disable signatures as they seem to break RPM.
* Tue Sep 08 2010 Tollef Fog Heen <[email protected]> 2.1-1
- Initial package