packages: python-jsmin/python-jsmin.spec (NEW) - new
glen
glen at pld-linux.org
Wed Nov 16 12:53:01 CET 2011
Author: glen Date: Wed Nov 16 11:53:01 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/python-jsmin:
python-jsmin.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-jsmin/python-jsmin.spec
diff -u /dev/null packages/python-jsmin/python-jsmin.spec:1.1
--- /dev/null Wed Nov 16 12:53:01 2011
+++ packages/python-jsmin/python-jsmin.spec Wed Nov 16 12:52:56 2011
@@ -0,0 +1,58 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define module jsmin
+Summary: JavaScript minifier
+Name: python-%{module}
+Version: 2.0.2
+Release: 1
+License: Freeware
+Group: Development/Languages/Python
+Source0: http://pypi.python.org/packages/source/j/jsmin/jsmin-%{version}.tar.gz
+# Source0-md5: cd87c582cf897692df63c506e309249b
+URL: http://pypi.python.org/pypi/jsmin
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+JavaScript minifier - Python module
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/test.*
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%{py_sitescriptdir}/%{module}-*.egg-info
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/11/16 11:52:56 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list