Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > a0cd90ed1cdc0db1fa5266d9d1ffb73d > files > 4

gretl-1.6.5-2mdv2008.1.src.rpm

%define name	gretl
%define version	1.6.5
%define release	%mkrel 2

%define major	1.0

%define libname		%mklibname %name %major
%define develname	%mklibname %name -d

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	Econometric analysis tool
License:	GPLv2+
Group:		Sciences/Other
Source0:	http://prdownloads.sourceforge.net/gretl/%{name}-%{version}.tar.bz2
# Recent cputoolize cannot handle variables in AC_CONFIG_AUX_DIR: 
# patch removes the $srcdir variable from this setting in configure.in
# - AdamW 2007/11
Patch0:		gretl-1.6.5-cputoolize.patch
# From FreeBSD: fix gfortran detection test - AdamW 2007/11
Patch1:		gretl-1.6.5-gfortran.patch
URL:		http://gretl.sourceforge.net/
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	libpng-devel
BuildRequires:	gtk+2-devel
BuildRequires:	glib2-devel
BuildRequires:	blas-devel
BuildRequires:	libfftw-devel
BuildRequires:	libxml2-devel
BuildRequires:	lapack-devel
BuildRequires:	libreadline-devel
BuildRequires:	termcap-devel
BuildRequires:	libgmp-devel
BuildRequires:	libmpfr-devel
BuildRequires:	gnuplot

%description
Gretl is a software package for econometric analysis, written in the 
C programming language. 

%package -n %{libname}
Summary: Shared library for gretl
License: GPLv2+
Group: System/Libraries

%description -n %{libname}
Gretl is a software package for econometric analysis, written in the 
C programming language.

%package -n %{develname}
Summary: Development headers for gretl library
License: GPLv2+
Group: Development/C
Provides:	lib%{name}-devel
Provides:	%{name}-devel
Requires:	%{libname} = %{version}
Obsoletes:	%{mklibname gretl 1.0 -d}

%description -n %{develname}
Gretl is a software package for econometric analysis, written in the 
C programming language.

%prep
rm -rf %{buildroot}
%setup -q
%patch0 -p1 -b .cputoolize
%patch1 -p0 -b .gfortran

%build
# required by patch1
autoconf
CFLAGS="$RPM_OPT_FLAGS -fPIC" %configure2_5x
%make
%make doc

%install
%__rm -rf %{buildroot}
%makeinstall

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Gretl
Comment=Econometric analysis tool
Exec=%{_bindir}/%{name} 
Icon=mathematics_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Education;Science;DataVisualization;
EOF

%find_lang %{name}
 
%post 
%{update_menus}

%post -n %{libname} -p /sbin/ldconfig
 
%postun 
%{clean_menus}

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

%clean
rm -rf %{buildroot}

%files -f %name.lang
%defattr(-,root,root)
%doc README ChangeLog EXTENDING
%doc doc/*
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_mandir}/man1/*
%{_libdir}/gretl-gtk2

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

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


%changelog
* Mon Nov 12 2007 Adam Williamson <awilliamson@mandriva.com> 1.6.5-2mdv2008.1
+ Revision: 108322
- add gfortran.patch to fix gfortran detection test (from FreeBSD)
- oops - didn't meant to put autoreconf in there.
- add cputoolize.patch to fix a problem with configure.in that stops cputoolize working
- buildrequires blas-devel, not libblas-devel
- rebuild for new lapack
- new devel policy
- new license policy
- spec clean

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill desktop-file-validate's error: string list key "Categories" in group "Desktop Entry" does not have a semicolon (";") as trailing character
    - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'

* Sun May 20 2007 Adam Williamson <awilliamson@mandriva.com> 1.6.5-1mdv2008.0
+ Revision: 28753
- add termcap to BuildRequires to fix readline support and hence build (thanks per oyvind)
- move pkgconfig file out of main package to devel package
- move non-library stuff out of lib package to main package
- build with -fPIC to fix x86-64 build
- add XDG menu
- correct groups for lib / devel packages
- improve description
- fix BuildRequires
- rebuild to fix #26200
- 1.6.5


* Thu Apr 13 2006 Jerome Soyer <saispo@mandriva.org> 1.5.1-1mdk
- New release 1.5.1

* Thu Jul 21 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.4.1-1mdk
- New release 1.4.1

* Wed Feb 23 2005 Lenny Cartier <lenny@mandrakesoft.com> 1.3.2-1mdk
- 1.3.2

* Thu Jan 13 2005 Lenny Cartier <lenny@mandrakesoft.com> 1.3.0-1mdk
- 1.3.0

* Sat Dec 27 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.2.0-1mdk
- 1.2.0