File votca-csgapps.spec of Package votca-csgapps
#
# votca-csgapps.spec
#
# Copyright (c) 2013-2014 Christoph Junghans
#
# Originally written by Jussi Lehtola <jussilehtola@fedoraproject.org>
# Fixed for multi-distro build by Klaus Kaempf <kkaempf@suse.de>
#
# Licensed under the Apache Software License (ASL 2.0)
#
Name: votca-csgapps
Version: 1.2.4
Release: 0
Summary: VOTCA coarse-graining engine applications
Group: Productivity/Scientific/Chemistry
License: Apache-2.0
URL: http://www.votca.org
Source0: http://downloads.votca.googlecode.com/hg/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gromacs-devel
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: fdupes
BuildRequires: boost-devel >= 1.39.0
BuildRequires: pkgconfig(libvotca_csg) = %{version}
BuildRequires: pkgconfig(libvotca_tools) = %{version}
BuildRequires: cmake
%description
Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
a package intended to reduce the amount of routine work when doing systematic
coarse-graining of various systems. The core is written in C++.
This package contains sample applications of the Coarse Graining Engine of VOTCA package.
%prep
%setup -q
%build
%if %{defined fedora}
mkdir build
cd build
%endif
%if %{undefined cmake}
%define cmake cmake
mkdir build
cd build
%endif
%{cmake} \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=1 ..
make %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
%fdupes %{buildroot}%{_prefix}
%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/*
%changelog