5efe11c
%global realname Pivy
5efe11c
%global checkout hg609
5efe11c
5efe11c
Name:           python-pivy
5efe11c
Version:        0.5.0
1fb8258
Release:        18.%{checkout}%{?dist}
5efe11c
Summary:        Python binding for Coin
5efe11c
5efe11c
License:        ISC
5efe11c
URL:            http://pivy.coin3d.org/
5efe11c
5efe11c
# No release for some time. Source is a mecurial checkout
5efe11c
# $ hg clone http://hg.sim.no/Pivy/default Pivy
5efe11c
# $ hg archive Pivy-0.5.0-hg609.tar.gz
5efe11c
Source0:        %{realname}-%{version}-%{checkout}.tar.gz
5efe11c
5efe11c
BuildRequires:  python2-devel
f74b4f6
BuildRequires:  Coin3-devel
f74b4f6
BuildRequires:  Coin3-SoQt-devel
f74b4f6
BuildRequires:  Coin3-SIMVoleon-devel
5efe11c
BuildRequires:  libXmu-devel
5efe11c
BuildRequires:  swig
5efe11c
5efe11c
# we don't want to provide private python extension libs
5efe11c
%{?filter_setup:
5efe11c
%filter_provides_in %{python_sitearch}/.*\.so$ 
5efe11c
%filter_setup
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
5efe11c
1fb8258
%description %_description
1fb8258
1fb8258
%package -n python2-pivy
1fb8258
Summary: %summary
1fb8258
%{?python_provide:%python_provide python2-pivy}
1fb8258
1fb8258
%description -n python2-pivy %_description
1fb8258
5efe11c
%prep
5efe11c
%setup -q -n %{realname}-%{version}-%{checkout}
5efe11c
# Examples in the docs folder should not be set executable.
5efe11c
find ./docs -name "*.py" -exec chmod -x {} \;
5efe11c
5efe11c
5efe11c
%build
5efe11c
CFLAGS="%{optflags}" %{__python} setup.py build
5efe11c
5efe11c
5efe11c
%install
5efe11c
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
5efe11c
5efe11c
# Fix install location for x86_64 systems.
5efe11c
%if %{_lib} == "lib64"
5efe11c
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
5efe11c
%endif
5efe11c
5efe11c
chmod +x %{buildroot}%{python_sitearch}/pivy/sogui.py
5efe11c
5efe11c
 
1fb8258
%files -n python2-pivy
5efe11c
%doc AUTHORS examples NEWS README THANKS docs/* HACKING LICENSE
5efe11c
%{python_sitearch}/pivy/
5efe11c
%{python_sitearch}/*.egg-info
5efe11c
5efe11c
5efe11c
%changelog
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.