]>
Commit | Line | Data |
---|---|---|
a59ff69b ER |
1 | Summary: Opensource CSS parser and optimiser |
2 | Name: csstidy | |
3 | Version: 1.2 | |
cd84e219 | 4 | Release: 0.3 |
a59ff69b ER |
5 | License: GPL v2 |
6 | Group: Applications/WWW | |
00244649 ER |
7 | Source0: http://dl.sourceforge.net/csstidy/%{name}-source-%{version}.zip |
8 | # Source0-md5: cd2e1e50289fdaba0c56dcb293de8c40 | |
cd84e219 | 9 | Patch0: http://ftp.debian.org/debian/pool/main/c/csstidy/%{name}_%{version}-1.diff.gz |
a59ff69b ER |
10 | URL: http://csstidy.sourceforge.net/ |
11 | BuildRequires: libstdc++-devel | |
12 | BuildRequires: sed >= 4.0 | |
a59ff69b ER |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
cd84e219 ER |
16 | csstidy parses and optimises your CSS code, making it cleaner and more |
17 | concise. The end result is a smaller CSS file and better written code. | |
18 | It has a variety of option settings giving the user a significant | |
19 | amount of control over the level of file compression and readability. | |
20 | It is not meant to be a css validator. | |
a59ff69b ER |
21 | |
22 | %prep | |
23 | %setup -qc | |
cd84e219 ER |
24 | %patch0 -p1 |
25 | %{__patch} -p1 < debian/patches/01_Makefiles.dpatch | |
26 | chmod +x configure | |
a59ff69b ER |
27 | |
28 | %build | |
cd84e219 ER |
29 | %configure |
30 | %{__make} | |
a59ff69b ER |
31 | |
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
cd84e219 ER |
34 | %{__make} install \ |
35 | DESTDIR=$RPM_BUILD_ROOT | |
36 | install -D csstidy.layout $RPM_BUILD_ROOT%{_datadir}/%{name}/csstidy.layout | |
a59ff69b ER |
37 | |
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %attr(755,root,root) %{_bindir}/csstidy | |
94e094e1 ER |
44 | %dir %{_datadir}/%{name} |
45 | %{_datadir}/%{name}/csstidy.layout |