[packages/csstidy] Rel 4

arekm arekm at pld-linux.org
Thu May 21 14:54:30 CEST 2026


commit ef9c3cd226f55541087fff604035ce72c2a8d928
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 14:54:13 2026 +0200

    Rel 4

 csstidy-py3-print.patch | 31 +++++++++++++++++++++++++++++++
 csstidy.spec            |  4 +++-
 2 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/csstidy.spec b/csstidy.spec
index 3d7561a..5b6f381 100644
--- a/csstidy.spec
+++ b/csstidy.spec
@@ -2,7 +2,7 @@ Summary:	Open Source CSS parser and optimiser
 Summary(pl.UTF-8):	Analizator i optymalizator CSS z otwartymi źródłami
 Name:		csstidy
 Version:	1.4
-Release:	3
+Release:	4
 License:	GPL v2+
 Group:		Applications/WWW
 Source0:	http://downloads.sourceforge.net/csstidy/%{name}-source-%{version}.zip
@@ -10,6 +10,7 @@ Source0:	http://downloads.sourceforge.net/csstidy/%{name}-source-%{version}.zip
 Source1:	http://ftp.debian.org/debian/pool/main/c/csstidy/%{name}_%{version}-3.diff.gz
 # Source1-md5:	7087cc0c6cfdb42a3e796621a5d12a09
 Patch0:		scons-optflags.patch
+Patch1:		%{name}-py3-print.patch
 URL:		http://csstidy.sourceforge.net/
 BuildRequires:	libstdc++-devel
 BuildRequires:	scons
@@ -38,6 +39,7 @@ przeznaczony do sprawdzania poprawności CSS.
 %{__patch} -p1 < debian/patches/001_emptyfile.dpatch
 %{__patch} -p1 < debian/patches/002_gcc43fix.dpatch
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %scons
diff --git a/csstidy-py3-print.patch b/csstidy-py3-print.patch
new file mode 100644
index 0000000..4ec8442
--- /dev/null
+++ b/csstidy-py3-print.patch
@@ -0,0 +1,31 @@
+--- csstidy-1.4/SConstruct.orig
++++ csstidy-1.4/SConstruct
+@@ -6,11 +6,11 @@
+
+ #check if the user has been naughty: only 'debug' or 'release' allowed
+ if not (mymode in ['debug', 'release']):
+-    print "Error: expected 'debug' or 'release', found: " + mymode
++    print("Error: expected 'debug' or 'release', found: " + mymode)
+     Exit(1)
+
+ #tell the user what we're doing
+-print '**** Compiling in ' + mymode + ' mode...'
++print('**** Compiling in ' + mymode + ' mode...')
+
+ CXX = ARGUMENTS.get('CXX')
+ CXXFLAGS = ARGUMENTS.get('CXXFLAGS')
+--- csstidy-1.4/csstidy/SConscript.orig
++++ csstidy-1.4/csstidy/SConscript
+@@ -20,10 +20,10 @@
+     localenv.Append(CXXFLAGS=releasecxxflags)
+
+ #specify the build directory
+-localenv.BuildDir(builddir, ".", duplicate=0)
++localenv.VariantDir(builddir, ".", duplicate=0)
+
+ #Figure out all the source files
+-srclst = map(lambda x: builddir + '/' + x, glob.glob('*.cpp'))
++srclst = list(map(lambda x: builddir + '/' + x, glob.glob('*.cpp')))
+
+ #If running win32 get special version information from the .rc
+ if localenv['PLATFORM'] == 'win32':
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/csstidy.git/commitdiff/ef9c3cd226f55541087fff604035ce72c2a8d928



More information about the pld-cvs-commit mailing list