Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 5405e666d86d692e7079377cf91ef25a > files > 6

numexp-core-0.16.1-6mdv2010.1.src.rpm

%define	version	0.16.1
%define release	%mkrel 6

%define major	0
%define libname %mklibname numexp %major
%define develname %mklibname -d numexp

Summary:	Family of open-source applications for numeric computation
Name:		numexp-core
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Sciences/Mathematics
URL:		http://numexp.sourceforge.net/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

Source:		http://prdownloads.sourceforge.net/numexp/%{name}-%{version}.tar.bz2
Patch0:		numexp-core-0.16.1-no-install-hook.patch
Patch1:		numexp-core-0.16.1-fix-format-errors.patch
Patch2:		numexp-core-0.16.1-fix-linking.patch
Patch3:		%{name}-0.16.0-Makefile-path.patch

BuildRequires:	gmp-devel
BuildRequires:	gsl-devel >= 1.4
BuildRequires:	libbonobo2_x-devel
BuildRequires:	readline-devel
BuildRequires:	termcap-devel
BuildRequires:	popt-devel
BuildRequires:	flex
BuildRequires:	python-base
BuildRequires:	perl-XML-LibXML
BuildRequires:	perl-XML-DT >= 0.26
BuildRequires:	perl-DB_File >= 1.803
BuildRequires:	mpfr-devel
Requires:	%{libname} = %{version}

%description
This package is part of the NumExp project, which could be described as a
mathematical computation environment or even as a programming language.

It contains the backend kernel and a simple text client.
No GUI or graphics are available here.

%package	-n %{libname}
Summary:	Family of open-source applications for numeric computation
Group:		Sciences/Mathematics
Provides:	libnumexp = %{version}-%{release}
Requires:	%{name} = %{version}

%description	-n %{libname}
This package is part of the NumExp project, which could be described as a
mathematical computation environment or even as a programming language.

It contains the core libraries, which are necessary for any application that
uses NumExp.

%package	-n %{develname}
Summary:	Family of open-source applications for numeric computation
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	numexp-devel = %{version}-%{release}
Provides:	libnumexp-devel = %{version}-%{release}
Requires:	%{libname} = %{version}
Obsoletes:	%{libname}-devel

%description	-n %{develname}
This package contains header and development files of NumExp.
It is necessary only if you want to compile programs that uses NumExp.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p0

%build
autoreconf -fi
%configure2_5x
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%{find_lang} %{name}

# remove files not distributed
rm -f %{buildroot}%{_libdir}/orbit-2.0/*.la \
      %{buildroot}%{_libdir}/numexp/modules/*.la \

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%files -f %{name}.lang
%defattr(-,root,root)
%doc README
%{_bindir}/*
%{_libexecdir}/numexp-kernel
%{_libdir}/bonobo/servers/*.server
%{_prefix}/lib/numexp
%{_libdir}/orbit-2.0/*.so
%{_datadir}/idl/*.idl
%{_datadir}/%{name}
%{_sysconfdir}/*

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

%files -n %{develname}
%defattr(-,root,root)
%doc ChangeLog
%{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_libdir}/pkgconfig/*
%{_includedir}/*


%changelog
* Mon Sep 14 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.16.1-6mdv2010.0
+ Revision: 440351
- rebuild

* Sat Mar 14 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.16.1-5mdv2009.1
+ Revision: 354794
- fix format and linking errors

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Mon Feb 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.16.1-2mdv2008.1
+ Revision: 171003
- rebuild
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Wed Jul 25 2007 Funda Wang <fwang@mandriva.org> 0.16.1-1mdv2008.0
+ Revision: 55456
- New version 0.16.1

* Wed Jul 25 2007 Funda Wang <fwang@mandriva.org> 0.16.0-2mdv2008.0
+ Revision: 55157
- More provides for devel package

* Tue Jul 24 2007 Funda Wang <fwang@mandriva.org> 0.16.0-1mdv2008.0
+ Revision: 54899
- numexp installed in /usr/lib rather than /usr/$LIB
- New version
- drop old patches
- add patch3 to fix install path
- BuildRequires mpfr
- New version


* Mon Aug 22 2005 Abel Cheung <deaddog@mandriva.org> 0.11.0-1mdk
- New release 0.11.0
- Patch2: gcc 4.0 fix

* Wed Feb 09 2005 Abel Cheung <deaddog@mandrake.org> 0.10.0-2mdk
- rebuild

* Wed Oct 27 2004 Abel Cheung <deaddog@mandrake.org> 0.10.0-1mdk
- New version
- Patch1: Adds detection for berkeley db 4.2 (and use shared lib)

* Thu Oct 16 2003 Abel Cheung <deaddog@deaddog.org> 0.9.0-1mdk
- First Mandrake spec
- Patch0: Avoid segfault when loading empty config file