2 # - build from source: https://code.google.com/p/closure-stylesheets/wiki/BuildingFromSource
3 %include /usr/lib/rpm/macros.java
4 Summary: Closure Stylesheets
5 Name: closure-stylesheets
9 Group: Applications/WWW
10 Source0: https://closure-stylesheets.googlecode.com/files/%{name}-%{version}.jar
11 # Source0-md5: eb82b5672843df21ad6fae6eb1547fa1
13 Source2: get-source.sh
14 URL: https://code.google.com/p/closure-stylesheets/
15 BuildRequires: rpm-javaprov
16 BuildRequires: rpmbuild(macros) >= 1.300
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Closure Stylesheets is an extension to CSS that adds variables,
22 functions, conditionals, and mixins to standard CSS. The tool also
23 supports minification, linting, RTL flipping, and CSS class renaming.
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}}
31 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
34 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
35 ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
38 rm -rf $RPM_BUILD_ROOT
41 %defattr(644,root,root,755)
42 %attr(755,root,root) %{_bindir}/%{name}