Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
science
molekel
molekel.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File molekel.spec of Package molekel
# # spec file for package molekel # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: molekel Version: 5.4.0 Release: 0 Summary: An open-source multi-platform molecular visualization program License: GPL-2.0+ Group: Productivity/Scientific/Chemistry Url: http://molekel.cscs.ch Source: %{name}-%{version}.tar.bz2 # PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches Patch0: vtk.diff # PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches Patch1: shaders.diff BuildRequires: Coin-devel BuildRequires: OpenMOIV-devel BuildRequires: cmake BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: glew-devel BuildRequires: libCoin60 #BuildRequires: libQtWebKit-devel BuildRequires: libopenbabel-devel BuildRequires: libqt4-devel #QtAssistant might be needed for Qt >= 4.7 BuildRequires: qwt-devel BuildRequires: vtk-devel BuildRequires: postgresql-devel %description An open-source multi-platform molecular visualization program developed at Swiss National Supercomputing Centre (CSCS) CSCS website: http://www.cscs.ch %prep %setup -q -n %{name}-%{version} %patch0 %patch1 %build mkdir buildme cd buildme cmake ../src/ \ -DCMAKE_BUILD_TYPE:string=Release \ -DCMAKE_CXX_FLAGS:string="-fpermissive -Wwrite-strings -Wno-deprecated" \ -DCMAKE_CXX_FLAGS_RELEASE:string="-fpermissive -Wwrite-strings -Wno-deprecated" \ -DIV_INCLUDE_DIR:PATH=%{_includedir} \ -DIV_LINK_DIR:PATH=%{_libdir} \ -DMOIV_INCLUDE_DIR:PATH=%{_includedir} \ -DMOIV_LINK_DIR:PATH=%{_libdir} \ -DOPENBABEL_INCLUDE_DIR:PATH=%{_includedir}/openbabel-2.0 \ -DOPENBABEL_LINK_DIR:PATH=%{_libdir} \ -DGLEW_INCLUDE_DIR:PATH=%{_includedir} \ -DGLEW_LINK_DIR:PATH=%{_libdir} \ -DQWT_INCLUDE_DIR:PATH=%{_includedir}/qwt5 \ -DQWT_LINK_DIR:PATH=%{_libdir} \ -DENABLE_DEPTH_PEELING:int=1 #make %{?_smp_mflags} make %install cd buildme mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir}/molekel mkdir -p %{buildroot}%{_libdir}/molekel/bin mkdir -p %{buildroot}%{_libdir}/molekel/doc mkdir -p %{buildroot}%{_libdir}/molekel/resources mkdir -p %{buildroot}%{_libdir}/molekel/resources/toolbar mkdir -p %{buildroot}%{_libdir}/molekel/shaders mkdir -p %{buildroot}%{_libdir}/molekel/data mkdir -p %{buildroot}%{_libdir}/molekel/data/molden_test #install -m 0644 dist/doc/* -t %{buildroot}/%{_libdir}/molekel/doc install -m 0644 dist/resources/*.png -t %{buildroot}%{_libdir}/molekel/resources install -m 0644 dist/resources/*.data -t %{buildroot}%{_libdir}/molekel/resources rm -rf ../all_shaders/.svn install -m 0644 ../all_shaders/* -t %{buildroot}%{_libdir}/molekel/shaders install -m 0644 dist/resources/toolbar/* -t %{buildroot}%{_libdir}/molekel/resources/toolbar rm -rf ../all_data/.svn rm -rf ../all_data/issues install -m 0644 ../all_data/*.* -t %{buildroot}%{_libdir}/molekel/data rm -rf ../all_data/molden_test/.svn install -m 0644 ../all_data/molden_test/*.* -t %{buildroot}%{_libdir}/molekel/data/molden_test install -m 0755 Molekel -t %{buildroot}%{_libdir}/molekel/bin #install -m 0644 install/linux/INSTALL -t %{buildroot}/%{_datadir}/molekel cd %{buildroot}%{_bindir} ln -s %{_libdir}/molekel/bin/Molekel %fdupes %{buildroot} %clean rm -rf %{buildroot} %files %{_libdir}/molekel %{_bindir}/Molekel %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor