%define name gretl %define version 1.7.5 %define release %mkrel 1 %define api 1.0 %define major 0 %define libname %mklibname %name %api %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 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 Obsoletes: %mklibname %name 1.0 %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 %build export CFLAGS="%{optflags} -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} %if %mdkversion < 200900 %post %{update_menus} %endif %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun %{clean_menus} %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean rm -rf %{buildroot} %files -f %name.lang %defattr(-,root,root) %doc README ChangeLog %doc doc/* %{_bindir}/* %{_datadir}/%{name} %{_datadir}/applications/mandriva-%{name}.desktop %{_mandir}/man1/* %{_libdir}/gretl-gtk2 %files -n %{libname} %defattr (-,root,root) %_libdir/*%{api}.so.%{major}* %files -n %{develname} %defattr (-,root,root) %{_includedir}/* %_libdir/*.la %_libdir/*.so %_libdir/pkgconfig/gretl.pc %changelog * Sat Jul 12 2008 Funda Wang <fundawang@mandriva.org> 1.7.5-1mdv2009.0 + Revision: 234126 - New version 1.7.5 - drop patch1, it is not needed anymore - fix libname + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * 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