File cint.spec of Package cint

#
# spec file for package cint
#
# Copyright (c) 2011 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:           cint
Version:        5.18.00
Release:        1
License:        MIT
Summary:        C/C++ Interpreter
Url:            http://root.cern.ch/drupal/content/cint
Group:          Development/Languages/C and C++
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  readline-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# The build segfaults on ppc64 during an invocation of cint:
# https://savannah.cern.ch/bugs/index.php?70542
ExcludeArch:    ppc64

%description
CINT is a C/C++ interpreter which is aimed at processing C/C++ scripts. Scripts
are programs which perform specific tasks. Generally execution time is not
critical, but rapid development is. Using an interpreter the compile and link
cycle is dramatically reduced facilitating rapid development. CINT makes C/C++
programming enjoyable even for part-time programmers.

%prep
%setup -q

%build
# This is a custom configure script
./configure --prefix=%{_prefix} \
            --libdir=%{_libdir} \
            --readlinelib=%{_libdir}/libreadline.so
%ifarch %{arm} x86_64
export RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -fPIC"
%endif
echo "G__CFG_CFLAGS := ${RPM_OPT_FLAGS}" >> Makefile.conf
echo "G__CFG_CXXFLAGS := ${RPM_OPT_FLAGS} -DG__GNUREADLINE" >> Makefile.conf
make %{_smp_mflags}

%install
install -D -m 0755 bin/cint %{buildroot}%{_bindir}/cint
install -D -m 0755 lib/libCint.so %{buildroot}%{_libdir}/libCint.so
install -D -m 0644 doc/man1/cint.1 %{buildroot}%{_mandir}/man1/cint.1

# Docs
install -d %{buildroot}%{_docdir}/%{name}
install -m 0644 COPYING README.txt RELNOTE.txt %{buildroot}%{_docdir}/%{name}

%files
%defattr(-,root,root)
%{_bindir}/cint
%{_libdir}/libCint*
%{_mandir}/man1/cint.1%{ext_man}
%doc %{_docdir}/%{name}

%changelog
openSUSE Build Service is sponsored by