source: spec/trunk/SPECS/s3cmd.spec@ 1504

Last change on this file since 1504 was 1138, checked in by Yuri Dario, 8 years ago

spec: s3cmd: Release version 1.6.1-1.

File size: 1.7 KB
Line 
1
2%define name s3cmd
3%define version 1.6.1
4%define unmangled_version 1.6.1
5%define release 1
6
7Summary: Command line tool for managing Amazon S3 and CloudFront services
8Name: %{name}
9Version: %{version}
10Release: %{release}%{?dist}
11Source0: %{name}-%{unmangled_version}.tar.gz
12Source1: python-wrapper.zip
13
14License: GPL version 2
15Group: Development/Libraries
16BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
17Prefix: %{_prefix}
18Vendor: Michal Ludvig <michal@logix.cz>
19Url: http://s3tools.org
20
21Requires: python(abi) = %{python_version}
22
23%description
24
25
26S3cmd lets you copy files from/to Amazon S3
27(Simple Storage Service) using a simple to use
28command line client. Supports rsync-like backup,
29GPG encryption, and more. Also supports management
30of Amazon's CloudFront content delivery network.
31
32
33Authors:
34--------
35 Michal Ludvig <michal@logix.cz>
36
37
38%debug_package
39
40
41%prep
42%setup -n %{name}-%{unmangled_version} -a 1
43
44%build
45python setup.py build
46
47%install
48S3CMD_PACKAGING=Yes python setup.py install --root=$RPM_BUILD_ROOT --prefix %{_prefix} --record=INSTALLED_FILES
49install -d $RPM_BUILD_ROOT%{_mandir}/man1
50install -m 644 s3cmd.1 $RPM_BUILD_ROOT%{_mandir}/man1
51
52#build exe wrapper
53gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{python_version}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/%{name}.exe exec-py.c
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files -f INSTALLED_FILES
59%defattr(-,root,root)
60%{_bindir}/*.exe
61%{_mandir}/man1/s3cmd.1*
62%doc NEWS README.md
63
64%changelog
65* Wed May 10 2017 yd <yd@os2power.com> 1.6.1-1
66- update source code to 1.6.1
67
68* Wed Jun 18 2014 yd
69- rebuild to fix for http://trac.netlabs.org/rpm/ticket/77
70
71* Tue Apr 08 2014 yd
72- workaround for http://trac.netlabs.org/rpm/ticket/71
73
74* Mon Apr 07 2014 yd
75- build for python 2.7.
Note: See TracBrowser for help on using the repository browser.