From 954e2b5f547279c4b8c359b17f6fea04334efa12 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Sun, 8 Jan 2012 11:33:06 +0100 Subject: [PATCH 1/3] Initial upload --- .gitignore | 2 ++ csslint.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 2 ++ 3 files changed, 70 insertions(+) create mode 100644 csslint.spec diff --git a/.gitignore b/.gitignore index e69de29..b79ab09 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/csslint.sh +/stubbornella-csslint-v0.9.2-0-gf742a8c.tar.gz diff --git a/csslint.spec b/csslint.spec new file mode 100644 index 0000000..53a1145 --- /dev/null +++ b/csslint.spec @@ -0,0 +1,66 @@ +%global github stubbornella-csslint +%global gitcommit f742a8c +%global gitsub 0 + +Name: csslint +Version: 0.9.2 +Release: 1%{?dist} +Summary: Detecting potential problems in CSS code + +Group: Development/Libraries +License: MIT +URL: https://github.com/stubbornella/csslint +Source0: https://github.com/stubbornella/csslint/tarball/v%{version}/%{github}-v%{version}-%{gitsub}-g%{gitcommit}.tar.gz +Source1: %{name}.sh +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +Requires: rhino + + +%description +CSSLint is a tool to help point out problems with your CSS code. It does basic +syntax checking as well as applying a set of rules to the code that look for +problematic patterns or signs of inefficiency. The rules are all pluggable, so +you can easily write your own or omit ones you don't want. + + +%prep +%setup -q -n %{github}-%{gitcommit} +# Executable +cp -p %{SOURCE1} . +sed -i -e 's|@JS_JAR@|%{_datadir}/java/js.jar|g' %{name}.sh +sed -i -e 's|@CSSLINT_RHINO@|%{_datadir}/%{name}/%{name}-rhino.js|g' %{name}.sh + + +%build +# Empty build section, most likely nothing required. + + +%install +install -d %{buildroot}%{_datadir}/%{name} +cp -a release/csslint-rhino.js %{buildroot}%{_datadir}/%{name}/ +install -d %{buildroot}%{_bindir} +cp -a %{name}.sh %{buildroot}%{_bindir}/%{name} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc CHANGELOG README.md +%{_datadir}/%{name} +%{_bindir}/%{name} + + +%changelog +* Sun Jan 08 2012 Guillaume Kulakowski - 0.9.2-1 +- Upstream 0.9.2 + +* Fri Dec 23 2011 Guillaume Kulakowski - 0.8.5-1 +- Upstream 0.8.5 + +* Fri Nov 18 2011 Guillaume Kulakowski - 0.8.1-1 +- Initial packaging diff --git a/sources b/sources index e69de29..58ceaa9 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +0e356cc1ceace9377212b5b1fb7daeaa csslint.sh +6acb781da8d3f4e30bb774361907b06d stubbornella-csslint-v0.9.2-0-gf742a8c.tar.gz From 365cdea3c56909d9acf19789069bbc2c56b3d24b Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Sun, 8 Jan 2012 13:20:42 +0100 Subject: [PATCH 2/3] Fix attr for Koji build --- csslint.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/csslint.spec b/csslint.spec index 53a1145..cbb4b87 100644 --- a/csslint.spec +++ b/csslint.spec @@ -4,7 +4,7 @@ Name: csslint Version: 0.9.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Detecting potential problems in CSS code Group: Development/Libraries @@ -52,10 +52,13 @@ rm -rf %{buildroot} %defattr(-,root,root,-) %doc CHANGELOG README.md %{_datadir}/%{name} -%{_bindir}/%{name} +%attr(755,root,root) %{_bindir}/%{name} %changelog +* Sun Jan 08 2012 Guillaume Kulakowski - 0.9.2-2 +- Fix attr for Koji build + * Sun Jan 08 2012 Guillaume Kulakowski - 0.9.2-1 - Upstream 0.9.2 From 5d38cec1408e568b5483e3742877cb9c1ada1909 Mon Sep 17 00:00:00 2001 From: Guillaume Kulakowski Date: Tue, 17 Jul 2012 11:29:24 +0200 Subject: [PATCH 3/3] Upstream 0.9.8 --- .gitignore | 1 + csslint.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b79ab09..33a5227 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /csslint.sh /stubbornella-csslint-v0.9.2-0-gf742a8c.tar.gz +/stubbornella-csslint-v0.9.8-0-g2a2cac5.tar.gz diff --git a/csslint.spec b/csslint.spec index cbb4b87..10e947f 100644 --- a/csslint.spec +++ b/csslint.spec @@ -1,10 +1,10 @@ %global github stubbornella-csslint -%global gitcommit f742a8c +%global gitcommit 2a2cac5 %global gitsub 0 Name: csslint -Version: 0.9.2 -Release: 2%{?dist} +Version: 0.9.8 +Release: 1%{?dist} Summary: Detecting potential problems in CSS code Group: Development/Libraries @@ -56,6 +56,9 @@ rm -rf %{buildroot} %changelog +* Tue Jul 17 2012 Guillaume Kulakowski - 0.9.8-1 +- Upstream 0.9.8 + * Sun Jan 08 2012 Guillaume Kulakowski - 0.9.2-2 - Fix attr for Koji build diff --git a/sources b/sources index 58ceaa9..44a74d0 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ 0e356cc1ceace9377212b5b1fb7daeaa csslint.sh -6acb781da8d3f4e30bb774361907b06d stubbornella-csslint-v0.9.2-0-gf742a8c.tar.gz +80e10e9008eefd41bbc47435e7f5db17 stubbornella-csslint-v0.9.8-0-g2a2cac5.tar.gz