Blame libsavitar.spec

0705cb
Name:           libsavitar
93a149
Version:        4.1.0
358ed8
Release:        3%{?dist}
0705cb
Summary:        C++ implementation of 3mf loading with SIP Python bindings
b1e99f
License:        LGPLv3+
0705cb
URL:            https://github.com/Ultimaker/libSavitar
a047ac
Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
0705cb
0705cb
Patch0:         %{name}-no-pugixml.patch
0705cb
3c31be
# https://bugzilla.redhat.com/show_bug.cgi?id=1601917
3c31be
Patch1:         libSavitar-3.5.1-PyQt5.sip.patch
3c31be
0705cb
BuildRequires:  cmake
0705cb
BuildRequires:  dos2unix
0705cb
BuildRequires:  gcc-c++
3c31be
BuildRequires:  git-core
0705cb
BuildRequires:  pugixml-devel
0705cb
BuildRequires:  python3-devel
0705cb
BuildRequires:  python3-sip-devel
0705cb
BuildRequires:  /usr/bin/sip
0705cb
0705cb
%description
0705cb
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
0705cb
3mf is a 3D printing file format.
0705cb
0705cb
%package        devel
0705cb
0705cb
# The cmake scripts are BSD
482f01
License:        LGPLv3+ and BSD
0705cb
0705cb
Summary:        Development files for libsavitar
0705cb
Requires:       %{name}%{?_isa} = %{version}-%{release}
0705cb
0705cb
%description    devel
0705cb
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
0705cb
3mf is a 3D printing file format.
0705cb
0705cb
Development files.
0705cb
0705cb
%package -n     python3-savitar
0705cb
Summary:        Python 3 libSavitar bindings
0705cb
%{?python_provide:%python_provide python3-savitar}
0705cb
0705cb
%description -n python3-savitar
0705cb
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
0705cb
3mf is a 3D printing file format.
0705cb
0705cb
The Python bindings.
0705cb
0705cb
%prep
a047ac
%autosetup -n libSavitar-%{version} -p1 -S git
0705cb
0705cb
# Wrong end of line encoding
0705cb
dos2unix README.md
0705cb
0705cb
# Bundling
0705cb
rm pugixml -rf
0705cb
sed -i 's|"../pugixml/src/pugixml.hpp"|<pugixml.hpp>|g' src/*.cpp src/*.h
0705cb
93a149
# https://github.com/Ultimaker/libSavitar/pull/18
93a149
sed -i 's/Python3_SITELIB/Python3_SITEARCH/' cmake/SIPMacros.cmake
0705cb
0705cb
%build
0705cb
export CXXFLAGS="%{optflags} -Wl,--as-needed"
0705cb
%{cmake} -DCMAKE_SKIP_RPATH:BOOL=ON .
93a149
%make_build
0705cb
0705cb
%install
93a149
%make_install
0705cb
0705cb
%files
0705cb
%license LICENSE
0705cb
%doc README.md
0705cb
%{_libdir}/libSavitar.so.*
0705cb
0705cb
%files devel
0705cb
%license LICENSE cmake/COPYING-CMAKE-SCRIPTS
0705cb
%{_libdir}/libSavitar.so
0705cb
%{_includedir}/Savitar
0705cb
# Own the dir not to depend on cmake:
0705cb
%{_libdir}/cmake
0705cb
0705cb
%files -n python3-savitar
0705cb
%license LICENSE
0705cb
%doc README.md
0705cb
%{python3_sitearch}/Savitar.so
0705cb
0705cb
%changelog
358ed8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-3
358ed8
- Rebuilt for Python 3.8
358ed8
22d281
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
22d281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
22d281
93a149
* Tue Jun 18 2019 Gabriel Féron <feron.gabriel@gmail.com> - 4.1.0-1
93a149
- Update to 4.1.0
93a149
3f7773
* Wed Apr 03 2019 Gabriel Féron <feron.gabriel@gmail.com> - 4.0.0-1
3f7773
- Update to 4.0.0
3f7773
423487
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-2
423487
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
423487
931266
* Sat Jan 26 2019 Gabriel Féron <feron.gabriel@gmail.com> - 3.6.0-1
931266
- Update to 3.6.0
931266
3c31be
* Mon Nov 12 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-2
3c31be
- Use PyQt5.sip (#1601917)
3c31be
48ddad
* Mon Nov 12 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-1
48ddad
- Update to 3.5.1 (#1644323)
48ddad
9c579f
* Tue Aug 28 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-1
9c579f
- Update to 3.4.1 (#1599715)
9c579f
6c5fe8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
6c5fe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6c5fe8
dc5183
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-2
dc5183
- Rebuilt for Python 3.7
dc5183
a24536
* Wed May 02 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-1
a24536
- Update to 3.3.0 (#1571783)
a24536
b1e99f
* Mon Mar 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-2
b1e99f
- Fix license tag (AGPLv3+ to LGPLv3+)
b1e99f
0ef2c8
* Mon Mar 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-1
0ef2c8
- Update to 3.2.1 (#1523886)
0ef2c8
91687d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
91687d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
91687d
60846c
* Sat Dec 09 2017 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-1
60846c
- Update to 3.1.0 (#1523886)
60846c
- Don't sed lib -> lib64 (not needed now)
60846c
2ef0ff
* Mon Oct 23 2017 Miro Hrončok <mhroncok@redhat.com> - 3.0.3-1
2ef0ff
- Update to 3.0.3 (#1505189)
2ef0ff
6fd1db
* Wed Aug 30 2017 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-1
6fd1db
- Update to 2.7.0 (#1486731)
6fd1db
835e84
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-3
835e84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
835e84
10f3b7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
10f3b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
10f3b7
e21760
* Wed Jun 28 2017 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-1
e21760
- Updated to 2.6.1 (#1465417)
e21760
a047ac
* Tue Jun 27 2017 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-1
a047ac
- Updated to 2.6.0 (#1465417)
a047ac
0705cb
* Wed May 03 2017 Miro Hrončok <mhroncok@redhat.com> - 0-0.1.20170501git1ad7ddb
0705cb
- New package