c0f250e
%global pkgname django-helpdesk
c0f250e
c0f250e
Name:           python-%{pkgname}
c0f250e
Version:        0.2.7
c0f250e
Release:        1%{?dist}
c0f250e
Summary:        A Django powered ticket tracker for small enterprise
c0f250e
c0f250e
License:        BSD
c0f250e
URL:            https://github.com/django-helpdesk/django-helpdesk
c0f250e
Source0:        https://files.pythonhosted.org/packages/source/d/%{pkgname}/%{pkgname}-%{version}.tar.gz
c0f250e
c0f250e
BuildArch:      noarch
c0f250e
c0f250e
%description
c0f250e
c0f250e
Django-helpdesk - A Django powered ticket tracker for small enterprise.
c0f250e
c0f250e
Copyright 2009-11 Jutda and Ross Poulton. All Rights Reserved. See LICENSE
c0f250e
for details.
c0f250e
c0f250e
django-helpdesk was formerly known as Jutda Helpdesk, named after the
c0f250e
company who originally created it. As of January 2011 the name has been
c0f250e
changed to reflect what it really is: a Django-powered ticket tracker
c0f250e
with contributors reaching far beyond Jutda.
c0f250e
c0f250e
Complete documentation is available in the docs/ directory, or online
c0f250e
at http://django-helpdesk.readthedocs.org/.
c0f250e
c0f250e
You can see a demo installation at http://django-helpdesk-demo.herokuapp.com/.
c0f250e
c0f250e
%package -n python2-%{pkgname}
c0f250e
Summary:        %{summary}
c0f250e
c0f250e
BuildRequires:  python2-devel
c0f250e
BuildRequires:  python2-setuptools
c0f250e
BuildRequires:  pytz
c0f250e
BuildRequires:  python-simplejson
c0f250e
Requires:       python2-django
c0f250e
BuildRequires:  python2-django
c0f250e
c0f250e
%{?python_provide:%python_provide python2-%{pkgname}}
c0f250e
c0f250e
%description -n python2-%{pkgname}
c0f250e
c0f250e
Django-helpdesk - A Django powered ticket tracker for small enterprise.
c0f250e
c0f250e
Copyright 2009-11 Jutda and Ross Poulton. All Rights Reserved. See LICENSE 
c0f250e
for details.
c0f250e
c0f250e
django-helpdesk was formerly known as Jutda Helpdesk, named after the 
c0f250e
company who originally created it. As of January 2011 the name has been 
c0f250e
changed to reflect what it really is: a Django-powered ticket tracker 
c0f250e
with contributors reaching far beyond Jutda.
c0f250e
c0f250e
Complete documentation is available in the docs/ directory, or online 
c0f250e
at http://django-helpdesk.readthedocs.org/.
c0f250e
c0f250e
You can see a demo installation at http://django-helpdesk-demo.herokuapp.com/.
c0f250e
c0f250e
This package provides Python 2 build of %{pkgname}.
c0f250e
c0f250e
%package -n python3-%{pkgname}
c0f250e
Summary:        %{summary}
c0f250e
c0f250e
BuildRequires:  python3-devel
c0f250e
BuildRequires:  python3-setuptools
c0f250e
BuildRequires:  python3-pytz
c0f250e
BuildRequires:  python3-simplejson
c0f250e
Requires:       python3-django
c0f250e
BuildRequires:  python3-django
c0f250e
c0f250e
%{?python_provide:%python_provide python3-%{pkgname}}
c0f250e
c0f250e
%description -n python3-%{pkgname}
c0f250e
c0f250e
Django-helpdesk - A Django powered ticket tracker for small enterprise.
c0f250e
c0f250e
Copyright 2009-11 Jutda and Ross Poulton. All Rights Reserved. See LICENSE
c0f250e
for details.
c0f250e
c0f250e
django-helpdesk was formerly known as Jutda Helpdesk, named after the
c0f250e
company who originally created it. As of January 2011 the name has been
c0f250e
changed to reflect what it really is: a Django-powered ticket tracker
c0f250e
with contributors reaching far beyond Jutda.
c0f250e
c0f250e
Complete documentation is available in the docs/ directory, or online
c0f250e
at http://django-helpdesk.readthedocs.org/.
c0f250e
c0f250e
You can see a demo installation at http://django-helpdesk-demo.herokuapp.com/.
c0f250e
c0f250e
This package provides Python 3 build of %{pkgname}.
c0f250e
c0f250e
%prep
c0f250e
%autosetup -n %{pkgname}-%{version}
c0f250e
rm -rf %{pkgname}.egg-info
c0f250e
rm -rf helpdesk/management/commands/*.py
c0f250e
rm -rf helpdesk/static/helpdesk/helpdesk-print.css
c0f250e
c0f250e
%build
c0f250e
%py2_build
c0f250e
%py3_build
c0f250e
c0f250e
%install
c0f250e
%py2_install
c0f250e
%py3_install
c0f250e
c0f250e
# Handling locale files
c0f250e
# This is adapted from the %%find_lang macro, which cannot be directly
c0f250e
# used since Django locale files are not located in %%{_datadir}
c0f250e
#
c0f250e
# The rest of the packaging guideline still apply -- do not list
c0f250e
# locale files by hand!
c0f250e
(cd %{buildroot} && find .%{python2_sitelib} -name 'django*.mo') | %{__sed} -e 's|^.||' |
c0f250e
%{__sed} -e \
c0f250e
   's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
c0f250e
   >> python2-%{pkgname}.lang
c0f250e
(cd %{buildroot} && find .%{python3_sitelib} -name 'django*.mo') | %{__sed} -e 's|^.||' |
c0f250e
%{__sed} -e \
c0f250e
   's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
c0f250e
   >> python3-%{pkgname}.lang
c0f250e
c0f250e
%files -f python2-%{pkgname}.lang -n python2-%{pkgname}
c0f250e
%license LICENSE.3RDPARTY LICENSE
c0f250e
%doc README.rst
c0f250e
%{python2_sitelib}/helpdesk
c0f250e
%{python2_sitelib}/django_helpdesk-*.egg-info
c0f250e
c0f250e
%files -f python3-%{pkgname}.lang -n python3-%{pkgname}
c0f250e
%license LICENSE.3RDPARTY LICENSE
c0f250e
%doc README.rst
c0f250e
%{python3_sitelib}/helpdesk
c0f250e
%{python3_sitelib}/django_helpdesk-*.egg-info
c0f250e
c0f250e
%changelog
c0f250e
* Wed Apr 18 2018 Luis Bazan <lbazan@fedoraproject.org> - 0.2.7-1
c0f250e
- new upstream version
c0f250e
c0f250e
* Tue Nov 21 2017 Luis Bazan <lbazan@fedoraproject.org> - 0.2.1-1
c0f250e
- new upstream version
c0f250e
c0f250e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-4
c0f250e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c0f250e
c0f250e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-3
c0f250e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c0f250e
c0f250e
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.1.18-2
c0f250e
- Rebuild for Python 3.6
c0f250e
c0f250e
* Wed Nov 9 2016 Jan Beran <jberan@redhat.com> - 0.1.18-1
c0f250e
- update to patched version 0.1.18
c0f250e
- source update
c0f250e
- modernized specfile with Python 3 packaging
c0f250e
c0f250e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-7
c0f250e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c0f250e
c0f250e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.12-6
c0f250e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c0f250e
c0f250e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-5
c0f250e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c0f250e
c0f250e
* Wed Oct 22 2014 Luis Bazan <lbazan@fedoraproject.org> - 0.1.12-4
c0f250e
- clean spec
c0f250e
c0f250e
* Fri Sep 19 2014 Luis Bazan <lbazan@fedoraproject.org> - 0.1.12-3
c0f250e
- rebuild simplejson
c0f250e
c0f250e
* Fri Sep 19 2014 Luis Bazan <lbazan@fedoraproject.org> - 0.1.12-2
c0f250e
- add python-simplejson 
c0f250e
c0f250e
* Sat Aug 09 2014 Luis Bazan <lbazan@fedoraproject.org> - 0.1.12-1
c0f250e
- New Upstream version
c0f250e
c0f250e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-2
c0f250e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c0f250e
c0f250e
* Thu Oct 24 2013 Luis Bazan <lbazan@fedoraproject.org> - 0.1.11-1
c0f250e
- New Upstream version
c0f250e
- remove some lines no more necessary
c0f250e
c0f250e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-5
c0f250e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c0f250e
c0f250e
* Tue May 07 2013 Matthias Runge <mrunge@redhat.com> - 0.1.8-4
c0f250e
- requires/buildrequires python-django14
c0f250e
c0f250e
* Wed Mar 27 2013 Luis Bazan <lbazan@fedoraproject.org> - 0.1.8-3
c0f250e
- add python macro 
c0f250e
c0f250e
* Mon Feb 18 2013 Luis Bazan <lbazan@fedoraproject.org> - 0.1.8-2
c0f250e
- Add pytz
c0f250e
c0f250e
* Fri Feb 15 2013 Luis Bazan <lbazan@fedoraproject.org> - 0.1.8-1
c0f250e
- New Upstream Version
c0f250e
c0f250e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7b-4
c0f250e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c0f250e
c0f250e
* Fri Sep 28 2012 Luis Bazan <lbazan@fedoraproject.org> - 0.1.7b-3
c0f250e
- Fix BZ 858025 comment 3
c0f250e
 
c0f250e
* Wed Sep 26 2012 Luis Bazan <lbazan@fedoraproject.org> - 0.1.7b-2
c0f250e
- Fix BZ 858025 comment 2
c0f250e
c0f250e
* Mon Sep 17 2012 Luis Bazan <lbazan@fedoraproject.org> - 0.1.7b-1
c0f250e
- Initial Import