]> git.pld-linux.org Git - packages/csstidy.git/blame - csstidy.spec
- add makefile patch and longer description from debian
[packages/csstidy.git] / csstidy.spec
CommitLineData
a59ff69b
ER
1Summary: Opensource CSS parser and optimiser
2Name: csstidy
3Version: 1.2
cd84e219 4Release: 0.3
a59ff69b
ER
5License: GPL v2
6Group: Applications/WWW
00244649
ER
7Source0: http://dl.sourceforge.net/csstidy/%{name}-source-%{version}.zip
8# Source0-md5: cd2e1e50289fdaba0c56dcb293de8c40
cd84e219 9Patch0: http://ftp.debian.org/debian/pool/main/c/csstidy/%{name}_%{version}-1.diff.gz
a59ff69b
ER
10URL: http://csstidy.sourceforge.net/
11BuildRequires: libstdc++-devel
12BuildRequires: sed >= 4.0
a59ff69b
ER
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
cd84e219
ER
16csstidy parses and optimises your CSS code, making it cleaner and more
17concise. The end result is a smaller CSS file and better written code.
18It has a variety of option settings giving the user a significant
19amount of control over the level of file compression and readability.
20It 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
26chmod +x configure
a59ff69b
ER
27
28%build
cd84e219
ER
29%configure
30%{__make}
a59ff69b
ER
31
32%install
33rm -rf $RPM_BUILD_ROOT
cd84e219
ER
34%{__make} install \
35 DESTDIR=$RPM_BUILD_ROOT
36install -D csstidy.layout $RPM_BUILD_ROOT%{_datadir}/%{name}/csstidy.layout
a59ff69b
ER
37
38%clean
39rm -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
This page took 0.068507 seconds and 4 git commands to generate.