0705cb4
Name:           libsavitar
0e61bff
Version:        5.2.2
3bdc484
Release:        2%{?dist}
0705cb4
Summary:        C++ implementation of 3mf loading with SIP Python bindings
0e61bff
License:        LGPL-3.0-or-later
0705cb4
URL:            https://github.com/Ultimaker/libSavitar
a047ac7
Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
0e61bff
# Python bits
0e61bff
Source1:        https://github.com/Ultimaker/pySavitar/archive/%{version}.tar.gz#/pySavitar-%{version}.tar.gz
0705cb4
0e61bff
# Cmake bits taken from 4.13.1, before upstream went nuts with conan
0e61bff
Source2:        FindSIP.cmake
0e61bff
Source3:        SIPMacros.cmake
0e61bff
Source4:        CMakeLists.txt
0e61bff
Source5:        SavitarConfig.cmake.in
0e61bff
Source6:        COPYING-CMAKE-SCRIPTS
0e61bff
0e61bff
# Actually export symbols into the shared lib
0e61bff
Patch0:         libsavitar-5.2.2-export-fix.patch
0705cb4
0705cb4
BuildRequires:  cmake
0705cb4
BuildRequires:  dos2unix
0705cb4
BuildRequires:  gcc-c++
3c31beb
BuildRequires:  git-core
0705cb4
BuildRequires:  pugixml-devel
0705cb4
BuildRequires:  python3-devel
0705cb4
BuildRequires:  python3-sip-devel
0705cb4
BuildRequires:  /usr/bin/sip
0705cb4
0e61bff
# we add a dependency on setuptools to provide the distutils module for FindSIP.cmake
7386342
BuildRequires:  (python3-setuptools if python3-devel >= 3.12)
7386342
1be19f9
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
1be19f9
%if 0%{?fedora} >= 37 || 0%{?rhel} >= 10
1be19f9
ExcludeArch:    %{ix86}
1be19f9
%endif
1be19f9
219ef48
# Get Fedora 33++ behavior on anything older
219ef48
%undefine __cmake_in_source_build
219ef48
0705cb4
%description
0705cb4
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
0705cb4
3mf is a 3D printing file format.
0705cb4
0705cb4
%package        devel
0705cb4
Summary:        Development files for libsavitar
0705cb4
Requires:       %{name}%{?_isa} = %{version}-%{release}
0e61bff
# The cmake scripts are BSD
0e61bff
License:        LGPL-3.0-or-later AND BSD-3-Clause
0705cb4
0705cb4
%description    devel
0705cb4
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
0705cb4
3mf is a 3D printing file format.
0705cb4
0705cb4
Development files.
0705cb4
0705cb4
%package -n     python3-savitar
0705cb4
Summary:        Python 3 libSavitar bindings
6345860
Requires:       %{name}%{?_isa} = %{version}-%{release}
0705cb4
%{?python_provide:%python_provide python3-savitar}
0705cb4
0705cb4
%description -n python3-savitar
0705cb4
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
0705cb4
3mf is a 3D printing file format.
0705cb4
0705cb4
The Python bindings.
0705cb4
0705cb4
%prep
0e61bff
%autosetup -n libSavitar-%{version} -p1 -S git -a 1
0e61bff
0e61bff
cp -a pySavitar-%{version}/python .
0e61bff
mkdir cmake
0e61bff
cp -a %{SOURCE2} %{SOURCE3} %{SOURCE6} cmake/
0e61bff
rm -rf CMakeLists.txt
0e61bff
cp -a %{SOURCE4} %{SOURCE5} .
0705cb4
0705cb4
# Wrong end of line encoding
0705cb4
dos2unix README.md
0705cb4
Gabriel Féron 93a149f
# https://github.com/Ultimaker/libSavitar/pull/18
Gabriel Féron 93a149f
sed -i 's/Python3_SITELIB/Python3_SITEARCH/' cmake/SIPMacros.cmake
0705cb4
0705cb4
%build
0705cb4
export CXXFLAGS="%{optflags} -Wl,--as-needed"
9e46ac6
%cmake -DCMAKE_SKIP_RPATH:BOOL=ON
219ef48
%cmake_build
0705cb4
0705cb4
%install
219ef48
%cmake_install
0705cb4
0705cb4
%files
0705cb4
%license LICENSE
0705cb4
%doc README.md
0705cb4
%{_libdir}/libSavitar.so.*
0705cb4
0705cb4
%files devel
0705cb4
%license LICENSE cmake/COPYING-CMAKE-SCRIPTS
0705cb4
%{_libdir}/libSavitar.so
0705cb4
%{_includedir}/Savitar
0705cb4
# Own the dir not to depend on cmake:
0705cb4
%{_libdir}/cmake
0705cb4
0705cb4
%files -n python3-savitar
0705cb4
%license LICENSE
0705cb4
%doc README.md
0e61bff
%{python3_sitearch}/pySavitar.so
0705cb4
0705cb4
%changelog
3bdc484
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 5.2.2-2
3bdc484
- Rebuilt for Python 3.12
3bdc484
0e61bff
* Wed Mar  8 2023 Tom Callaway <spot@fedoraproject.org> - 5.2.2-1
0e61bff
- Update to 5.2.2
0e61bff
aacad1a
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.13.1-5
aacad1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
aacad1a
9e9cd4b
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.13.1-4
9e9cd4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9e9cd4b
4187dd9
* Fri Jun 17 2022 Python Maint <python-maint@redhat.com> - 4.13.1-3
4187dd9
- Rebuilt for Python 3.11
4187dd9
9e46ac6
* Mon Mar 28 2022 Miro Hrončok <mhroncok@redhat.com> - 4.13.1-2
9e46ac6
- Fix build failure with cmake 3.23+
9e46ac6
- Fixes: rhbz#2069148
9e46ac6
Gabriel Féron 93d314e
* Tue Feb 01 2022 Gabriel Féron <feron.gabriel@gmail.com> - 4.13.1-1
Gabriel Féron 93d314e
- Update to 4.13.1
Gabriel Féron 93d314e
Gabriel Féron de52a5d
* Thu Jan 20 2022 Gabriel Féron <feron.gabriel@gmail.com> - 4.13.0-1
Gabriel Féron de52a5d
- Update to 4.13.0
Gabriel Féron de52a5d
feef9bf
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.12.1-2
feef9bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
feef9bf
Gabriel Féron aa04c25
* Mon Dec 13 2021 Gabriel Féron <feron.gabriel@gmail.com> - 4.12.1-1
Gabriel Féron aa04c25
- Update to 4.12.1
Gabriel Féron aa04c25
Gabriel Féron ec95b02
* Wed Sep 15 2021 Gabriel Féron <feron.gabriel@gmail.com> - 4.11.0-1
Gabriel Féron ec95b02
- Update to 4.11.0
Gabriel Féron ec95b02
Gabriel Féron 30c2016
* Mon Aug 16 2021 Gabriel Féron <feron.gabriel@gmail.com> - 4.10.0-1
Gabriel Féron 30c2016
- Update to 4.10.0
Gabriel Féron 30c2016
e4d4c52
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.1-2
e4d4c52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e4d4c52
Gabriel Féron 79ae47b
* Thu Jun 10 2021 Gabriel Féron <feron.gabriel@gmail.com> - 4.9.1-1
Gabriel Féron 79ae47b
- Update to 4.9.1
Gabriel Féron 79ae47b
a2d8612
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.9.0-2
a2d8612
- Rebuilt for Python 3.10
a2d8612
Gabriel Féron 16db7cf
* Mon Apr 26 2021 Gabriel Féron <feron.gabriel@gmail.com> - 4.9.0-1
Gabriel Féron 16db7cf
- Update to 4.9.0
Gabriel Féron 16db7cf
917757e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-2
917757e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
917757e
c97d8a8
* Tue Dec 22 2020 Jan Pazdziora <jpazdziora@redhat.com> - 4.8.0-1
c97d8a8
- Update to 4.8.0
c97d8a8
27903ce
* Thu Sep 03 2020 Miro Hrončok <mhroncok@redhat.com> - 4.7.1-1
27903ce
- Update to 4.7.1
27903ce
Gabriel Féron 87fc137
* Mon Aug 31 2020 Gabriel Féron <feron.gabriel@gmail.com> - 4.7.0-1
Gabriel Féron 87fc137
- Update to 4.7.0
Gabriel Féron 87fc137
d7e68ab
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.1-3
d7e68ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d7e68ab
c34a3d7
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.6.1-2
c34a3d7
- Rebuilt for Python 3.9
c34a3d7
Gabriel Féron 87fc137
* Tue May 5 2020 Gabriel Féron <feron.gabriel@gmail.com> - 4.6.1-1
Gabriel 7edb896
- Update to 4.6.1
Gabriel 7edb896
Gabriel 0f91cab
* Tue Apr 21 2020 Gabriel Féron <feron.gabriel@gmail.com> - 4.6.0-1
Gabriel 0f91cab
- Update to 4.6.0
Gabriel 0f91cab
fe75cdf
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2
fe75cdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
fe75cdf
Gabriel Féron 018c77d
* Thu Nov 21 2019 Gabriel Féron <feron.gabriel@gmail.com> - 4.4.0-1
Gabriel Féron 018c77d
- Update to 4.4.0
Gabriel Féron 018c77d
6345860
* Fri Nov 01 2019 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-4
6345860
- Make the dependency of python3-savitar on libsavitar strict (#1767762)
6345860
358ed81
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-3
358ed81
- Rebuilt for Python 3.8
358ed81
22d2819
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
22d2819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
22d2819
Gabriel Féron 93a149f
* Tue Jun 18 2019 Gabriel Féron <feron.gabriel@gmail.com> - 4.1.0-1
Gabriel Féron 93a149f
- Update to 4.1.0
Gabriel Féron 93a149f
Gabriel Féron 3f77737
* Wed Apr 03 2019 Gabriel Féron <feron.gabriel@gmail.com> - 4.0.0-1
Gabriel Féron 3f77737
- Update to 4.0.0
Gabriel Féron 3f77737
4234877
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-2
4234877
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4234877
Gabriel Feron 9312664
* Sat Jan 26 2019 Gabriel Féron <feron.gabriel@gmail.com> - 3.6.0-1
Gabriel Feron 9312664
- Update to 3.6.0
Gabriel Feron 9312664
3c31beb
* Mon Nov 12 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-2
3c31beb
- Use PyQt5.sip (#1601917)
3c31beb
48ddade
* Mon Nov 12 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-1
48ddade
- Update to 3.5.1 (#1644323)
48ddade
9c579fd
* Tue Aug 28 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-1
9c579fd
- Update to 3.4.1 (#1599715)
9c579fd
6c5fe89
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
6c5fe89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6c5fe89
dc51834
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-2
dc51834
- Rebuilt for Python 3.7
dc51834
a24536a
* Wed May 02 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-1
a24536a
- Update to 3.3.0 (#1571783)
a24536a
b1e99fb
* Mon Mar 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-2
b1e99fb
- Fix license tag (AGPLv3+ to LGPLv3+)
b1e99fb
0ef2c83
* Mon Mar 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-1
0ef2c83
- Update to 3.2.1 (#1523886)
0ef2c83
91687db
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
91687db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
91687db
60846cd
* Sat Dec 09 2017 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-1
60846cd
- Update to 3.1.0 (#1523886)
60846cd
- Don't sed lib -> lib64 (not needed now)
60846cd
2ef0ff0
* Mon Oct 23 2017 Miro Hrončok <mhroncok@redhat.com> - 3.0.3-1
2ef0ff0
- Update to 3.0.3 (#1505189)
2ef0ff0
6fd1db5
* Wed Aug 30 2017 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-1
6fd1db5
- Update to 2.7.0 (#1486731)
6fd1db5
835e843
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-3
835e843
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
835e843
10f3b78
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
10f3b78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
10f3b78
e217602
* Wed Jun 28 2017 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-1
e217602
- Updated to 2.6.1 (#1465417)
e217602
a047ac7
* Tue Jun 27 2017 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-1
a047ac7
- Updated to 2.6.0 (#1465417)
a047ac7
0705cb4
* Wed May 03 2017 Miro Hrončok <mhroncok@redhat.com> - 0-0.1.20170501git1ad7ddb
0705cb4
- New package