forked from jbraeuer/yum-s3-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
spec
42 lines (32 loc) · 873 Bytes
/
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
Name: yum-s3
Version: 0.1.8
Release: 1
Summary: Amazon S3 plugin for yum.
Group: unknown
License: Apache License 2.0
URL: git@github.com:NumberFour/yum-s3-plugin.git
Source0: s3.py
Source1: s3.conf
Source2: s3test.repo
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%description
%prep
cp -p %SOURCE0 %SOURCE1 %SOURCE2 .
find .
%install
rm -rf "${RPM_BUILD_ROOT}"
mkdir -p ${RPM_BUILD_ROOT}/etc/yum.repos.d/
cp s3test.repo ${RPM_BUILD_ROOT}/etc/yum.repos.d/
mkdir -p ${RPM_BUILD_ROOT}/etc/yum/pluginconf.d/
cp s3.conf ${RPM_BUILD_ROOT}/etc/yum/pluginconf.d/
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/yum-plugins/
cp s3.py ${RPM_BUILD_ROOT}/usr/lib/yum-plugins/
%clean
rm -rf "${RPM_BUILD_ROOT}"
%files
%defattr(-,root,root,-)
/etc/yum.repos.d/s3test.repo
/etc/yum/pluginconf.d/s3.conf
/usr/lib/yum-plugins
%changelog