]> git.pld-linux.org Git - packages/csstidy.git/blob - csstidy.spec
- add makefile patch and longer description from debian
[packages/csstidy.git] / csstidy.spec
1 Summary:        Opensource CSS parser and optimiser
2 Name:           csstidy
3 Version:        1.2
4 Release:        0.3
5 License:        GPL v2
6 Group:          Applications/WWW
7 Source0:        http://dl.sourceforge.net/csstidy/%{name}-source-%{version}.zip
8 # Source0-md5:  cd2e1e50289fdaba0c56dcb293de8c40
9 Patch0:         http://ftp.debian.org/debian/pool/main/c/csstidy/%{name}_%{version}-1.diff.gz
10 URL:            http://csstidy.sourceforge.net/
11 BuildRequires:  libstdc++-devel
12 BuildRequires:  sed >= 4.0
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
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.
21
22 %prep
23 %setup -qc
24 %patch0 -p1
25 %{__patch} -p1 < debian/patches/01_Makefiles.dpatch
26 chmod +x configure
27
28 %build
29 %configure
30 %{__make}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 %{__make} install \
35         DESTDIR=$RPM_BUILD_ROOT
36 install -D csstidy.layout $RPM_BUILD_ROOT%{_datadir}/%{name}/csstidy.layout
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
44 %dir %{_datadir}/%{name}
45 %{_datadir}/%{name}/csstidy.layout
This page took 0.051238 seconds and 3 git commands to generate.