]> git.pld-linux.org Git - SPECS.git/blob - jsmacro.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / jsmacro.spec
1 Summary:        jsmacro - an oddly named JavaScript preprocessor
2 Name:           jsmacro
3 Version:        0.2.11.1
4 Release:        1
5 License:        MIT
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
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 jsmacro is pre-processor designed for use with JavaScript
18
19 This tool was developed to meet a desire to strip Debug and Test code
20 from production JavaScript files in an automated manner.
21
22 %prep
23 %setup -qc
24 mv *-%{name}-*/* .
25
26 # fix #!%{_bindir}/env python -> #!%{__python}:
27 %{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_bindir}
32 cp -p %{name}.py $RPM_BUILD_ROOT%{_bindir}/%{name}
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %files
38 %defattr(644,root,root,755)
39 %doc LICENSE.txt README.markdown
40 %attr(755,root,root) %{_bindir}/jsmacro
This page took 0.258954 seconds and 3 git commands to generate.