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