Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #36 from pcreech/el7-pscl-pydjango
Browse files Browse the repository at this point in the history
Add django to pulp's scl
  • Loading branch information
pcreech committed Nov 11, 2016
2 parents a0dbf1b + 243ac29 commit 8985282
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions rpms/pulp-scl-python-django/pulp-scl-python-django.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
%{?scl:%scl_package python-django}
%{!?scl:%global pkg_name %{name}}

# Fix this build. TODO: set this in pulp-scl properly
%global python_version 3.5

%global srcname Django

Name: %{?scl_prefix}python-django
Version: 1.8.16
Release: 8%{?dist}
Summary: A high-level Python Web framework

Group: Development/Languages
License: BSD
URL: http://www.djangoproject.com
Source0: https://files.pythonhosted.org/packages/source/D/%{srcname}/%{srcname}-%{version}.tar.gz

BuildRequires: %{?scl_prefix_python}python-devel
BuildRequires: %{?scl_prefix_python}python-setuptools
%{?scl:BuildRequires: %{scl}-build %{scl}-runtime}

%{?scl:Requires: %{scl}-runtime}

%description
Django is a high-level Python Web framework that encourages rapid
development and a clean, pragmatic design. It focuses on automating as
much as possible and adhering to the DRY (Don't Repeat Yourself)
principle.


%prep
%setup -q -n %{srcname}-%{version}


%build
%{?scl:scl enable %{scl} "}
%{__python} setup.py build
%{?scl:"}


%install
%{?scl:scl enable %{scl} "}
%{__python} setup.py install --no-compile --root %{buildroot} --install-purelib %{python_sitelib} --install-scripts %{_bindir}
%{?scl:"}


%files
%doc AUTHORS LICENSE README.rst
%{python_sitelib}/django/
%{python_sitelib}/%{srcname}-%{version}-py%{python_version}.egg-info
%{_bindir}/django-admin
%{_bindir}/django-admin.py

%changelog
* Fri Nov 11 2016 Patrick Creech <pcreech@redhat.com> - 1.8.16-8
- Addressing comments on PR https://github.com/pulp/packaging/pull/36/

* Tue Nov 08 2016 Patrick Creech <pcreech@redhat.com> - 1.8.16-7
- Initial release of pulp-scl python-django

0 comments on commit 8985282

Please sign in to comment.