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

Last change on this file since 407 was 407, checked in by Yuri Dario, 12 years ago

spec: workaround for http://trac.netlabs.org/rpm/ticket/71.

File size: 1.4 KB
Line 
1%define name s3cmd
2%define version 1.1.0.beta3
3%define unmangled_version 1.1.0.beta3
4%define release 5
5
6Summary: Command line tool for managing Amazon S3 and CloudFront services
7Name: %{name}
8Version: %{version}
9Release: %{release}
10Source0: %{name}-%{unmangled_version}.tar.gz
11License: GPL version 2
12Group: Development/Libraries
13BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
14Prefix: %{_prefix}
15BuildArch: noarch
16Vendor: Michal Ludvig <michal@logix.cz>
17Url: http://s3tools.org
18
19%description
20
21
22S3cmd lets you copy files from/to Amazon S3
23(Simple Storage Service) using a simple to use
24command line client. Supports rsync-like backup,
25GPG encryption, and more. Also supports management
26of Amazon's CloudFront content delivery network.
27
28
29Authors:
30--------
31 Michal Ludvig <michal@logix.cz>
32
33
34%prep
35%setup -n %{name}-%{unmangled_version}
36
37%build
38python setup.py build
39
40%install
41python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
42# temporary workaround for wrong paths http://trac.netlabs.org/rpm/ticket/71
43mkdir $RPM_BUILD_ROOT/@unixroot
44mv $RPM_BUILD_ROOT/USR $RPM_BUILD_ROOT/@unixroot/usr
45sed -e 's#/USR/#/@unixroot/usr/#g' -i INSTALLED_FILES
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files -f INSTALLED_FILES
51%defattr(-,root,root)
52
53%changelog
54* Tue Apr 08 2014 yd
55- workaround for http://trac.netlabs.org/rpm/ticket/71
56
57* Mon Apr 07 2014 yd
58- build for python 2.7.
Note: See TracBrowser for help on using the repository browser.