[pcc/f15] Update to newest CVS snapshot.
Jussi Lehtola
jussilehtola at fedoraproject.org
Fri Dec 16 12:17:51 UTC 2011
commit 5a3db648cbcd2a642dcb5be3adcb9d9c12584117
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date: Fri Dec 16 14:17:50 2011 +0200
Update to newest CVS snapshot.
pcc.spec | 33 +++++++++++++++++++++------------
sources | 4 ++--
2 files changed, 23 insertions(+), 14 deletions(-)
---
diff --git a/pcc.spec b/pcc.spec
index 58a2aca..1cab674 100644
--- a/pcc.spec
+++ b/pcc.spec
@@ -1,3 +1,6 @@
+# Add --with pcc option to build with pcc (for sanity testing the compiler)
+%bcond_with pcc
+
# Use our own configure in order to prevent --target, which makes autotools believe we are cross compiling
%global pccconfigure \
export CFLAGS="${FLAGS}"; \
@@ -5,29 +8,32 @@
export FFLAGS="${FLAGS} -I%{_fmoddir}"; \
./configure --program-prefix= --prefix=%{_prefix} --exec-prefix=%{_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir}
-# Use pcc to build? (This option is for sanity testing the compiler)
-%global usepcc 0
+# Used CVS snapshot
+%global snapshot 20111216
+
# RPM does not play well with pcc compiled package
-%if %{usepcc}
+%if %{with pcc}
%define debug_package %{nil}
%endif
# Release tag
-%global rel 1
+%define rel 2.%{snapshot}cvs
Name: pcc
Version: 1.0.0
-%if %{usepcc}
-Release: %{rel}_pcc%{?dist}.1
+
+%if %{with pcc}
+Release: %{rel}_pcc%{?dist}
%else
Release: %{rel}%{?dist}
%endif
+
Summary: The Portable C Compiler
Group: Development/Languages
License: BSD with advertising and BSD and ISC
URL: http://pcc.ludd.ltu.se/
-Source0: ftp://pcc.ludd.ltu.se/pub/pcc-releases/pcc-%{version}.tgz
-Source1: ftp://pcc.ludd.ltu.se/pub/pcc-releases/pcc-libs-%{version}.tgz
+Source0: http://pcc.ludd.ltu.se/ftp/pub/pcc/pcc-%{snapshot}.tgz
+Source1: http://pcc.ludd.ltu.se/ftp/pub/pcc-libs/pcc-libs-%{snapshot}.tgz
# Patch to disable the use of -g on pcc-libs-090805/csu/linux/crtbegin.c which is partly assembler code
Patch0: pcc-090808-optflags.patch
@@ -37,7 +43,7 @@ ExclusiveArch: %{ix86} x86_64
BuildRequires: bison flex
Requires: glibc-devel
-%if %{usepcc}
+%if %{with pcc}
BuildRequires: pcc
%endif
@@ -60,11 +66,11 @@ students at LuleƄ University of Technology (LTU).
Caution: the compiler is still undergoing heavy development.
%prep
-%setup -q -a1
+%setup -q -n pcc-%{snapshot} -a1
# Get rid of the default optimization flag
find . -name Makefile.in |xargs sed -i 's| -O | |g'
# Rename the libs directory for the patch to work
-mv pcc-libs-%{version} pcc-libs
+mv pcc-libs-%{snapshot} pcc-libs
# Apply patch
%patch0 -p1
@@ -79,7 +85,7 @@ export archdir=i386
%endif
# Use pcc to build?
-%if %{usepcc}
+%if %{with pcc}
export FLAGS="-g"
export CC="pcc"
export CPP="pcc -E"
@@ -135,6 +141,9 @@ rm -rf %{buildroot}
%{_mandir}/man1/pcc.1.*
%changelog
+* Fri Dec 16 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.0-2.20111216cvs
+- Use cvs checkout once again, fixing BZ #708305.
+
* Fri Apr 01 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.0-1
- Switch to using stable releases.
- Update to 1.0.
diff --git a/sources b/sources
index f58b87b..a7a8424 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-6e5d851ee57fe58702fe4e80ecd1f852 pcc-1.0.0.tgz
-a8dfcd6d3be512bc3f16f96c9abf132e pcc-libs-1.0.0.tgz
+2a290e5e357a4fea497bd098ff91ebda pcc-20111216.tgz
+148c7f5eba87cb73f027f2541c65e33e pcc-libs-20111216.tgz
More information about the scm-commits
mailing list