Changeset 411 for spec/trunk/SPECS/s3cmd.spec
- Timestamp:
- Apr 9, 2014, 5:17:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/s3cmd.spec
r407 r411 1 1 2 %define name s3cmd 2 3 %define version 1.1.0.beta3 … … 9 10 Release: %{release} 10 11 Source0: %{name}-%{unmangled_version}.tar.gz 12 Source1: python-wrapper.zip 13 11 14 License: GPL version 2 12 15 Group: Development/Libraries … … 16 19 Vendor: Michal Ludvig <michal@logix.cz> 17 20 Url: http://s3tools.org 21 22 Requires: python(abi) = %{python_version} 18 23 19 24 %description … … 32 37 33 38 39 %package debug 40 Summary: HLL debug data for exception handling support. 41 42 %description debug 43 HLL debug data for exception handling support. 44 45 34 46 %prep 35 %setup -n %{name}-%{unmangled_version} 47 %setup -n %{name}-%{unmangled_version} -a 1 36 48 37 49 %build … … 39 51 40 52 %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 53 python setup.py install --root=$RPM_BUILD_ROOT --prefix %{_prefix} --record=INSTALLED_FILES 54 #build exe wrapper 55 gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{python_version}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/%{name}.exe exec-py.c 46 56 47 57 %clean … … 50 60 %files -f INSTALLED_FILES 51 61 %defattr(-,root,root) 62 %{_bindir}/*.exe 63 64 %files debug 65 %defattr(-,root,root) 66 %{_bindir}/*.dbg 52 67 53 68 %changelog
Note:
See TracChangeset
for help on using the changeset viewer.