%global commit d73a25c61fa6b7f41000b38b4b4c8b32ed4e2fd1 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libdxfrw Version: 1.1.0 Release: 0.2.rc1%{?dist} Summary: Library to read/write DXF files License: GPLv2+ URL: https://github.com/LibreCAD/libdxfrw Source0: https://github.com/LibreCAD/libdxfrw/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: gcc-c++ %if 0%{?epel} == 7 BuildRequires: cmake3 %else BuildRequires: cmake %endif # Fix angle and alignment handling of (m)texts # https://github.com/LibreCAD/libdxfrw/pull/51 Patch0: https://github.com/LibreCAD/libdxfrw/commit/3519af1186871cc4bfd66ee670627816473a1ad8.patch %description libdxfrw is a free C++ library to read and write DXF files in both formats, ASCII and binary form. %package devel Summary: Development files for libdxfrw Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for libdxfrw. %prep %setup -q -n %{name}-%{commit} # Upstream thinks this might not be valid... # %%patch0 -p1 -b .fix-angle-and-alignment-handling-of-mtexts %build %if 0%{?epel} == 7 %cmake3 %cmake3_build %else %cmake %cmake_build %endif %install %if 0%{?epel} == 7 %cmake3_install %else %cmake_install %endif %ldconfig_scriptlets %files %license COPYING %doc AUTHORS ChangeLog README %{_bindir}/dwg2dxf %{_libdir}/*.so.* %{_mandir}/man1/dwg2dxf.* %files devel %{_includedir}/libdxfrw %{_libdir}/cmake/libdxfrw %{_libdir}/*.so %{_libdir}/pkgconfig/libdxfrw.pc %changelog * Fri Dec 30 2022 Tom Callaway - 1.1.0-0.2.rc1 - update to latest code in git - drop patch0 for now * Wed Sep 14 2022 Richard Shaw - 1.1.0-0.1.rc4 - Update to 1.1.0 RC1 per upstream recommendatation. * Thu Jul 21 2022 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Feb 1 2022 Tom Callaway - 1.0.1-3 - apply fixes from upstream, including fix for CVE-2021-45343 * Thu Jan 20 2022 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 22 2021 Tom Callaway - 1.0.1-1 - rebase to new code home, fixes CVE-2021-21898/21899/21900 * Thu Jul 22 2021 Fedora Release Engineering - 0.6.3-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu May 27 2021 Tom Callaway - 0.6.3-18 - disable rpath * Tue Jan 26 2021 Fedora Release Engineering - 0.6.3-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Dec 31 2020 Tom Callaway - 0.6.3-16 - more fixes from LibreCAD git * Wed Nov 4 2020 Tom Callaway - 0.6.3-15 - add all of the current fixes from LibreCAD git * Tue Jul 28 2020 Fedora Release Engineering - 0.6.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 0.6.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.6.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.6.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 12 2018 Tom Callaway - 0.6.3-10 - add fix from librecad for CVE-2018-19105 * Fri Jul 13 2018 Fedora Release Engineering - 0.6.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0.6.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.6.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.6.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Fedora Release Engineering - 0.6.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.6.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jun 6 2016 Tom Callaway - 0.6.3-3 - apply changes from LibreCad 2.1.0 * Thu Feb 04 2016 Fedora Release Engineering - 0.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jan 12 2016 Tom Callaway - 0.6.3-1 - update to 0.6.3 * Fri Sep 11 2015 Tom Callaway - 0.6.1-1 - update to 0.6.1 * Wed Jun 17 2015 Fedora Release Engineering - 0.5.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.5.11-5 - Rebuilt for GCC 5 C++11 ABI change * Thu Mar 26 2015 Kalev Lember - 0.5.11-4 - Rebuilt for GCC 5 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 0.5.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.5.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Jun 2 2014 Tom Callaway - 0.5.11-1 - update to 0.5.11 - resync with librecad changes * Sat Aug 03 2013 Fedora Release Engineering - 0.5.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Apr 30 2013 Tom Callaway - 0.5.7-3 - apply fixes from librecad 2.0.0beta5 * Wed Apr 24 2013 Tom Callaway - 0.5.7-2 - drop empty NEWS and TODO files - force INSTALL to use -p to preseve timestamps * Sun Feb 24 2013 Tom Callaway - 0.5.7-1 - initial package