Changeset 411 for spec/trunk/SPECS


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

spec: updates to python macros.

Location:
spec/trunk/SPECS
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/libxml2-python.spec

    r407 r411  
     1
    12%define name libxml2-python
    23%define version 2.7.7
     
    2324Requires: libxml2 = %{version}
    2425Requires: python
    25 Requires: python(abi) = 2.7
     26Requires: python(abi) = %{python_version}
    2627
    2728%description
     
    4546%install
    4647cd python
    47 python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
    48 # temporary workaround for wrong paths http://trac.netlabs.org/rpm/ticket/71
    49 mkdir $RPM_BUILD_ROOT/@unixroot
    50 mv $RPM_BUILD_ROOT/USR $RPM_BUILD_ROOT/@unixroot/usr
    51 sed -e 's#/USR/#/@unixroot/usr/#g' -i INSTALLED_FILES
     48python setup.py install --root=$RPM_BUILD_ROOT --prefix %{_prefix} --record=INSTALLED_FILES
    5249
    5350%clean
  • spec/trunk/SPECS/mercurial.spec

    r408 r411  
    11%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
    2 
    3 %global pybasever 2.7
    42
    53Summary: A fast, lightweight distributed source control management system
     
    119URL: http://www.selenic.com/mercurial/
    1210Source0: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
    13 Source1: mercurial-os2.zip
     11Source1: python-wrapper.zip
    1412
    1513Patch0: mercurial-os2.diff
     
    2220
    2321Requires: python
    24 Requires: python(abi) = %{pybasever}
     22Requires: python(abi) = %{python_version}
    2523
    2624%description
     
    139137
    140138#build exe wrapper
    141 #cp yum.exe $RPM_BUILD_ROOT/%{_bindir}
    142 gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{pybasever}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/hg.exe exec-py.c
     139gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{python_version}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/hg.exe exec-py.c
    143140
    144141
  • 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
  • spec/trunk/SPECS/urlgrabber.spec

    r407 r411  
     1
    12%define name urlgrabber
    23%define version 3.1.0
     
    1516Vendor: Michael D. Stenner, Ryan Tomayko <mstenner@linux.duke.edu, rtomayko@naeblis.cx>
    1617Url: http://linux.duke.edu/projects/urlgrabber/
     18
     19Requires: python(abi) = %{python_version}
    1720
    1821%description
     
    5356%install
    5457rm -rf $RPM_BUILD_ROOT
    55 python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
    56 # temporary workaround for wrong paths http://trac.netlabs.org/rpm/ticket/71
    57 mkdir $RPM_BUILD_ROOT/@unixroot
    58 mv $RPM_BUILD_ROOT/USR $RPM_BUILD_ROOT/@unixroot/usr
    59 sed -e 's#/USR/#/@unixroot/usr/#g' -i INSTALLED_FILES
     58python setup.py install --root=$RPM_BUILD_ROOT --prefix %{_prefix} --record=INSTALLED_FILES
    6059
    6160%clean
  • spec/trunk/SPECS/yum-metadata-parser.spec

    r405 r411  
    33Name: yum-metadata-parser
    44Version: 1.1.4
    5 Release: 4%{?dist}
     5Release: 5%{?dist}
    66Source0: %{name}-%{version}.tar.gz
    77License: GPL
     
    1717
    1818Requires: sqlite, glib2, libxml2
    19 Requires: python(abi) = 2.7
     19Requires: python(abi) = %{python_version}
    2020
    2121%description
     
    2626
    2727%build
     28export EMXSHELL="cmd.exe"
    2829%{__python} setup.py build
    2930
    3031%install
    31 %{__python} setup.py install -O1 --root=%{buildroot}
     32export EMXSHELL="cmd.exe"
     33%{__python} setup.py install -O1 --prefix %{_prefix} --root=%{buildroot}
    3234
    3335%clean
  • spec/trunk/SPECS/yum.spec

    r405 r411  
    11%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
    2 
    3 %global pybasever 2.7
    42 
    53Summary: RPM installer/updater
     
    108Group: System Environment/Base
    119Source0: http://yum.baseurl.org/download/3.2/%{name}-%{version}.tar.gz
    12 Source1: yum-os2.zip
    13 #Source1: yum.conf.fedora
    14 #Source2: yum-updatesd.conf.fedora
     10Source1: python-wrapper.zip
    1511
    1612Patch0: yum-os2.diff
     
    4541
    4642Requires: python
    47 Requires: python(abi) = %{pybasever}
     43Requires: python(abi) = %{python_version}
    4844
    4945%description
     
    109105
    110106#build exe wrapper
    111 #cp yum.exe $RPM_BUILD_ROOT/%{_bindir}
    112 gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{pybasever}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/yum.exe exec-py.c
     107gcc -g -Zomf %optflags -DPYTHON_EXE=\"python%{python_version}.exe\" -o $RPM_BUILD_ROOT/%{_bindir}/%{name}.exe exec-py.c
    113108
    114109
Note: See TracChangeset for help on using the changeset viewer.