Changeset 199 for trunk/pbs_python.spec


Ignore:
Timestamp:
10/06/09 15:02:17 (15 years ago)
Author:
ramonb
Message:

pbs_python.spec:

  • Fedora fixes
  • fixed tmppath
  • fixed %setup name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_python.spec

    r187 r199  
    1 Summary: This package contains the pbs python module.
    2 Name: pbs_python
    3 Version: %{prodversion}
    4 Release: %{prodrelease}
     1%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
     2
     3### Abstract ###
     4
     5Name: pbs-python
     6Version: 3.2.0
     7Release: 1%{?dist}
    58License: See LICENSE
    69Group: Development/Libraries
     10Summary: This package contains the PBS python module.
     11URL: https://subtrac.sara.nl/oss/pbs_python
     12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
    713Source: ftp://ftp.sara.nl/pub/outgoing/pbs_python.tar.gz
    8 BuildRoot: /var/tmp/%{name}-buildroot
    914
     15### Dependencies ###
     16# None
     17
     18### Build Dependencies ###
     19
     20BuildRequires: libtorque-devel >= %{libtorque_version}
     21BuildRequires: python2-devel >= %{python_version}
    1022
    1123%description
     
    1325
    1426%prep
    15 %setup -q
    16 ./configure --with-pbsdir=%{libdir}
     27%setup -q -n pbs_python-%{version}
    1728
    1829%build
    19 python setup.py build
     30%configure
     31%{__python} setup.py build
    2032
    2133%install
    22 echo %{pythonlib}
    23 echo %{libdir}
    24 python ./setup.py install --prefix $RPM_BUILD_ROOT/usr ;
     34%{__python} ./setup.py install --prefix $RPM_BUILD_ROOT%{_prefix} ;
    2535
    2636%clean
     
    3040%defattr(-,root,root,0755)
    3141%doc README TODO examples
    32 %{libdir}/%{pythonlib}/site-packages/pbs.pth
    33 %{libdir}/%{pythonlib}/site-packages/pbs/*
     42%{python_sitearch}/pbs.pth
     43%{python_sitearch}/pbs/*
    3444
    3545%changelog
    36 * Tue May  5 2009 Michel Jouvin <jouvin@lal.in2p3.fr>
    37 - Rework spec file to make it generic with respect to platforms, python version... Intended to be used with Makefile.rpm
     46* Tue Oct 06 2009 Ramon Bastiaans <ramon.bastiaans@sara.nl>
     47- Fixed tmppath, %setup sourcedir
     48* Tue Mar 24 2009 David Chin <chindw@wfu.edu>
     49- Fedora-ize
    3850* Sun Mar  9 2008 Michael Sternberg <sternberg@anl.gov>
    3951- libdir and python defines
Note: See TracChangeset for help on using the changeset viewer.