Ignore:
Timestamp:
Apr 9, 2014, 5:17:45 PM (11 years ago)
Author:
Yuri Dario
Message:

spec: updates to python macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/s3cmd.spec

    r407 r411  
     1
    12%define name s3cmd
    23%define version 1.1.0.beta3
     
    910Release: %{release}
    1011Source0: %{name}-%{unmangled_version}.tar.gz
     12Source1: python-wrapper.zip
     13
    1114License: GPL version 2
    1215Group: Development/Libraries
     
    1619Vendor: Michal Ludvig <michal@logix.cz>
    1720Url: http://s3tools.org
     21
     22Requires: python(abi) = %{python_version}
    1823
    1924%description
     
    3237
    3338
     39%package debug
     40Summary: HLL debug data for exception handling support.
     41
     42%description debug
     43HLL debug data for exception handling support.
     44
     45
    3446%prep
    35 %setup -n %{name}-%{unmangled_version}
     47%setup -n %{name}-%{unmangled_version} -a 1
    3648
    3749%build
     
    3951
    4052%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
     53python setup.py install --root=$RPM_BUILD_ROOT --prefix %{_prefix} --record=INSTALLED_FILES
     54#build exe wrapper
     55gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{python_version}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/%{name}.exe exec-py.c
    4656
    4757%clean
     
    5060%files -f INSTALLED_FILES
    5161%defattr(-,root,root)
     62%{_bindir}/*.exe
     63
     64%files debug
     65%defattr(-,root,root)
     66%{_bindir}/*.dbg
    5267
    5368%changelog
Note: See TracChangeset for help on using the changeset viewer.