LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File BALLView.spec of Package BALLView (Project home:siegel)

# norootforbuild

Name:           BALLView
License:        LGPL-2.1+
Group:          Productivity/Scientific/Chemistry
Summary:        Molecular viewer and modeller written in C++ and Qt
Version:        0
Release:        0
Source:         ball-%version.tar.xz
Source1:        BALLView.desktop
Patch0:         lib64.diff
Patch1:         dso.diff
Patch2:         python.diff
BuildRequires:  gcc-c++
#BuildRequires:  llvm-clang
BuildRequires:  libqt4-devel, libQtWebKit-devel, cmake, gsl-devel, Mesa-devel, glew-devel, python-devel
BuildRequires:  eigen3-devel, fftw3-devel, lpsolve-devel, libblas3, liblapack3
BuildRequires:  boost-devel, fdupes, freeglut-devel, flex, bison, python-sip-devel, doxygen, graphviz
BuildRequires:  texlive-latex, texlive-dvips, texlive-collection-latexextra, texlive-collection-fontsrecommended
Url:            https://ball-project.org/
BuildRoot:      %_tmppath/%name-%version-build


%description
BALLView is an molecular viewer and modeller written in C++ and Qt. It is developed in close collaboration by the
Saarland University and the Eberhard-Karls University Tübingen. It is the graphical frontend to the
BALL library (Biochemical ALgorithms Library) and is especially geared towards the use for biochemistry.
The library has now been developed since more than 10 years and features many, very mature core classes for
dealing with molecular structures.

%package doc
License:        LGPL-2.1+
Group:          Productivity/Scientific/Chemistry
Summary:        Documentation and more for molecular viewer and modeller written in C++ and Qt
Requires:    %name = %version
Obsoletes:   %name-doc < %version

%description doc
documentation, examples and tutorials

BALLView is an molecular viewer and modeller written in C++ and Qt. It is developed in close collaboration by the
Saarland University and the Eberhard-Karls University Tübingen. It is the graphical frontend to the
BALL library (Biochemical ALgorithms Library) and is especially geared towards the use for biochemistry.
The library has now been developed since more than 10 years and features many, very mature core classes for
dealing with molecular structures.

%package devel
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Summary:        Headers for molecular viewer and modeller written in C++ and Qt
Requires:    %name = %version
Obsoletes:   %name-devel < %version
Recommends:  %name-doc = %version

%description devel

Headers for
BALLView is an molecular viewer and modeller written in C++ and Qt. It is developed in close collaboration by the
  Saarland University and the Eberhard-Karls University Tübingen. It is the graphical frontend to the
  BALL library (Biochemical ALgorithms Library) and is especially geared towards the use for biochemistry.
  The library has now been developed since more than 10 years and features many, very mature core classes for
  dealing with molecular structures.


%prep
%setup -q -n ball-%version
# this should be activated only for 64 bit
%ifarch x86_64
%patch0
%endif
%patch1
%patch2
sed -i 's;xxxxxx;python%{py_ver};g' source/PYTHON/EXTENSIONS/CMakeLists.txt

%build
#export CC=clang
#export CXX=clang++
# try to work around https://svn.boost.org/trac/boost/ticket/10382
%cmake -DCXX_USE_TR1:BOOL=OFF
%make_jobs
%make_jobs doc_tutorial

%install
%cmake_install
%__mkdir -p %buildroot/%_datadir/applications
%__install  -m 0644  %{S:1} %buildroot/%_datadir/applications
mv $RPM_BUILD_ROOT/usr/lib/cmake/BALL $RPM_BUILD_ROOT/usr/share/BALL/cmake
rmdir $RPM_BUILD_ROOT/usr/lib/cmake
#rmdir $RPM_BUILD_ROOT/usr/lib
%fdupes $RPM_BUILD_ROOT

%clean
%__rm -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%files
%defattr(-,root,root)
%_datadir/applications/*.desktop
%dir %_datadir/BALL
%_datadir/BALL/data

%_libdir/libVIEW.so.*
%_libdir/libBALL.so.*
%_libdir/python%{py_ver}
%_bindir/BALLView
%_libdir/BALL
%_libdir/plugin*.so

%files doc
%defattr(-,root,root)
%_datadir/BALL/doc


%files devel
%defattr(-,root,root)
%_includedir/BALL
%_datadir/BALL/cmake
%_libdir/libBALL.so
%_libdir/libVIEW.so


%changelog