-
Notifications
You must be signed in to change notification settings - Fork 15
/
yum-plugin-cob.spec
51 lines (39 loc) · 1.55 KB
/
yum-plugin-cob.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
%define pluginhome /usr/lib/yum-plugins
%global provider github
%global provider_tld com
%global project henrysher
%global repo cob
# https://github.com/henrysher/cob
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%global commit 1e5e1f25d843a9ae676abdd015fcf3459cefe869
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: yum-plugin-cob
Version: 0.3.1
Release: 0.1.git%{shortcommit}%{?dist}
Summary: Yet Another Yum S3 Plugin (AWS SigV4)
License: ASL 2.0
URL: https://%{provider_prefix}
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
BuildArch: noarch
Requires: yum
# handle license on el{6,7}: global must be defined after the License field above
%{!?_licensedir: %global license %doc}
%description
Cob, yet another yum S3 plugin, provides the way to accessing yum repository hosted on AWS S3.
%prep
%setup -q -n %{repo}-%{commit}
%build
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT/%pluginhome
install -m 644 %{repo}.conf $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/
install -m 644 %{repo}.py $RPM_BUILD_ROOT/%pluginhome
%files
%doc %{repo}.repo README.md
%license LICENSE
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/%{repo}.conf
%pluginhome/%{repo}.py*
%changelog
* Wed Oct 25 2017 Marcin Dulak <Marcin.Dulak@gmail.com> 0.3.1-0.1.git1e5e1f2
- Initial fedora package