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