Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9564dfed70 | ||
|
|
a566f2d8cb |
3 changed files with 73 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -0,0 +1,2 @@
|
|||
/csslint.sh
|
||||
/stubbornella-csslint-v0.9.2-0-gf742a8c.tar.gz
|
||||
69
csslint.spec
Normal file
69
csslint.spec
Normal file
|
|
@ -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 <guillaume DOT kulakowski AT fedoraproject DOT org> - 0.9.2-2
|
||||
- Fix attr for Koji build
|
||||
|
||||
* Sun Jan 08 2012 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 0.9.2-1
|
||||
- Upstream 0.9.2
|
||||
|
||||
* Fri Dec 23 2011 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 0.8.5-1
|
||||
- Upstream 0.8.5
|
||||
|
||||
* Fri Nov 18 2011 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 0.8.1-1
|
||||
- Initial packaging
|
||||
2
sources
2
sources
|
|
@ -0,0 +1,2 @@
|
|||
0e356cc1ceace9377212b5b1fb7daeaa csslint.sh
|
||||
6acb781da8d3f4e30bb774361907b06d stubbornella-csslint-v0.9.2-0-gf742a8c.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue