File OpenMOIV.spec of Package openmoiv
Summary: OpenMOIV is an object-oriented 3D multi-platform toolkit
Name: OpenMOIV
Version: 1.0.3a
Release: 1
License: GNU General Public License ("GPLv2.1")
Group: Productivity/Scientific/Chemistry
URL: http://www.coin3d.org
Source: %name.src.%version.tar.bz2
BuildRequires: gcc-c++ cmake Mesa-devel Coin-devel libCoin60
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
OpenMOIV is an object-oriented 3D multi-platform toolkit that facilitates the rendering and interaction of chemical systems. OpenMOIV is a derived product of Molecular Inventorâ„¢, and it is partially compatible with applications developed using Molecular Inventorâ„¢. Opposing to the original library, OpenMOIV is multi-platform (you can use in any platform that has a version of the Open Inventor toolkit) and independent of the windowing system. It includes a new set of functionalities to work with protein structures and rendering them with a lot of new display styles. Click here for a detailed explanation of OpenMOIV architecture.
OpenMOIV is the result of molecular visualization research of the GTI group of the Universitat Pompeu Fabra (UPF) in Barcelona (Spain). The research was done in the context of the European Union supported project Link3D.
%package devel
License: GPL
Group: Development/Tools/Other
Summary: Development Headers for coin3d
Requires: %name = %{version}
%description devel
Coin is a retained mode 3D graphics rendering library based on
OpenGL. It is implemented in C++ and simultaneously released as Free
Software under the GNU General Public License ("GPL") and under a
Professional Edition License for developers of proprietary
software. The application programmer interface (API) is based on the
API of Open Inventor, the de facto standard 3D graphics library for
complex visualization purposes.
%prep
%setup -q -n %name.src.1.0.3
%build
export OVI_DIR=%_prefix
cmake . -Dshared:int=1 -Dcoin:int=1 -Dsys_fonts:int=1
%__make
%install
%__mkdir -p %{buildroot}%_datadir/OpenMOIV
%__mkdir -p %{buildroot}%_libdir
%__mkdir -p %{buildroot}%_includedir
%__mkdir -p %{buildroot}%_includedir/ChemKit2
%__mkdir -p %{buildroot}%_includedir/ChemKit2/util
%__install -m 0644 include/*.h -t %{buildroot}%_includedir
%__install -m 0644 include/*.inc -t %{buildroot}%_includedir
%__install -m 0644 include/ChemKit2/*.h -t %{buildroot}%_includedir/ChemKit2
%__install -m 0644 include/ChemKit2/util/*.h -t %{buildroot}%_includedir/ChemKit2/util
%__install -m 0644 libChemKit2.so -t %{buildroot}%_libdir
%__install -m 0644 OPENMOIV.LICENSE -t %{buildroot}%_datadir/OpenMOIV
%clean
%__rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%_datadir/OpenMOIV
%files devel
%defattr(-,root,root)
%_libdir/*.so
%_includedir/*.h
%_includedir/*.inc
%_includedir/ChemKit2