File clhep.spec of Package clhep
#
# spec file for package clhep
#
# 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: clhep
Version: 2.2.0.1
Release: 0
Summary: A class library for high energy physics
License: GPL-3.0
Group: Development/Libraries/C and C++
Url: http://proj-clhep.web.cern.ch/proj-clhep/
Source: http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/%{name}-%{version}.tgz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
#BuildRequires: texlive-latex
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
CLHEP is intended to be a set of high energy physics specific foundation and utility classes such as random generators, physics vectors, geometry and linear algebra. CLHEP is structured in a set of packages independent of any external package (interdependencies within CLHEP are allowed under certain conditions).
%package -n clhep-devel
Summary: A class library for high energy physics
Group: Development/Libraries/C and C++
Requires: clhep = %{version}
%description -n clhep-devel
CLHEP is intended to be a set of high energy physics specific foundation and utility classes such as random generators, physics vectors, geometry and linear algebra. CLHEP is structured in a set of packages independent of any external package (interdependencies within CLHEP are allowed under certain conditions).
This package provides the header files and libraries for development of applications using CLHEP.
%prep
%setup -q -n %{version}/CLHEP
#FIX doc permissions
chmod 0644 README ChangeLog
%build
#autoconf
./bootstrap
./configure --prefix=%{_prefix} \
--libdir=%{_libdir} \
--disable-static
make %{?_smp_mflags}
#make docs
%install
%if 0%{sles_version} <= 11
%makeinstall
%else
%make_install
%endif
#make install-docs
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%post -n clhep-devel -p /sbin/ldconfig
%postun -n clhep-devel -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libdir}/libCLHEP*.so
%files -n clhep-devel
%defattr(-,root,root)
%{_includedir}/CLHEP/
%{_bindir}/*
%changelog