1 Summary: C++ implementation of 3mf loading with SIP Python bindings
7 Source0: https://github.com/Ultimaker/libSavitar/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: 584cd4f3dacdcdbe69edcd42b83a4c6c
9 Patch0: no-pugixml.patch
10 Patch1: system-pugixml.patch
11 Patch2: lib-suffix.patch
12 Patch3: PyQt5-sip.patch
13 URL: https://github.com/Ultimaker/libSavitar
15 BuildRequires: libstdc++-devel
16 BuildRequires: pugixml-devel
17 BuildRequires: python3-devel
18 BuildRequires: python3-sip-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Savitar is a C++ implementation of 3mf loading with SIP Python
24 bindings. 3mf is a 3D printing file format.
27 # The cmake scripts are BSD
28 Summary: Development files for libsavitar
29 License: AGPLv3+ and BSD
30 Group: Development/Libraries
31 Requires: %{name} = %{version}-%{release}
34 Savitar is a C++ implementation of 3mf loading with SIP Python
35 bindings. 3mf is a 3D printing file format.
39 %package -n python3-savitar
40 Summary: Python 3 libSavitar bindings
41 Group: Libraries/Python
42 Requires: %{name} = %{version}-%{release}
44 %description -n python3-savitar
45 Savitar is a C++ implementation of 3mf loading with SIP Python
46 bindings. 3mf is a 3D printing file format.
61 -DCMAKE_SKIP_RPATH:BOOL=ON
65 rm -rf $RPM_BUILD_ROOT
67 %{__make} -C build install \
68 DESTDIR=$RPM_BUILD_ROOT
71 rm -rf $RPM_BUILD_ROOT
73 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
77 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_libdir}/libSavitar.so.*.*.*
80 %attr(755,root,root) %ghost %{_libdir}/libSavitar.so.0
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_libdir}/libSavitar.so
85 %{_includedir}/Savitar
86 %{_libdir}/cmake/Savitar
88 %files -n python3-savitar
89 %defattr(644,root,root,755)
91 %attr(755,root,root) %{py3_sitedir}/Savitar.so