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