[cscppc] Resolves: #1066026 - initial import

Kamil Dudka kdudka at fedoraproject.org
Thu Mar 27 14:55:40 UTC 2014


commit 8a6f269fc1a0f84a5fd994921a342878fc492c4d
Author: Kamil Dudka <kdudka at redhat.com>
Date:   Thu Mar 27 15:46:49 2014 +0100

    Resolves: #1066026 - initial import
    
    See <https://bugzilla.redhat.com/1066026> for Fedora Review Request.

 .gitignore  |    1 +
 cscppc.spec |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c7c5531 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cscppc-1.0.2.tar.xz
diff --git a/cscppc.spec b/cscppc.spec
new file mode 100644
index 0000000..fa0d131
--- /dev/null
+++ b/cscppc.spec
@@ -0,0 +1,64 @@
+Name:       cscppc
+Version:    1.0.2
+Release:    2%{?dist}
+Summary:    A compiler wrapper that runs cppcheck in background
+
+Group:      Development/Tools
+License:    GPLv3+
+URL:        http://git.fedorahosted.org/cgit/cscppc.git
+Source0:    http://git.fedorahosted.org/cgit/cscppc.git/snapshot/cscppc-1.0.2.tar.xz
+
+# csmock copies the resulting cscppc binary into mock chroot, which may contain
+# an older (e.g. RHEL-5) version of glibc, and it would not dynamically link
+# against the old version of glibc if it was built against a newer one.
+# Therefor we link glibc statically.
+%if (0%{?fedora} >= 12 || 0%{?rhel} >= 6)
+BuildRequires: glibc-static
+%endif
+
+# the --include option was introduced in 1.58
+Requires: cppcheck >= 1.58
+
+%description
+This package contains the cscppc compiler wrapper that runs cppcheck in
+background fully transparently.
+
+%prep
+%setup -q
+
+%build
+make %{?_smp_mflags}                           \
+    CFLAGS="$RPM_OPT_FLAGS"                    \
+    LDFLAGS="$RPM_OPT_FLAGS -static -pthread"
+
+%install
+install -m0755 -d \
+    "$RPM_BUILD_ROOT%{_bindir}"                \
+    "$RPM_BUILD_ROOT%{_datadir}"               \
+    "$RPM_BUILD_ROOT%{_datadir}/cscppc"        \
+    "$RPM_BUILD_ROOT%{_libdir}"                \
+    "$RPM_BUILD_ROOT%{_libdir}/cscppc"
+
+install -m0755 %{name} "$RPM_BUILD_ROOT%{_bindir}"
+install -m0644 default.supp "$RPM_BUILD_ROOT%{_datadir}/cscppc"
+
+for i in c++ cc g++ gcc \
+    %{_arch}-redhat-linux-c++ \
+    %{_arch}-redhat-linux-g++ \
+    %{_arch}-redhat-linux-gcc
+do
+    ln -s ../../bin/cscppc "$RPM_BUILD_ROOT%{_libdir}/cscppc/$i"
+done
+
+%files
+%{_bindir}/cscppc
+%{_datadir}/cscppc
+%{_libdir}/cscppc
+%doc COPYING README
+
+%changelog
+* Mon Mar 10 2014 Kamil Dudka <kdudka at redhat.com> 1.0.2-2
+- abandon RHEL-5 compatibility (#1066026)
+
+* Wed Feb 19 2014 Kamil Dudka <kdudka at redhat.com> 1.0.2-1
+- packaged for Fedora
diff --git a/sources b/sources
index e69de29..7d57a73 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+772ecc7770cce315cc0dac18f7d22586  cscppc-1.0.2.tar.xz


More information about the scm-commits mailing list