forked from rmela/yum-s3-plugin
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathspec
39 lines (29 loc) · 742 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
Name: yum-s3
Version: 0.2.4
Release: 1
Summary: Amazon S3 plugin for yum.
Group: unknown
License: Apache License 2.0
URL: [email protected]:NumberFour/yum-s3-plugin.git
Source0: s3.py
Source1: s3.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: python-boto
%description
%prep
cp -p %SOURCE0 %SOURCE1 .
find .
%install
rm -rf "${RPM_BUILD_ROOT}"
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/pluginconf.d/s3.conf
/usr/lib/yum-plugins
%changelog