Accepting request 705853 from home:jirislaby:branches:graphics

- add 0001-fix-build-with-gcc-9.patch

OBS-URL: https://build.opensuse.org/request/show/705853
OBS-URL: https://build.opensuse.org/package/show/graphics/librecad?expand=0&rev=52
This commit is contained in:
2019-05-28 09:14:02 +00:00
committed by Git OBS Bridge
parent 1e8a921244
commit 3abee6ac2b
3 changed files with 125 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package librecad
#
# Copyright (c) 2017 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,7 +12,7 @@
# 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/
#
@@ -20,7 +20,7 @@ Name: librecad
Version: 2.1.3
Release: 0
Summary: Computer-aided design (CAD) software package for 2D design and drafting
License: GPL-2.0 and (Apache-2.0 or SUSE-GPL-3.0+-with-font-exception)
License: GPL-2.0-only AND (Apache-2.0 OR SUSE-GPL-3.0+-with-font-exception)
Group: Productivity/Graphics/CAD
Url: http://librecad.org/
@@ -41,6 +41,7 @@ Patch3: librecad-use-system-libdxfrw.patch
Patch4: librecad-install.diff
Patch5: librecad-plugindir.diff
Patch6: librecad-use-system-shapelib.patch
Patch7: 0001-fix-build-with-gcc-9.patch
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
@@ -93,7 +94,7 @@ CAD drawings.
%prep
%setup -qn LibreCAD-%version -a 2 -a 3 -a 4
%patch -P 0 -P 1 -P 2 -P 3 -P 4 -P 5 -p1
%patch -P 0 -P 1 -P 2 -P 3 -P 4 -P 5 -P 7 -p1
%if 0%{?suse_version} >= 1321
%patch -P 6 -p1
%endif
@@ -175,7 +176,8 @@ perl -pi -e "s|image/vnd.dxf|image/vnd.dxf;|" %buildroot%_datadir/applications/l
%files
%defattr(-,root,root)
%doc LICENSE* README.md gpl-2.0* license-lc_opengost-fonts.txt
%doc README.md
%license LICENSE* gpl-2.0* license-lc_opengost-fonts.txt
%_bindir/librecad
%_bindir/ttf2lff
%_libdir/%name