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