SHA256
8
0
forked from pool/squirrel

Accepting request 729965 from home:cgiboudeaux:fat-lto-objects

- Use -ffat-lto-objects when building static libraries.
- Run spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/729965
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/squirrel?expand=0&rev=18
This commit is contained in:
2019-09-15 07:05:30 +00:00
committed by Git OBS Bridge
parent 225986eb51
commit d93d3d205d
2 changed files with 26 additions and 22 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Sep 10 20:41:25 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
- Use -ffat-lto-objects when building static libraries.
- Run spec-cleaner
-------------------------------------------------------------------
Thu Mar 26 22:45:17 UTC 2015 - p.drouand@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package squirrel
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,29 +12,28 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define tardir SQUIRREL3
%define tarver 3_0_7
Name: squirrel
Version: 3.0.7
Release: 0
Summary: A high level imperative/OO programming language
License: MIT
Group: Development/Languages/Other
Version: 3.0.7
Release: 0
Url: http://squirrel-lang.org/
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: libtool
Source: http://downloads.sourceforge.net/project/squirrel/squirrel3/squirrel%203.0.7%20stable/%{name}_%{tarver}_stable.tar.gz
URL: http://squirrel-lang.org/
Source: http://downloads.sourceforge.net/project/squirrel/squirrel3/squirrel%{203}.0.7%{20}stable/%{name}_%{tarver}_stable.tar.gz
Patch0: squirrel-autoconfiscate.patch.bz2
Patch1: squirrel-aliasing.patch
Patch2: squirrel-ptr_conversion.patch
Patch3: squirrel-rename_binary.patch
Patch4: squirrel-gcc47.patch
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: libtool
%description
Squirrel is a light weight programming language
@@ -44,9 +43,9 @@ threads,exception handling, reference counting and
garbage collection on demand. C-like syntax.
%package devel
Summary: Development files for %name
Summary: Development files for %{name}
Group: Development/Languages/C and C++
Requires: %name = %version
Requires: %{name} = %{version}
%description devel
This package contains everything to embed the Squirrel engine in
@@ -55,7 +54,7 @@ your own application.
%package devel-static
Summary: Static squirrel libraries
Group: Development/Languages/C and C++
Requires: %name = %version
Requires: %{name} = %{version}
%description devel-static
This package contains the static versions of the engine and
@@ -64,7 +63,7 @@ standard lbrary.
%package doc
Summary: Documentation for %{name}
Group: Development/Languages/Other
Requires: %name = %version
Requires: %{name} = %{version}
BuildArch: noarch
%description doc
@@ -73,7 +72,7 @@ Documentation files for squirrel.
%package examples
Summary: Example scripts for %{name}
Group: Development/Languages/Other
Requires: %name = %version
Requires: %{name} = %{version}
BuildArch: noarch
%description examples
@@ -92,18 +91,18 @@ chmod +x configure config.guess config.sub depcomp install-sh ltmain.sh missing
autoreconf -fi
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
export CXXFLAGS="%{optflags} -std=gnu++0x"
export CFLAGS="%{optflags}"
%configure --enable-static
make %{?_smp_mflags}
%install
%makeinstall
install -d %{buildroot}/%{_defaultdocdir}/%name
install -m 644 README HISTORY COPYRIGHT %{buildroot}/%{_defaultdocdir}/%name
%make_install
install -d %{buildroot}/%{_defaultdocdir}/%{name}
install -m 644 README HISTORY COPYRIGHT %{buildroot}/%{_defaultdocdir}/%{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
@@ -126,11 +125,10 @@ install -m 644 README HISTORY COPYRIGHT %{buildroot}/%{_defaultdocdir}/%name
%{_libdir}/*.la
%files doc
%defattr(-,root,root)
%exclude %{_defaultdocdir}/%{name}/README
%exclude %{_defaultdocdir}/%{name}/HISTORY
%exclude %{_defaultdocdir}/%{name}/COPYRIGHT
%{_defaultdocdir}/%name/*
%{_defaultdocdir}/%{name}/*
%files examples
%defattr(644,root,root,755)