]> git.pld-linux.org Git - packages/closure-stylesheets.git/commitdiff
- new, based on closure-compiler package auto/ac/closure-stylesheets-1-0_1 auto/th/closure-stylesheets-1-0_1
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 17 Nov 2011 12:00:46 +0000 (12:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    closure-stylesheets.sh -> 1.1
    closure-stylesheets.spec -> 1.1

closure-stylesheets.sh [new file with mode: 0644]
closure-stylesheets.spec [new file with mode: 0644]

diff --git a/closure-stylesheets.sh b/closure-stylesheets.sh
new file mode 100644 (file)
index 0000000..87d1465
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec java -jar /usr/share/java/closure-stylesheets.jar "$@"
diff --git a/closure-stylesheets.spec b/closure-stylesheets.spec
new file mode 100644 (file)
index 0000000..07d76e2
--- /dev/null
@@ -0,0 +1,42 @@
+# TODO
+# - build from source: https://code.google.com/p/closure-stylesheets/wiki/BuildingFromSource
+%include       /usr/lib/rpm/macros.java
+Summary:       Closure Stylesheets
+Name:          closure-stylesheets
+Version:       1
+Release:       0.1
+License:       Apache v2.0
+Group:         Applications/WWW
+Source0:       https://closure-stylesheets.googlecode.com/files/%{name}.jar
+# Source0-md5: 4c76e8116f73fe288011bc36c54da69b
+Source1:       %{name}.sh
+URL:           https://code.google.com/p/closure-stylesheets/
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Closure Stylesheets is an extension to CSS that adds variables,
+functions, conditionals, and mixins to standard CSS. The tool also
+supports minification, linting, RTL flipping, and CSS class renaming.
+
+%prep
+%setup -qcT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}}
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+# jars
+cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}
+%{_javadir}/*.jar
This page took 0.077689 seconds and 4 git commands to generate.