rpms/csstidy/devel csstidy-1.4-optflags.patch, NONE, 1.1 csstidy.spec, 1.2, 1.3

Ville Skyttä scop at fedoraproject.org
Mon Jun 1 19:54:36 UTC 2009


Author: scop

Update of /cvs/pkgs/rpms/csstidy/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19595

Modified Files:
	csstidy.spec 
Added Files:
	csstidy-1.4-optflags.patch 
Log Message:
* Thu Apr 30 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.4-3
- Build with %{optflags}, %{_smp_mflags} (#498487).


csstidy-1.4-optflags.patch:

--- NEW FILE csstidy-1.4-optflags.patch ---
diff -up csstidy-1.4/SConstruct~ csstidy-1.4/SConstruct
--- csstidy-1.4/SConstruct~	2007-07-10 18:20:54.000000000 +0300
+++ csstidy-1.4/SConstruct	2009-04-30 20:31:48.000000000 +0300
@@ -13,7 +13,8 @@ if not (mymode in ['debug', 'release']):
 print '**** Compiling in ' + mymode + ' mode...'
 
 debugcflags = ['-Wall', '-g', '-pedantic']   #extra compile flags for debug
-releasecflags = ['-O2']         #extra compile flags for release
+import os
+releasecflags = os.getenv('RPM_OPT_FLAGS').split() #extra compile flags for release
 
 env = Environment()
 


Index: csstidy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/csstidy/devel/csstidy.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- csstidy.spec	24 Feb 2009 10:03:07 -0000	1.2
+++ csstidy.spec	1 Jun 2009 19:54:06 -0000	1.3
@@ -1,6 +1,6 @@
 Name:           csstidy
 Version:        1.4
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        CSS parser and optimizer
 
 Group:          Applications/Internet
@@ -14,6 +14,7 @@ URL:            http://csstidy.sourcefor
 #   cd ..; tar czf csstidy-%{version}.tar.gz csstidy-%{version}
 Source0:        csstidy-%{version}.tar.gz
 Patch0:         csstidy-1.4-fix-misc.cpp.patch
+Patch1:         csstidy-1.4-optflags.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gcc-c++ scons
@@ -27,10 +28,11 @@ support and a higher reliability.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 
 %build
-scons
+scons %{?_smp_mflags}
 
 
 %install
@@ -50,6 +52,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Apr 30 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.4-3
+- Build with %%{optflags}, %%{_smp_mflags} (#498487).
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list