From 73dfeea800936cbdf9bbab0da1d1ff582fa5b6f4 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Sep 12 2008 02:38:58 +0000 Subject: importing csstidy-1.4-1 in EL-5 --- diff --git a/.cvsignore b/.cvsignore index e69de29..71237a5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +csstidy-1.4.tar.gz diff --git a/csstidy-1.4-fix-misc.cpp.patch b/csstidy-1.4-fix-misc.cpp.patch new file mode 100644 index 0000000..82fc19d --- /dev/null +++ b/csstidy-1.4-fix-misc.cpp.patch @@ -0,0 +1,11 @@ +diff -up src/csstidy/misc.cpp.orig src/csstidy/misc.cpp +--- src/csstidy/misc.cpp.orig 2008-09-05 19:07:07.000000000 -0500 ++++ src/csstidy/misc.cpp 2008-09-05 19:07:23.000000000 -0500 +@@ -16,6 +16,7 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + ++#include + #include "csspp_globals.hpp" + + bool escaped(const string &istring, const int pos) diff --git a/csstidy.spec b/csstidy.spec new file mode 100644 index 0000000..5598401 --- /dev/null +++ b/csstidy.spec @@ -0,0 +1,54 @@ +Name: csstidy +Version: 1.4 +Release: 1%{?dist} +Summary: CSS parser and optimizer + +Group: Applications/Internet +License: GPLv2+ +URL: http://csstidy.sourceforge.net +# The developer is ridiculous and puts together this archive on Windows, and fails miserably. +# We repackaged it ourself by doing the following: +# mkdir csstidy-%{version}; cd csstidy-%{version} +# wget http://downloads.sourceforge.net/csstidy/csstidy-source-1.4.zip +# unzip csstidy-source-1.4.zip; rm csstidy-source-1.4.zip +# cd ..; tar czf csstidy-%{version}.tar.gz csstidy-%{version} +Source0: csstidy-%{version}.tar.gz +Patch0: csstidy-1.4-fix-misc.cpp.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gcc-c++ scons + +%description +CSSTidy is an open source CSS parser and optimizer. In opposite to most other +CSS parsers, no regular expressions are used and thus CSSTidy has full CSS2 +support and a higher reliability. + + +%prep +%setup -q +%patch0 -p1 + + +%build +scons + + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{_bindir} +install -cpm 755 release/csstidy/csstidy %{buildroot}%{_bindir}/%{name} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc AUTHORS BUGS ChangeLog COPYING NEWS README TODO +%{_bindir}/%{name} + + +%changelog +* Thu Jul 24 2008 Ian Weller 1.4-1 +- Initial package build. diff --git a/import.log b/import.log new file mode 100644 index 0000000..d3554b0 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +csstidy-1_4-1_fc9:EL-5:csstidy-1.4-1.fc9.src.rpm:1221187092 diff --git a/sources b/sources index e69de29..bd2b422 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +308b82a6ecc7b51650dff87afe1f0a01 csstidy-1.4.tar.gz