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..cbb4b87 --- /dev/null +++ b/csslint.spec @@ -0,0 +1,69 @@ +%global github stubbornella-csslint +%global gitcommit f742a8c +%global gitsub 0 + +Name: csslint +Version: 0.9.2 +Release: 2%{?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} +%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 + +* 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