File python-django-staticmediamgr.spec of Package python-django-staticmediamgr
#
# spec file for package
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-django-staticmediamgr
Version: 0.6
Release: 1
License: Apache 2.0
Summary: Django app to copy media files to a remote place, also can minifying css and js
Url: http://opensource.washingtontimes.com/projects/django-staticmediamgr
Group: Development/Libraries/Python
Source: django-staticmediamgr-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-django
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
This app provides a way to copy and consolidate static media files to one or more
configured locations. This is incredibly helpful if you have your media served
from another server.
It consists of a management command, copy_static_media, and several settings including:
* STATIC_MEDIA_COPY_PATHS A tuple of dictionaries specifying the from/to for copying files.
* STATIC_MEDIA_PURGE_OLD_FILES Should old files be purged from the destination directory.
* STATIC_MEDIA_COMPRESS_CSS Should CSS files be compressed during copy using the included port of YUI Compressor
* STATIC_MEDIA_COMPRESS_JS Should javascript files be compressed during copy using the included python port of Douglas Crockford's jsmin
* STATIC_MEDIA_APP_MEDIA_PATH Where (and if) should the application media be copied to automatically.
* STATIC_MEDIA_FILE_COMBINATIONS Configuration of combining multiple files into one.
Author:
--------
Corey Oordt, The Washington Times <coordt#washingtontimes.com>
%prep
%setup -q -n django-staticmediamgr-%{version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)