packages: jsmacro/jsmacro.spec (NEW) - new

glen glen at pld-linux.org
Tue Aug 23 17:48:21 CEST 2011


Author: glen                         Date: Tue Aug 23 15:48:21 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/jsmacro:
   jsmacro.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/jsmacro/jsmacro.spec
diff -u /dev/null packages/jsmacro/jsmacro.spec:1.1
--- /dev/null	Tue Aug 23 17:48:21 2011
+++ packages/jsmacro/jsmacro.spec	Tue Aug 23 17:48:16 2011
@@ -0,0 +1,49 @@
+# $Revision$, $Date$
+Summary:	jsmacro - an oddly named JavaScript preprocessor
+Name:		jsmacro
+Version:	0.2.3
+Release:	0.1
+License:	MIT
+Group:		Development/Languages/Python
+Source0:	https://github.com/smartt/jsmacro/tarball/master#/%{name}-%{version}.tgz
+# Source0-md5:	3df081110299ec7b4254b62249fc0229
+URL:		http://www.eriksmartt.com/blog/archives/tag/jsmacro
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-hashlib
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+jsmacro is pre-processor designed for use with JavaScript
+
+This tool was developed to meet a desire to strip Debug and Test code
+from production JavaScript files in an automated manner.
+
+%prep
+%setup -qc
+mv *-%{name}-*/* .
+
+# fix #!%{_bindir}/env python -> #!%{__python}:
+%{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+cp -p %{name}.py $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.markdown
+%attr(755,root,root) %{_bindir}/jsmacro
+
+%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/08/23 15:48:16  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list