Commit 833f8071 authored by ayllon's avatar ayllon
Browse files

Reorganized. Added python-fts spec file.

parent 195a13c8
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")}
%if 0%{?rhel} == 5
%global with_python26 1
%endif
%if 0%{?with_python26}
%global __python26 %{_bindir}/python2.6
%global py26dir %{_builddir}/python26-%{name}-%{version}-%{release}
%{!?python26_sitelib: %global python26_sitelib %(%{__python26} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%{!?python26_sitearch: %global python26_sitearch %(%{__python26} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")}
# Update rpm byte compilation script so that we get the modules compiled by the
# correct inerpreter
%global __os_install_post %__multiple_python_os_install_post
%endif
Name: python-fts
Version: 0.0.1
Release: 1%{?dist}
BuildArch: noarch
Summary: FTS3 database model
Group: Applications/Internet
License: ASL 2.0
URL: https://svnweb.cern.ch/trac/fts3
Source0: %{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if 0%{?with_python26}
BuildRequires: python26-devel
%else
BuildRequires: python-devel
%endif
Requires: python-sqlalchemy
%description
This package provides an object model of the FTS3
database, using sqlalchemy ORM.
%prep
%setup -q -n %{name}-%{version}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{python_sitearch}
cp --preserve=timestamps -r src/fts3 %{buildroot}/%{python_sitearch}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitearch}/*
%changelog
* Thu Mar 21 2013 Alejandro Álvarez <aalvarez@cern.ch> - 0.0.1-1
- Initial build
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment