File myfitter.spec of Package myfitter

#
# spec file for package myfitter
#
# Copyright (c) 2014 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/
#


#
%define soname libmyFitter0

Name:           myfitter
Version:        0.2
Release:        0
Summary:        A C++ class library for maximum likelihood fits
License:        GPL-2.0
Group:          Development/Libraries/C and C++
Url:            http://myfitter.hepforge.org/
Source:         http://www.hepforge.org/archive/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  boost-devel
BuildRequires:  dvegas-devel
BuildRequires:  gcc-c++
BuildRequires:  makeinfo
BuildRequires:  omniORB-devel
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(gsl)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
myFitter is a C++ class library for maximum likelihood fits and the
numerical computation of p-values in likelihood ratio tests.

In some situations the statistical significance (p-value) of a
likelihood ratio test can not be computed analytically. This is, for
example, the case when some parameters of the model are only allowed
to float within a certain range or when the models being compared are
not nested, meaning that neither model can be obtained from the other
by fixing some of its parameters.

myFitter implements a method for efficient numerical computation of
p-values. This method is also applicable in the case of non-nested
models. 

%package -n %{soname}
Summary:        A C++ class library for maximum likelihood fits
Group:          Development/Libraries/C and C++

%description -n %{soname}
myFitter is a C++ class library for maximum likelihood fits and the
numerical computation of p-values in likelihood ratio tests.

In some situations the statistical significance (p-value) of a
likelihood ratio test can not be computed analytically. This is, for
example, the case when some parameters of the model are only allowed
to float within a certain range or when the models being compared are
not nested, meaning that neither model can be obtained from the other
by fixing some of its parameters.

myFitter implements a method for efficient numerical computation of
p-values. This method is also applicable in the case of non-nested
models. 

%package devel
Summary:        A C++ class library for maximum likelihood fits
Group:          Development/Libraries/C and C++
Requires:       %{soname} = %{version}
Requires:       boost-devel
Requires:       pkg-config
Requires:       pkgconfig(dvegas)
Requires:       pkgconfig(gsl)

%description devel
myFitter is a C++ class library for maximum likelihood fits and the
numerical computation of p-values in likelihood ratio tests.

In some situations the statistical significance (p-value) of a
likelihood ratio test can not be computed analytically. This is, for
example, the case when some parameters of the model are only allowed
to float within a certain range or when the models being compared are
not nested, meaning that neither model can be obtained from the other
by fixing some of its parameters.

myFitter implements a method for efficient numerical computation of
p-values. This method is also applicable in the case of non-nested
models.

This package provides the source and header file for development
with %{name}.

%prep
%setup -q

%build
%configure --disable-static --libdir=%{_libdir}
make %{?_smp_mflags}

# DOCUMENTATION IN HTML FORMAT
make %{?_smp_mflags} html

%install
%make_install

# ALSO COPY EXAMPLE AND DOCUMENTATION TO DOC DIR
mkdir -p %{buildroot}/%{_docdir}/%{name}-devel/
cp -r doc/examples %{buildroot}/%{_docdir}/%{name}-devel/
cp -r doc/myFitter.html %{buildroot}/%{_docdir}/%{name}-devel/

find %{buildroot}%{_libdir}/ -name *.la -delete

%post -n %{soname} -p /sbin/ldconfig

%postun -n %{soname} -p /sbin/ldconfig

%files devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog README COPYING
%{_docdir}/%{name}-devel/examples/
%{_docdir}/%{name}-devel/myFitter.html/
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/myFitter.pc

%files -n %{soname}
%defattr(-,root,root)
%{_libdir}/*.so.*

%changelog
openSUSE Build Service is sponsored by