886d8fe
%global pkgname django-helpdesk
886d8fe
886d8fe
Name:           python-django-helpdesk
7826300
Version:        0.1.8
a8ab81a
Release:        5%{?dist}
886d8fe
Summary:        A Django powered ticket tracker for small enterprise
886d8fe
886d8fe
Group:          Development/Languages
886d8fe
License:        BSD
886d8fe
URL:            https://github.com/rossp/django-helpdesk
886d8fe
Source0:        http://pypi.python.org/packages/source/d/%{pkgname}/%{pkgname}-%{version}.tar.gz
886d8fe
886d8fe
BuildArch:      noarch
886d8fe
BuildRequires:  python2-devel
886d8fe
BuildRequires:  python-setuptools
a715b37
BuildRequires:  pytz
83ef56e
Requires:       python-django14
83ef56e
BuildRequires:  python-django14
a8ab81a
886d8fe
886d8fe
886d8fe
%description
886d8fe
886d8fe
Django-helpdesk - A Django powered ticket tracker for small enterprise.
886d8fe
886d8fe
Copyright 2009-11 Jutda and Ross Poulton. All Rights Reserved. See LICENSE 
886d8fe
for details.
886d8fe
886d8fe
django-helpdesk was formerly known as Jutda Helpdesk, named after the 
886d8fe
company who originally created it. As of January 2011 the name has been 
886d8fe
changed to reflect what it really is: a Django-powered ticket tracker 
886d8fe
with contributors reaching far beyond Jutda.
886d8fe
886d8fe
Complete documentation is available in the docs/ directory, or online 
886d8fe
at http://django-helpdesk.readthedocs.org/.
886d8fe
886d8fe
You can see a demo installation at http://django-helpdesk-demo.herokuapp.com/
886d8fe
886d8fe
%prep
886d8fe
%setup -q -n %{pkgname}-%{version} 
886d8fe
rm -rf %{pkgname}.egg-info
886d8fe
rm -rf helpdesk/management/commands/*.py
886d8fe
rm -rf helpdesk/static/helpdesk/helpdesk-print.css
886d8fe
886d8fe
%build
067ee74
%{__python} setup.py build
886d8fe
886d8fe
%install
067ee74
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
886d8fe
886d8fe
# Handling locale files
886d8fe
# This is adapted from the %%find_lang macro, which cannot be directly
886d8fe
# used since Django locale files are not located in %%{_datadir}
886d8fe
#
886d8fe
# The rest of the packaging guideline still apply -- do not list
886d8fe
# locale files by hand!
886d8fe
(cd %{buildroot} && find . -name 'django*.mo') | %{__sed} -e 's|^.||' |
886d8fe
%{__sed} -e \
886d8fe
   's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
886d8fe
   >> %{pkgname}.lang
886d8fe
886d8fe
%check
067ee74
%{__python} setup.py test
886d8fe
 
886d8fe
%files -f %{pkgname}.lang
886d8fe
%doc LICENSE.3RDPARTY LICENSE
886d8fe
%{python_sitelib}/helpdesk
886d8fe
%{python_sitelib}/django_helpdesk-*.egg-info
886d8fe
886d8fe
%changelog
a8ab81a
* Thu Jun 20 2013 Luis Bazan <lbazan@fedoraproject.org> - 0.1.8-4
a8ab81a
- change requirement to python-django14
a8ab81a
83ef56e
* Tue May 07 2013 Matthias Runge <mrunge@redhat.com> - 0.1.8-4
83ef56e
- requires/buildrequires python-django14
83ef56e
067ee74
* Wed Mar 27 2013 Luis Bazan <lbazan@fedoraproject.org> - 0.1.8-3
067ee74
- add python macro 
067ee74
a715b37
* Mon Feb 18 2013 Luis Bazan <lbazan@fedoraproject.org> - 0.1.8-2
a715b37
- Add pytz
a715b37
7826300
* Fri Feb 15 2013 Luis Bazan <lbazan@fedoraproject.org> - 0.1.8-1
7826300
- New Upstream Version
7826300
20c34ac
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7b-4
20c34ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
20c34ac
886d8fe
* Fri Sep 28 2012 Luis Bazan <lbazan@fedoraproject.org> - 0.1.7b-3
886d8fe
- Fix BZ 858025 comment 3
886d8fe
 
886d8fe
* Wed Sep 26 2012 Luis Bazan <lbazan@fedoraproject.org> - 0.1.7b-2
886d8fe
- Fix BZ 858025 comment 2
886d8fe
886d8fe
* Mon Sep 17 2012 Luis Bazan <lbazan@fedoraproject.org> - 0.1.7b-1
886d8fe
- Initial Import