File unuran.spec of Package unuran

#
# spec file for package ecolab-devel
#
# Copyright (c) 2013 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/
#


# See also http://en.opensuse.org/openSUSE:Shared_library_packaging_policy

Name:           libunuran13
Version:        1.6.0
Release:        0
Summary:        Universal nonuniform random number generator 
License:        MIT
Group:          Development/Libraries/C and C++
Url:            http://statmath.wu-wien.ac.at/unuran/
Source0:        unuran-%{version}.tar.gz
BuildRequires:  gcc-c++
Requires(post): info

%description
The %{name} package contains libraries and header files for
developing applications that use %{name}.

%package devel
Summary:         Universal nonuniform random number generator
Requires: %{name} = %{version}
Requires: glibc-devel
Group:          Development/Libraries/C and C++

%description devel
The %{name} package contains libraries and header files for
developing applications that use %{name}.

%global debug_package %{nil}

%prep
%setup -n unuran-%{version}

%build
%configure --enable-shared --enable-static
make %{?_smp_mflags} 

%install
make %{?_smp_mflags} install DESTDIR="%buildroot"
rm %buildroot/%{_infodir}/dir

%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
/sbin/ldconfig

%postun -p /sbin/ldconfig

%preun
if [ $1 = 0 ] ; then
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi


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

%files devel
%defattr (-,root,root)
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so

%changelog