]>
Commit | Line | Data |
---|---|---|
305e64f8 ER |
1 | # TODO |
2 | # - build from source: https://code.google.com/p/closure-stylesheets/wiki/BuildingFromSource | |
305e64f8 ER |
3 | Summary: Closure Stylesheets |
4 | Name: closure-stylesheets | |
10360e35 ER |
5 | Version: 20111230 |
6 | Release: 1 | |
305e64f8 ER |
7 | License: Apache v2.0 |
8 | Group: Applications/WWW | |
10360e35 ER |
9 | Source0: https://closure-stylesheets.googlecode.com/files/%{name}-%{version}.jar |
10 | # Source0-md5: eb82b5672843df21ad6fae6eb1547fa1 | |
305e64f8 | 11 | Source1: %{name}.sh |
10360e35 | 12 | Source2: get-source.sh |
305e64f8 ER |
13 | URL: https://code.google.com/p/closure-stylesheets/ |
14 | BuildRequires: rpm-javaprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.300 | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Closure Stylesheets is an extension to CSS that adds variables, | |
21 | functions, conditionals, and mixins to standard CSS. The tool also | |
22 | supports minification, linting, RTL flipping, and CSS class renaming. | |
23 | ||
24 | %prep | |
25 | %setup -qcT | |
26 | ||
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}} | |
30 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name} | |
31 | ||
32 | # jars | |
33 | cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar | |
34 | ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %attr(755,root,root) %{_bindir}/%{name} | |
42 | %{_javadir}/*.jar |