3c6ca06
%global realname pivy
3c6ca06
%global githash 46ddb2c
3c6ca06
%global gitdate 20191108
5efe11c
5efe11c
Name:           python-pivy
d02b009
Version:        0.6.5
9e7223f
Release:        7%{?dist}
5efe11c
Summary:        Python binding for Coin
5efe11c
5efe11c
License:        ISC
d383857
URL:            https://github.com/FreeCAD/pivy
d383857
f018aa2
Source0:        https://github.com/coin3d/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
5efe11c
3b0378d
Patch0:         pivy-cmake.patch
5efe11c
d383857
BuildRequires:  gcc gcc-c++ cmake swig
3c6ca06
BuildRequires:  qt5-qtbase-devel
3b0378d
BuildRequires:  python3-devel
0332c1e
BuildRequires:  Coin4-devel
0332c1e
BuildRequires:  SoQt-devel
0332c1e
BuildRequires:  SIMVoleon-devel
5efe11c
BuildRequires:  libXmu-devel
dcd821f
BuildRequires:  mesa-libEGL-devel
5efe11c
5efe11c
1fb8258
%global _description\
1fb8258
Pivy is a Coin binding for Python. Coin is a high-level 3D graphics library with\
1fb8258
a C++ Application Programming Interface. Coin uses scene-graph data structures\
1fb8258
to render real-time graphics suitable for mostly all kinds of scientific and\
1fb8258
engineering visualization applications.\
5efe11c
1fb8258
%description %_description
1fb8258
d383857
3b0378d
%package -n python3-pivy
1fb8258
Summary: %summary
3b0378d
%{?python_provide:%python_provide python3-pivy}
1fb8258
3b0378d
%description -n python3-pivy %_description
1fb8258
d383857
d383857
%package examples
d383857
Summary: Pivy example files
d383857
d383857
%description examples
d383857
%{summary}
d383857
5efe11c
%prep
f018aa2
%autosetup -p1 -n %{realname}-%{version}
3b0378d
5efe11c
# Examples in the docs folder should not be set executable.
5efe11c
find ./docs -name "*.py" -exec chmod -x {} \;
5efe11c
5efe11c
5efe11c
%build
d383857
sed -i -e 's|QtInfo()|QtInfo(qmake_command=["qmake-qt5"])|g' setup.py
d02b009
export CFLAGS="%{optflags} -fpermissive"
d02b009
%py3_build
5efe11c
5efe11c
5efe11c
%install
d02b009
%py3_install
5efe11c
5efe11c
# Fix install location for x86_64 systems.
b5b991b
%if "%{_lib}" == "lib64"
5efe11c
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
5efe11c
%endif
5efe11c
3b0378d
chmod +x %{buildroot}%{python3_sitearch}/pivy/sogui.py
5efe11c
3b0378d
find %{buildroot}%{python3_sitearch} -name "*.py" -exec sed -i "s|#!/usr/bin/env python|#!%{__python3}|" {} \;
dcd821f
5efe11c
 
3b0378d
%files -n python3-pivy
3b0378d
%license LICENSE
d383857
%doc AUTHORS NEWS README.md THANKS docs/* HACKING
3b0378d
%{python3_sitearch}/pivy/
3b0378d
%{python3_sitearch}/*.egg-info
5efe11c
d383857
%files examples
d383857
%doc examples
d383857
5efe11c
5efe11c
%changelog
9e7223f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-7
9e7223f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9e7223f
123cedb
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.5-6
123cedb
- Rebuilt for Python 3.10
123cedb
ff0cf5e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-5
ff0cf5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ff0cf5e
75b3d9d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-4
75b3d9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
75b3d9d
97866af
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.5-3
97866af
- Rebuilt for Python 3.9
97866af
62a561b
* Thu Apr 02 2020 Björn Esser <besser82@fedoraproject.org> - 0.6.5-2
62a561b
- Fix string quoting for rpm >= 4.16
62a561b
f018aa2
* Wed Feb 05 2020 Richard Shaw <hobbes1069@gmail.com> - 0.6.5-1
f018aa2
- Update to 0.6.5.
f018aa2
29c64fe
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-0.7.20191108git46ddb2c
29c64fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
29c64fe
3c6ca06
* Fri Nov 08 2019 Richard Shaw <hobbes1069@gmail.com> - 0.6.5-0.6.20191108git46ddb2c
3c6ca06
- Move to FreeCAD fork of pivy.
3c6ca06
3c6ca06
* Wed Oct 09 2019 Richard Shaw <hobbes1069@gmail.com> - 0.6.5-0.5
d383857
- Update for Coin4 and dependencies.
d383857
- Move to FreeCAD fork since it is supported.
d383857
- Move examples to a subpackage.
d383857
79ead07
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.5-0.4
79ead07
- Rebuilt for Python 3.8.0rc1 (#1748018)
79ead07
487bb2b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.5-0.3
487bb2b
- Rebuilt for Python 3.8
487bb2b
0112813
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-0.2
0112813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0112813
d02b009
* Wed Feb 06 2019 Richard Shaw <hobbes1069@gmail.com> - 0.6.5-0.1
d02b009
- Update to 0.6.5a0.
d02b009
3b0378d
* Sun Feb 03 2019 Richard Shaw <hobbes1069@gmail.com> - 0.5.0-24.db2e64a4a880
3b0378d
- Update to newer upstream checkout.
3b0378d
- Change to Python 3.
3b0378d
e225345
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-23.hg609
e225345
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e225345
dcd821f
* Fri Dec 07 2018 Richard Shaw <hobbes1069@gmail.com> - 0.5.0-22.hg609
dcd821f
- Fix ambiguous python shebang.
dcd821f
b2dc3f2
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0.5.0-21.hg609
b2dc3f2
- Rebuild with fixed binutils
b2dc3f2
9e8648f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-20.hg609
9e8648f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9e8648f
ea5af40
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-19.hg609
ea5af40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ea5af40
1fb8258
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0-18.hg609
1fb8258
- Python 2 binary package renamed to python2-pivy
1fb8258
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
1fb8258
1ef4477
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-17.hg609
1ef4477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1ef4477
4a8d2a3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-16.hg609
4a8d2a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4a8d2a3
Igor Gnatenko 4d4b260
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.5.0-15.hg609
Igor Gnatenko 4d4b260
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko 4d4b260
8fea546
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-14.hg609
8fea546
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8fea546
e7c4c37
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-13.hg609
e7c4c37
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e7c4c37
7918336
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-12.hg609
7918336
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7918336
5b92daa
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-11.hg609
5b92daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5b92daa
58831ea
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.5.0-10.hg609
58831ea
- Rebuilt for GCC 5 C++11 ABI change
58831ea
f74b4f6
* Sat Feb 28 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.5.0-9.hg609
f74b4f6
- Use Coin3.
f74b4f6
3f70784
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-8.hg609
3f70784
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3f70784
a05b5c8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-7.hg609
a05b5c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a05b5c8
5f7c982
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-6.hg609
5f7c982
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5f7c982
69102f9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-5.hg609
69102f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
69102f9
53b9f04
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-4.hg609
53b9f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
53b9f04
5efe11c
* Wed Apr 18 2012 Richard Shaw <hobbes1069@gmail.com> - 0.5.0-3.hg609
5efe11c
- Change name to python-pivy to meet package naming guidelines.
5efe11c
- Change to correct license in spec file. (BSD->ISC)
5efe11c
5efe11c
* Tue Nov 01 2011 Richard Shaw <hobbes1069@gmail.com> - 0.5.0-1
5efe11c
- Inital release.