| 1 |
|
|---|
| 2 | %define name s3cmd
|
|---|
| 3 | %define version 1.6.1
|
|---|
| 4 | %define unmangled_version 1.6.1
|
|---|
| 5 | %define release 1
|
|---|
| 6 |
|
|---|
| 7 | Summary: Command line tool for managing Amazon S3 and CloudFront services
|
|---|
| 8 | Name: %{name}
|
|---|
| 9 | Version: %{version}
|
|---|
| 10 | Release: %{release}%{?dist}
|
|---|
| 11 | Source0: %{name}-%{unmangled_version}.tar.gz
|
|---|
| 12 | Source1: python-wrapper.zip
|
|---|
| 13 |
|
|---|
| 14 | License: GPL version 2
|
|---|
| 15 | Group: Development/Libraries
|
|---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|---|
| 17 | Prefix: %{_prefix}
|
|---|
| 18 | Vendor: Michal Ludvig <michal@logix.cz>
|
|---|
| 19 | Url: http://s3tools.org
|
|---|
| 20 |
|
|---|
| 21 | Requires: python(abi) = %{python_version}
|
|---|
| 22 |
|
|---|
| 23 | %description
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | S3cmd lets you copy files from/to Amazon S3
|
|---|
| 27 | (Simple Storage Service) using a simple to use
|
|---|
| 28 | command line client. Supports rsync-like backup,
|
|---|
| 29 | GPG encryption, and more. Also supports management
|
|---|
| 30 | of Amazon's CloudFront content delivery network.
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | Authors:
|
|---|
| 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
|
|---|
| 45 | python setup.py build
|
|---|
| 46 |
|
|---|
| 47 | %install
|
|---|
| 48 | S3CMD_PACKAGING=Yes python setup.py install --root=$RPM_BUILD_ROOT --prefix %{_prefix} --record=INSTALLED_FILES
|
|---|
| 49 | install -d $RPM_BUILD_ROOT%{_mandir}/man1
|
|---|
| 50 | install -m 644 s3cmd.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|---|
| 51 |
|
|---|
| 52 | #build exe wrapper
|
|---|
| 53 | gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{python_version}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/%{name}.exe exec-py.c
|
|---|
| 54 |
|
|---|
| 55 | %clean
|
|---|
| 56 | rm -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.
|
|---|