Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkuchiki/10438712 to your computer and use it in GitHub Desktop.
Save tkuchiki/10438712 to your computer and use it in GitHub Desktop.
varnish-release 4.0 rpm
Name: varnish-release
Version: 4.0
Release: 1%{?dist}
Summary: Varnish 4.0 package repository configuration
Group: System Environment/Base
License: BSD
URL: http://www.varnish-software.com/installation/redhat
Source0: varnish.repo
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%description
This package contains the varnish-cache.org repository
GPG key as well as configuration for yum.
%prep
%setup -q -c -T
install -pm 644 %{SOURCE0} .
%build
%install
rm -rf $RPM_BUILD_ROOT
# yum
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
sed 's/@@DIST@@/el%{rhel}/' %{SOURCE0} \
> $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d/$(basename "%{SOURCE0}")
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
#%doc GPL
%config(noreplace) /etc/yum.repos.d/*
#/etc/pki/rpm-gpg/*
%changelog
* Fri Apr 11 2014 KUCHIKI Taku <kuchiki.taku@gmail.com> 4.0-1
- 4.0 release
* Thu Jun 16 2011 Tollef Fog Heen <tfheen@varnish-software.com> 3.0-1
- 3.0 release
* Tue Sep 08 2010 Tollef Fog Heen <tfheen@varnish-software.com> 2.1-2
- Disable signatures as they seem to break RPM.
* Tue Sep 08 2010 Tollef Fog Heen <tfheen@varnish-software.com> 2.1-1
- Initial package
[varnish-4.0]
name=Varnish 4.0 for Enterprise Linux @@DIST@@ - $basearch
baseurl=http://repo.varnish-cache.org/redhat/varnish-4.0/@@DIST@@/$basearch
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment