initial import
This commit is contained in:
parent
932b3b705b
commit
67447ce1e9
3 changed files with 62 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -0,0 +1 @@
|
|||
/django_compressor-1.2.tar.gz
|
||||
60
python-django-compressor.spec
Normal file
60
python-django-compressor.spec
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
%global pypi_name django_compressor
|
||||
|
||||
Name: python-django-compressor
|
||||
Version: 1.2
|
||||
Release: 2%{?dist}
|
||||
Summary: Compresses linked and inline JavaScript or CSS into single cached files
|
||||
|
||||
License: MIT
|
||||
URL: http://pypi.python.org/pypi/django_compressor/1.2
|
||||
Source0: http://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
|
||||
Requires: python-django-appconf >= 0.4
|
||||
Requires: python-versiontools
|
||||
|
||||
%description
|
||||
Django Compressor combines and compresses linked and inline Javascript
|
||||
or CSS in a Django templates into cacheable static files by using the
|
||||
``compress`` template tag. HTML in between
|
||||
``{% compress js/css %}`` and ``{% endcompress %}`` is
|
||||
parsed and searched for CSS or JS. These styles and scripts are subsequently
|
||||
processed with optional, configurable compilers and filters.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
# Remove bundled egg-info
|
||||
rm -rf %{pypi_name}.egg-info
|
||||
|
||||
# remove /usr/bin/env from scripts
|
||||
for i in compressor/tests/precompiler.py \
|
||||
compressor/filters/cssmin/cssmin.py \
|
||||
compressor/filters/jsmin/rjsmin.py;
|
||||
do sed -i -e "1d" $i;
|
||||
done
|
||||
|
||||
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%doc README.rst LICENSE
|
||||
%{python_sitelib}/compressor
|
||||
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||
|
||||
%changelog
|
||||
* Fri Sep 14 2012 Matthias Runge <mrunge@redhat.com> - 1.2-2
|
||||
- add requirement python-versiontools
|
||||
|
||||
* Tue Sep 11 2012 Matthias Runge <mrunge@redhat.com> - 1.2-1
|
||||
- Initial package.
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
a740f2f67a3532cd0da412f0123e34c5 django_compressor-1.2.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue