Blob Blame History Raw
%global realname Pivy
%global checkout hg609

Name:           python-pivy
Version:        0.5.0
Release:        8.%{checkout}%{?dist}
Summary:        Python binding for Coin

License:        ISC

# No release for some time. Source is a mecurial checkout
# $ hg clone Pivy
# $ hg archive Pivy-0.5.0-hg609.tar.gz
Source0:        %{realname}-%{version}-%{checkout}.tar.gz

BuildRequires:  python2-devel
BuildRequires:  Coin2-devel
BuildRequires:  SoQt-devel
BuildRequires:  SIMVoleon-devel
BuildRequires:  libXmu-devel
BuildRequires:  swig

# we don't want to provide private python extension libs
%filter_provides_in %{python_sitearch}/.*\.so$ 

Pivy is a Coin binding for Python. Coin is a high-level 3D graphics library with
a C++ Application Programming Interface. Coin uses scene-graph data structures
to render real-time graphics suitable for mostly all kinds of scientific and
engineering visualization applications.

%setup -q -n %{realname}-%{version}-%{checkout}
# Examples in the docs folder should not be set executable.
find ./docs -name "*.py" -exec chmod -x {} \;

CFLAGS="%{optflags}" %{__python} build

%{__python} install -O1 --skip-build --root %{buildroot}

# Fix install location for x86_64 systems.
%if %{_lib} == "lib64"
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}

chmod +x %{buildroot}%{python_sitearch}/pivy/


* Sun Aug 17 2014 Fedora Release Engineering <> - 0.5.0-8.hg609
- Rebuilt for

* Sat Jun 07 2014 Fedora Release Engineering <> - 0.5.0-7.hg609
- Rebuilt for

* Sun Aug 04 2013 Fedora Release Engineering <> - 0.5.0-6.hg609
- Rebuilt for

* Thu Feb 14 2013 Fedora Release Engineering <> - 0.5.0-5.hg609
- Rebuilt for

* Sat Jul 21 2012 Fedora Release Engineering <> - 0.5.0-4.hg609
- Rebuilt for

* Wed Apr 18 2012 Richard Shaw <> - 0.5.0-3.hg609
- Change name to python-pivy to meet package naming guidelines.
- Change to correct license in spec file. (BSD->ISC)

* Tue Nov 01 2011 Richard Shaw <> - 0.5.0-1
- Inital release.