besser82 pushed to swig (f20). "Enable ccache-swig by default, if ccache is installed (#1176861)"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Apr 3 20:34:41 UTC 2015


>From ea6707da27034d83154929d8e843a1811952e236 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <bjoern.esser at gmail.com>
Date: Tue, 10 Feb 2015 09:19:01 +0100
Subject: Enable ccache-swig by default, if ccache is installed (#1176861)


diff --git a/swig.spec b/swig.spec
index 99b8053..824b7ab 100644
--- a/swig.spec
+++ b/swig.spec
@@ -32,7 +32,7 @@
 Summary: Connects C/C++/Objective C to some high-level programming languages
 Name:    swig
 Version: 3.0.5
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv3+ and BSD
 URL:     http://swig.sourceforge.net/
 Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
@@ -176,9 +176,14 @@ help2man -N --section 1 ./h2m_helper --include %{SOURCE1} -o %{name}.1
 mkdir -p %{buildroot}%{_mandir}/man1/
 install -p -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/
 
+# Enable ccache-swig by default, if ccache is installed.
+mkdir -p %{buildroot}%{_libdir}/ccache
+ln -fs ../../bin/ccache-swig %{buildroot}%{_libdir}/ccache/swig
+
 %files
 %{_bindir}/*
 %{_datadir}/swig
+%{_libdir}/ccache
 %{_mandir}/man1/ccache-swig.1*
 %{_mandir}/man1/swig.1*
 %doc ANNOUNCE CHANGES CHANGES.current LICENSE LICENSE-GPL
@@ -188,8 +193,11 @@ install -p -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/
 %doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT
 
 %changelog
+* Tue Feb 10 2015 Björn Esser <bjoern.esser at gmail.com> - 3.0.5-2
+- Enable ccache-swig by default, if ccache is installed (#1176861)
+
 * Tue Feb 03 2015 Jitka Plesnikova <jplesnik at redhat.com> - 3.0.5-1
-- Update to 3.0.5
+- Update to 3.0.5 (#1178440)
 
 * Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 3.0.2-3
 - Rebuild for boost 1.57.0
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/swig.git/commit/?h=f20&id=ea6707da27034d83154929d8e843a1811952e236


More information about the scm-commits mailing list