1b3a745
# -*- rpm-spec -*-
1b3a745
%if 0%{?rhel} && 0%{?rhel} <= 5
1b3a745
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
1b3a745
%endif
1b3a745
9c29689
%global tryton_major 2.6
1b3a745
%global modname  account
1b3a745
%global pkgname %(echo \"%{name}\" | sed 's/-/_/g')
1b3a745
1b3a745
Name:           trytond-%{modname}
0c65eb1
Version:        2.6.2
06358e7
Release:        5%{?dist}
1b3a745
Summary:        %{modname} module for Tryton
1b3a745
1b3a745
Group:          System Environment/Libraries
1b3a745
License:        GPLv3+
1b3a745
URL:            http://www.tryton.org
1b3a745
Source0:        http://downloads.tryton.org/%{tryton_major}/%{pkgname}-%{version}.tar.gz
1b3a745
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1b3a745
1b3a745
BuildArch:      noarch
1b3a745
BuildRequires:  python2-devel
1b3a745
BuildRequires:  python-setuptools
1b3a745
1b3a745
Requires:       tryton(kernel) = %{tryton_major}
1b3a745
Requires:       trytond-company
1b3a745
1b3a745
%description
1b3a745
%{modname} module for Tryton application server.
1b3a745
1b3a745
1b3a745
%prep
1b3a745
%setup -q -n %{pkgname}-%{version}
1b3a745
1b3a745
1b3a745
%build
1b3a745
%{__python} setup.py build
1b3a745
1b3a745
1b3a745
%install
1b3a745
rm -rf %{buildroot}
1b3a745
%{__python} setup.py install --skip-build --root %{buildroot}
1b3a745
1b3a745
 
1b3a745
%clean
1b3a745
rm -rf %{buildroot}
1b3a745
1b3a745
1b3a745
%files
1b3a745
%defattr(-,root,root,-)
1b3a745
%doc CHANGELOG COPYRIGHT INSTALL LICENSE README
1b3a745
%{python_sitelib}/trytond/modules/*
1b3a745
%{python_sitelib}/%{pkgname}-%{version}-*.egg-info
1b3a745
1b3a745
1b3a745
%changelog
06358e7
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-5
06358e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
06358e7
ac3af00
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-4
ac3af00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ac3af00
8d11e67
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-3
8d11e67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8d11e67
48b49f8
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-2
48b49f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
48b49f8
0c65eb1
* Fri Jan 04 2013 Dan Horák <dan@danny.cz> - 2.6.2-1
0c65eb1
- new upstream version 2.6.2
0c65eb1
9c29689
* Sat Oct 27 2012 Dan Horák <dan@danny.cz> - 2.6.1-1
9c29689
- new upstream version 2.6.1
9c29689
22ef3fb
* Wed Sep 05 2012 Dan Horák <dan@danny.cz> - 2.4.2-1
22ef3fb
- new upstream version 2.4.2
22ef3fb
f9d3efb
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
f9d3efb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f9d3efb
9731b19
* Mon Jun 04 2012 Dan Horák <dan@danny.cz> - 2.4.1-1
9731b19
- new upstream version 2.4.1
9731b19
0cf6b5a
* Sun Jan 15 2012 Dan Horák <dan@danny.cz> - 2.2.1-1
0cf6b5a
- new upstream version 2.2.1
0cf6b5a
8ccf4ed
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
8ccf4ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8ccf4ed
e8a784f
* Sun Oct 23 2011 Dan Horák <dan@danny.cz> - 2.0.2-1
e8a784f
- new upstream version 2.0.2
e8a784f
b6aa1a9
* Mon Jun 06 2011 Dan Horák <dan@danny.cz> - 2.0.1-1
b6aa1a9
- new upstream version 2.0.1
b6aa1a9
a5aae4c
* Tue May 03 2011 Dan Horák <dan@danny.cz> - 2.0.0-1
a5aae4c
- new upstream version 2.0.0
a5aae4c
912806d
* Mon Feb 21 2011 Dan Horák <dan[at]danny.cz> - 1.8.1-1
912806d
- updated to 1.8.1
912806d
c7d574c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
c7d574c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c7d574c
1b3a745
* Thu Jan 20 2011 Dan Horák <dan[at]danny.cz> - 1.8.0-3
1b3a745
- initial Fedora package