]> git.pld-linux.org Git - packages/closure-stylesheets.git/blob - closure-stylesheets.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/closure-stylesheets.git] / closure-stylesheets.spec
1 # TODO
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
6 Version:        20111230
7 Release:        1
8 License:        Apache v2.0
9 Group:          Applications/WWW
10 Source0:        https://closure-stylesheets.googlecode.com/files/%{name}-%{version}.jar
11 # Source0-md5:  eb82b5672843df21ad6fae6eb1547fa1
12 Source1:        %{name}.sh
13 Source2:        get-source.sh
14 URL:            https://code.google.com/p/closure-stylesheets/
15 BuildRequires:  rpm-javaprov
16 BuildRequires:  rpmbuild(macros) >= 1.300
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
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.
24
25 %prep
26 %setup -qcT
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}}
31 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
32
33 # jars
34 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
35 ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files
41 %defattr(644,root,root,755)
42 %attr(755,root,root) %{_bindir}/%{name}
43 %{_javadir}/*.jar
This page took 0.067193 seconds and 3 git commands to generate.