-
Notifications
You must be signed in to change notification settings - Fork 11
/
yum-axelget.spec
78 lines (55 loc) · 2.29 KB
/
yum-axelget.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
%define build_number 0.5
%define snapshot .20140523
%define source_folder yum-axelget-svn-trunk
Name: yum-axelget
Version: 1.0
BuildArch: noarch
Release: %{build_number}%{?snapshot}%{?dist}
Summary: Yum plugin to download big files with axel
Group: System Environment/Base
License: GPLv2
URL: https://github.com/crook/yum-axelget
Source0: https://github.com/crook/yum-axelget/archive/v1.0.5.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
Requires: axel
%description
Developed by Ray Chen and Wesley Wang from China.
Built by Amos Kong <[email protected]>.
The latest code can be found in github:
https://github.com/crook/yum-axelget
%prep
%setup -q %{?source_folder:-n %{source_folder}}
%build
%install
rm -rf $RPM_BUILD_ROOT
install -m 0755 -d %{buildroot}%{_sysconfdir}/yum/pluginconf.d
install -p -m 0644 axelget.conf %{buildroot}%{_sysconfdir}/yum/pluginconf.d
install -m 0755 -d %{buildroot}%{_libdir}/yum-plugins
install -p -m 0644 axelget.py %{buildroot}%{_libdir}/yum-plugins
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
%{_libdir}/yum-plugins/axelget.py*
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/axelget.conf
%changelog
* Thu Fri 23 2014 Ray Chen <[email protected]> - 1.0.5.20140523
- Fix #7 to take care of yum localinstall package
* Thu May 15 2014 Ray Chen <[email protected]> - 1.0-0.5.20140515
- Update pep8 coding style
- Skip import drpm module for old Centos/Fedora distribution
* Sat Apr 05 2014 Ray Chen <[email protected]> - 1.0-0.4.20140405
- Removed required presto module since it's in yum core code now
- Rewrite drpm download method with new yum presto API
* Sat Jun 17 2013 Amos Kong <[email protected]> - 1.0-0.3.20130617
- fix for issue 2 on website (chenrano2002)
- modify console output (chenrano2002)
- removed unused module urlparse and fixed some typos (yolkfull)
- move checking plugin procedure as a common function for presto and fastestmirror (yolkfull)
* Sat Jul 05 2008 bbbush <[email protected]> - 1.0-0.2.20080705
- preserve time stamp when copy files
- confirmed that both .pyc and .pyo should be included
* Sat Jul 05 2008 bbbush <[email protected]> - 1.0-0.1.20080705
- create spec