Author: glen Date: Thu Nov 17 12:00:52 2011 GMT Module: packages Tag: HEAD ---- Log message: - new, based on closure-compiler package
---- Files affected: packages/closure-stylesheets: closure-stylesheets.sh (NONE -> 1.1) (NEW), closure-stylesheets.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/closure-stylesheets/closure-stylesheets.sh diff -u /dev/null packages/closure-stylesheets/closure-stylesheets.sh:1.1 --- /dev/null Thu Nov 17 13:00:52 2011 +++ packages/closure-stylesheets/closure-stylesheets.sh Thu Nov 17 13:00:46 2011 @@ -0,0 +1,2 @@ +#!/bin/sh +exec java -jar /usr/share/java/closure-stylesheets.jar "$@" ================================================================ Index: packages/closure-stylesheets/closure-stylesheets.spec diff -u /dev/null packages/closure-stylesheets/closure-stylesheets.spec:1.1 --- /dev/null Thu Nov 17 13:00:52 2011 +++ packages/closure-stylesheets/closure-stylesheets.spec Thu Nov 17 13:00:46 2011 @@ -0,0 +1,52 @@ +# $Revision$, $Date$ +# 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 + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2011/11/17 12:00:46 glen +- new, based on closure-compiler package ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
