f6fc615
# -*- rpm-spec -*-
f6fc615
%if 0%{?rhel} && 0%{?rhel} <= 5
f6fc615
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
f6fc615
%endif
f6fc615
f6fc615
%global tryton_major 1.8
f6fc615
%global modname  account-invoice-history
f6fc615
%global pkgname %(echo \"%{name}\" | sed 's/-/_/g')
f6fc615
f6fc615
Name:           trytond-%{modname}
f6fc615
Version:        1.8.0
2cf860e
Release:        4%{?dist}
f6fc615
Summary:        %{modname} module for Tryton
f6fc615
f6fc615
Group:          System Environment/Libraries
f6fc615
License:        GPLv3+
f6fc615
URL:            http://www.tryton.org
f6fc615
Source0:        http://downloads.tryton.org/%{tryton_major}/%{pkgname}-%{version}.tar.gz
f6fc615
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f6fc615
f6fc615
BuildArch:      noarch
f6fc615
BuildRequires:  python2-devel
f6fc615
BuildRequires:  python-setuptools
f6fc615
f6fc615
Requires:       tryton(kernel) = %{tryton_major}
f6fc615
Requires:       trytond-account-invoice
f6fc615
f6fc615
%description
f6fc615
%{modname} module for Tryton application server.
f6fc615
f6fc615
f6fc615
%prep
f6fc615
%setup -q -n %{pkgname}-%{version}
f6fc615
f6fc615
f6fc615
%build
f6fc615
%{__python} setup.py build
f6fc615
f6fc615
f6fc615
%install
f6fc615
rm -rf %{buildroot}
f6fc615
%{__python} setup.py install --skip-build --root %{buildroot}
f6fc615
f6fc615
 
f6fc615
%clean
f6fc615
rm -rf %{buildroot}
f6fc615
f6fc615
f6fc615
%files
f6fc615
%defattr(-,root,root,-)
f6fc615
%doc CHANGELOG COPYRIGHT INSTALL LICENSE README
f6fc615
%{python_sitelib}/trytond/modules/*
f6fc615
%{python_sitelib}/%{pkgname}-%{version}-*.egg-info
f6fc615
f6fc615
f6fc615
%changelog
2cf860e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
2cf860e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2cf860e
f6fc615
* Thu Jan 20 2011 Dan HorĂ¡k <dan[at]danny.cz> - 1.8.0-3
f6fc615
- initial Fedora package