| 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 |
|
|---|
| 6 | Summary: Command line tool for managing Amazon S3 and CloudFront services
|
|---|
| 7 | Name: %{name}
|
|---|
| 8 | Version: %{version}
|
|---|
| 9 | Release: %{release}
|
|---|
| 10 | Source0: %{name}-%{unmangled_version}.tar.gz
|
|---|
| 11 | License: GPL version 2
|
|---|
| 12 | Group: Development/Libraries
|
|---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|---|
| 14 | Prefix: %{_prefix}
|
|---|
| 15 | BuildArch: noarch
|
|---|
| 16 | Vendor: Michal Ludvig <michal@logix.cz>
|
|---|
| 17 | Url: http://s3tools.org
|
|---|
| 18 |
|
|---|
| 19 | %description
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | S3cmd lets you copy files from/to Amazon S3
|
|---|
| 23 | (Simple Storage Service) using a simple to use
|
|---|
| 24 | command line client. Supports rsync-like backup,
|
|---|
| 25 | GPG encryption, and more. Also supports management
|
|---|
| 26 | of Amazon's CloudFront content delivery network.
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | Authors:
|
|---|
| 30 | --------
|
|---|
| 31 | Michal Ludvig <michal@logix.cz>
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | %prep
|
|---|
| 35 | %setup -n %{name}-%{unmangled_version}
|
|---|
| 36 |
|
|---|
| 37 | %build
|
|---|
| 38 | python setup.py build
|
|---|
| 39 |
|
|---|
| 40 | %install
|
|---|
| 41 | python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|---|
| 42 | # temporary workaround for wrong paths http://trac.netlabs.org/rpm/ticket/71
|
|---|
| 43 | mkdir $RPM_BUILD_ROOT/@unixroot
|
|---|
| 44 | mv $RPM_BUILD_ROOT/USR $RPM_BUILD_ROOT/@unixroot/usr
|
|---|
| 45 | sed -e 's#/USR/#/@unixroot/usr/#g' -i INSTALLED_FILES
|
|---|
| 46 |
|
|---|
| 47 | %clean
|
|---|
| 48 | rm -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.