1 Summary: jsmacro - an oddly named JavaScript preprocessor
6 Group: Development/Languages/Python
7 #Source0: https://github.com/smartt/jsmacro/tarball/master#/%{name}-%{version}.tgz
8 Source0: https://github.com/glensc/jsmacro/tarball/%{version}#/%{name}-%{version}.tgz
9 # Source0-md5: dcd900017da95349f2030cd8e1717c36
10 URL: http://www.eriksmartt.com/blog/archives/tag/jsmacro
11 BuildRequires: rpmbuild(macros) >= 1.219
12 Requires: python-modules
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 jsmacro is pre-processor designed for use with JavaScript
19 This tool was developed to meet a desire to strip Debug and Test code
20 from production JavaScript files in an automated manner.
26 # fix #!%{_bindir}/env python -> #!%{__python}:
27 %{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_bindir}
32 cp -p %{name}.py $RPM_BUILD_ROOT%{_bindir}/%{name}
35 rm -rf $RPM_BUILD_ROOT
38 %defattr(644,root,root,755)
39 %doc LICENSE.txt README.markdown
40 %attr(755,root,root) %{_bindir}/jsmacro