]> git.pld-linux.org Git - packages/csstidy.git/blob - csstidy.spec
- up to 1.4 from debian
[packages/csstidy.git] / csstidy.spec
1 # TODO
2 # - optlfags
3 Summary:        Open Source CSS parser and optimiser
4 Summary(pl.UTF-8):      Analizator i optymalizator CSS z otwartymi źródłami
5 Name:           csstidy
6 Version:        1.4
7 Release:        0.3
8 License:        GPL v2+
9 Group:          Applications/WWW
10 Source0:        http://dl.sourceforge.net/project/csstidy/CSSTidy%20%28C%2B%2B%2C%20stable%29/1.3/%{name}-source-%{version}.zip
11 # Source0-md5:  7087cc0c6cfdb42a3e796621a5d12a09
12 Source1:        http://ftp.debian.org/debian/pool/main/c/csstidy/%{name}_%{version}-3.diff.gz
13 # Source1-md5:  8fcbf5c1c3cafd9232552b3286aabcb9
14 URL:            http://csstidy.sourceforge.net/
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  sed >= 4.0
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 csstidy parses and optimises your CSS code, making it cleaner and more
21 concise. The end result is a smaller CSS file and better written code.
22 It has a variety of option settings giving the user a significant
23 amount of control over the level of file compression and readability.
24 It is not meant to be a CSS validator.
25
26 %description -l pl.UTF-8
27 csstidy analizuje i optymalizuje kod CSS, czyniąc go czystszym i
28 bardziej zwięzłym. Efekt końcowy to mniejszy plik CSS i lepiej
29 napisany kod. Ma rozmaite ustawienia opcji dające użytkowi znaczącą
30 kontrolę nad poziomem kompresji i czytelności pliku. Program nie jest
31 przeznaczony do sprawdzania poprawności CSS.
32
33 %prep
34 %setup -qcT
35 %{__unzip} -qq %{SOURCE0} || :
36 %{__gzip} -dc %{S:1} | %{__patch} -p1
37 %{__patch} -p1 < debian/patches/001_emptyfile.dpatch
38 %{__patch} -p1 < debian/patches/002_gcc43fix.dpatch
39
40 %build
41 %scons
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
46 install -p release/csstidy/csstidy $RPM_BUILD_ROOT%{_bindir}/csstidy
47 cp -a debian/csstidy.1 $RPM_BUILD_ROOT%{_mandir}/man1/csstidy.1
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_bindir}/csstidy
55 %{_mandir}/man1/csstidy.1*
This page took 0.062366 seconds and 3 git commands to generate.