b9c7d76
# -*- rpm-spec -*-
b9c7d76
%if 0%{?rhel} && 0%{?rhel} <= 5
b9c7d76
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
b9c7d76
%endif
b9c7d76
3c769d1
%global tryton_major 2.4
b9c7d76
%global modname  sale
b9c7d76
%global pkgname %(echo \"%{name}\" | sed 's/-/_/g')
b9c7d76
b9c7d76
Name:           trytond-%{modname}
76ba03a
Version:        2.4.2
a444311
Release:        1%{?dist}
b9c7d76
Summary:        %{modname} module for Tryton
b9c7d76
b9c7d76
Group:          System Environment/Libraries
b9c7d76
License:        GPLv3+
b9c7d76
URL:            http://www.tryton.org
b9c7d76
Source0:        http://downloads.tryton.org/%{tryton_major}/%{pkgname}-%{version}.tar.gz
b9c7d76
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b9c7d76
b9c7d76
BuildArch:      noarch
b9c7d76
BuildRequires:  python2-devel
b9c7d76
BuildRequires:  python-setuptools
b9c7d76
b9c7d76
Requires:       tryton(kernel) = %{tryton_major}
b9c7d76
Requires:       trytond-stock
b9c7d76
Requires:       trytond-account-invoice
b9c7d76
b9c7d76
%description
b9c7d76
%{modname} module for Tryton application server.
b9c7d76
b9c7d76
b9c7d76
%prep
b9c7d76
%setup -q -n %{pkgname}-%{version}
b9c7d76
b9c7d76
b9c7d76
%build
b9c7d76
%{__python} setup.py build
b9c7d76
b9c7d76
b9c7d76
%install
b9c7d76
rm -rf %{buildroot}
b9c7d76
%{__python} setup.py install --skip-build --root %{buildroot}
b9c7d76
b9c7d76
 
b9c7d76
%clean
b9c7d76
rm -rf %{buildroot}
b9c7d76
b9c7d76
b9c7d76
%files
b9c7d76
%defattr(-,root,root,-)
b9c7d76
%doc CHANGELOG COPYRIGHT INSTALL LICENSE README
b9c7d76
%{python_sitelib}/trytond/modules/*
b9c7d76
%{python_sitelib}/%{pkgname}-%{version}-*.egg-info
b9c7d76
b9c7d76
b9c7d76
%changelog
76ba03a
* Fri Jan 04 2013 Dan Horák <dan@danny.cz> - 2.4.2-1
76ba03a
- new upstream version 2.4.2
76ba03a
a444311
* Wed Sep 05 2012 Dan Horák <dan@danny.cz> - 2.4.1-1
a444311
- new upstream version 2.4.1
a444311
744ab0a
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
744ab0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
744ab0a
3c769d1
* Mon Jun 04 2012 Dan Horák <dan@danny.cz> - 2.4.0-1
3c769d1
- new upstream version 2.4.0
3c769d1
322863d
* Sun Jan 15 2012 Dan Horák <dan@danny.cz> - 2.2.1-1
322863d
- new upstream version 2.2.1
322863d
37fc39b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
37fc39b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
37fc39b
26c4c7f
* Sun Oct 23 2011 Dan Horák <dan@danny.cz> - 2.0.2-1
26c4c7f
- new upstream version 2.0.2
26c4c7f
4f3eb19
* Mon Jun 06 2011 Dan Horák <dan@danny.cz> - 2.0.1-1
4f3eb19
- new upstream version 2.0.1
4f3eb19
2c31eaa
* Tue May 03 2011 Dan Horák <dan@danny.cz> - 2.0.0-1
2c31eaa
- new upstream version 2.0.0
2c31eaa
9022684
* Mon Feb 21 2011 Dan Horák <dan[at]danny.cz> - 1.8.1-1
9022684
- updated to 1.8.1
9022684
bcd9b78
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
bcd9b78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bcd9b78
b9c7d76
* Thu Jan 20 2011 Dan Horák <dan[at]danny.cz> - 1.8.0-3
b9c7d76
- initial Fedora package