Skip to content

Commit 1c0560b

Browse files
committed
added Fedora/EPEL RPM spec file
1 parent 1e5e1f2 commit 1c0560b

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

yum-plugin-cob.spec

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
%define pluginhome /usr/lib/yum-plugins
2+
3+
%global provider github
4+
%global provider_tld com
5+
%global project henrysher
6+
%global repo cob
7+
# https://github.com/henrysher/cob
8+
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
9+
%global import_path %{provider_prefix}
10+
%global commit 1e5e1f25d843a9ae676abdd015fcf3459cefe869
11+
%global shortcommit %(c=%{commit}; echo ${c:0:7})
12+
13+
Name: yum-plugin-cob
14+
Version: 0.3.1
15+
Release: 0.1.git%{shortcommit}%{?dist}
16+
Summary: Yet Another Yum S3 Plugin (AWS SigV4)
17+
License: ASL 2.0
18+
URL: https://%{provider_prefix}
19+
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
20+
21+
BuildArch: noarch
22+
23+
Requires: yum
24+
25+
# handle license on el{6,7}: global must be defined after the License field above
26+
%{!?_licensedir: %global license %doc}
27+
28+
%description
29+
Cob, yet another yum S3 plugin, provides the way to accessing yum repository hosted on AWS S3.
30+
31+
%prep
32+
%setup -q -n %{repo}-%{commit}
33+
34+
%build
35+
36+
%install
37+
make DESTDIR=$RPM_BUILD_ROOT install
38+
39+
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT/%pluginhome
40+
install -m 644 %{repo}.conf $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/
41+
install -m 644 %{repo}.py $RPM_BUILD_ROOT/%pluginhome
42+
43+
%files
44+
%doc %{repo}.repo README.md
45+
%license LICENSE
46+
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/%{repo}.conf
47+
%pluginhome/%{repo}.py*
48+
49+
%changelog
50+
* Wed Oct 25 2017 Marcin Dulak <[email protected]> 0.3.1-0.1.git1e5e1f2
51+
- Initial fedora package

0 commit comments

Comments
 (0)