]> git.pld-linux.org Git - packages/csstidy.git/blobdiff - csstidy.spec
- BR: scons, unzip
[packages/csstidy.git] / csstidy.spec
index 965130bc1e9de6abf39fedf998f9d8bce700b547..f0be47812090aa08d2ad42b13939376e05cd1776 100644 (file)
@@ -1,15 +1,20 @@
-Summary:       Opensource CSS parser and optimiser
+Summary:       Open Source CSS parser and optimiser
+Summary(pl.UTF-8):     Analizator i optymalizator CSS z otwartymi źródłami
 Name:          csstidy
-Version:       1.2
-Release:       0.3
-License:       GPL v2
+Version:       1.4
+Release:       1
+License:       GPL v2+
 Group:         Applications/WWW
-Source0:       http://dl.sourceforge.net/csstidy/%{name}-source-%{version}.zip
-# Source0-md5: cd2e1e50289fdaba0c56dcb293de8c40
-Patch0:                http://ftp.debian.org/debian/pool/main/c/csstidy/%{name}_%{version}-1.diff.gz
+Source0:       http://dl.sourceforge.net/project/csstidy/CSSTidy%20%28C%2B%2B%2C%20stable%29/1.3/%{name}-source-%{version}.zip
+# Source0-md5: 8fcbf5c1c3cafd9232552b3286aabcb9
+Source1:       http://ftp.debian.org/debian/pool/main/c/csstidy/%{name}_%{version}-3.diff.gz
+# Source1-md5: 7087cc0c6cfdb42a3e796621a5d12a09
+Patch0:                scons-optflags.patch
 URL:           http://csstidy.sourceforge.net/
 BuildRequires: libstdc++-devel
+BuildRequires: scons
 BuildRequires: sed >= 4.0
+BuildRequires: unzip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -17,23 +22,31 @@ csstidy parses and optimises your CSS code, making it cleaner and more
 concise. The end result is a smaller CSS file and better written code.
 It has a variety of option settings giving the user a significant
 amount of control over the level of file compression and readability.
-It is not meant to be a css validator.
+It is not meant to be a CSS validator.
+
+%description -l pl.UTF-8
+csstidy analizuje i optymalizuje kod CSS, czyniąc go czystszym i
+bardziej zwięzłym. Efekt końcowy to mniejszy plik CSS i lepiej
+napisany kod. Ma rozmaite ustawienia opcji dające użytkowi znaczącą
+kontrolę nad poziomem kompresji i czytelności pliku. Program nie jest
+przeznaczony do sprawdzania poprawności CSS.
 
 %prep
-%setup -qc
+%setup -qcT
+%{__unzip} -qq %{SOURCE0} || :
+%{__gzip} -dc %{S:1} | %{__patch} -p1
+%{__patch} -p1 < debian/patches/001_emptyfile.dpatch
+%{__patch} -p1 < debian/patches/002_gcc43fix.dpatch
 %patch0 -p1
-%{__patch} -p1 < debian/patches/01_Makefiles.dpatch
-chmod +x configure
 
 %build
-%configure
-%{__make}
+%scons
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
-install -D csstidy.layout $RPM_BUILD_ROOT%{_datadir}/%{name}/csstidy.layout
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -p release/csstidy/csstidy $RPM_BUILD_ROOT%{_bindir}/csstidy
+cp -a debian/csstidy.1 $RPM_BUILD_ROOT%{_mandir}/man1/csstidy.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -41,5 +54,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/csstidy
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/csstidy.layout
+%{_mandir}/man1/csstidy.1*
This page took 0.077849 seconds and 4 git commands to generate.