johannes lips 7629c22
Name: gretl		
247ceba
Version: 1.9.11
490b603
Release: 1%{?dist}
johannes lips 7629c22
Summary: A tool for econometric analysis	
johannes lips 7629c22
johannes lips 7629c22
Group: Applications/Engineering
johannes lips 7629c22
License: GPLv3+ and BSD and MIT
johannes lips 7629c22
URL: http://gretl.sourceforge.net/
johannes lips 7629c22
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
johannes lips 7629c22
#Licensing of plugins used in gretl
johannes lips 7629c22
Source1: gretl_plugins.txt
johannes lips 7629c22
johannes lips 7629c22
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
johannes lips 7629c22
4f54683
BuildRequires:  desktop-file-utils
johannes lips 7629c22
BuildRequires:	gtk2-devel
johannes lips 7629c22
BuildRequires:	glib2-devel
johannes lips 7629c22
BuildRequires:	blas-devel
johannes lips 7629c22
BuildRequires:	fftw-devel
johannes lips 7629c22
BuildRequires:	gettext
247ceba
BuildRequires:	libcurl-devel
johannes lips 7629c22
BuildRequires:	libxml2-devel
350f712
BuildRequires:	gtksourceview2-devel
johannes lips 7629c22
BuildRequires:	libgnomeui-devel
johannes lips 7629c22
BuildRequires:	lapack-devel
johannes lips 7629c22
BuildRequires:	readline-devel
johannes lips 7629c22
BuildRequires:	ncurses-devel
johannes lips 7629c22
BuildRequires:	gmp-devel
johannes lips 7629c22
BuildRequires:	mpfr-devel
johannes lips 7629c22
BuildRequires:	gnuplot
247ceba
BuildRequires:	gnu-free-sans-fonts
247ceba
BuildRequires:	bitstream-vera-sans-mono-fonts
247ceba
BuildRequires:	bitstream-vera-sans-fonts
247ceba
BuildRequires:	xdg-utils
johannes lips 7629c22
johannes lips 7629c22
Requires: gnuplot
4616fa5
Requires: gtksourceview2
johannes lips 7629c22
Requires: gnu-free-sans-fonts
247ceba
Requires: libcurl
johannes lips 7629c22
Requires: bitstream-vera-sans-mono-fonts
johannes lips 7629c22
Requires: bitstream-vera-sans-fonts
johannes lips 7629c22
johannes lips 7629c22
%description
johannes lips 7629c22
A cross-platform software package for econometric analysis, 
johannes lips 7629c22
written in the C programming language.
johannes lips 7629c22
johannes lips 7629c22
%package devel
johannes lips 7629c22
Summary: Development files for %{name}
johannes lips 7629c22
Group: Development/Libraries
johannes lips 7629c22
Requires: %{name} = %{version}-%{release}
johannes lips d2962bf
Requires: pkgconfig
johannes lips 7629c22
johannes lips 7629c22
%description devel
johannes lips 7629c22
This package contains the development files for %{name}.
johannes lips 7629c22
johannes lips 7629c22
%prep
johannes lips 7629c22
%setup -q
johannes lips d2962bf
johannes lips 7629c22
johannes lips 7629c22
%build
johannes lips 7629c22
%configure --disable-static
johannes lips 7629c22
make %{?_smp_mflags}
johannes lips 7629c22
cp %{SOURCE1} %{_builddir}/%{name}-%{version}/gretl_plugins.txt
johannes lips 7629c22
johannes lips 7629c22
johannes lips 7629c22
johannes lips 7629c22
%install
johannes lips 7629c22
rm -rf %{buildroot}
johannes lips 7629c22
make install DESTDIR=%{buildroot}
johannes lips 7629c22
%find_lang %{name}
johannes lips 7629c22
rm -rf %{buildroot}/%{_libdir}/libgretl*.la
johannes lips 7629c22
rm -rf %{buildroot}/%{_libdir}/gretl-gtk2/*.la
johannes lips 7629c22
johannes lips 7629c22
#font installation
johannes lips 7629c22
rm -rf %{buildroot}/%{_datadir}/%{name}/fonts/*
johannes lips 7629c22
ln -s %{_datadir}/fonts/bitstream-vera/Vera.ttf %{buildroot}/%{_datadir}/%{name}/fonts/Vera.ttf
johannes lips 7629c22
ln -s %{_datadir}/fonts/bitstream-vera/VeraMono.ttf %{buildroot}/%{_datadir}/%{name}/fonts/VeraMono.ttf
johannes lips 7629c22
ln -s %{_datadir}/fonts/gnu-free/FreeSans.ttf %{buildroot}/%{_datadir}/%{name}/fonts/FreeSans.ttf
johannes lips 7629c22
johannes lips 7629c22
rm -rf %{buildroot}/%{_datadir}/%{name}/doc
johannes lips 7629c22
johannes lips 7629c22
desktop-file-install						\
johannes lips 7629c22
--remove-category="Application;Science;Econometrics" \
johannes lips 7629c22
--add-category="Education;Science;Math;Economy;"  \
johannes lips 7629c22
--dir=%{buildroot}%{_datadir}/applications     \
johannes lips 7629c22
%{buildroot}/%{_datadir}/applications/gretl.desktop
johannes lips 7629c22
247ceba
%post 
247ceba
/sbin/ldconfig
247ceba
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
247ceba
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
johannes lips 7629c22
247ceba
%postun 
247ceba
/sbin/ldconfig
247ceba
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
247ceba
if [ $1 -eq 0 ] ; then
247ceba
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
247ceba
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
247ceba
fi
247ceba
247ceba
%posttrans
247ceba
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
johannes lips 7629c22
johannes lips 7629c22
johannes lips 7629c22
johannes lips 7629c22
%clean
johannes lips 7629c22
rm -rf %{buildroot}
johannes lips 7629c22
johannes lips 7629c22
johannes lips 7629c22
%files -f %{name}.lang
johannes lips 7629c22
%defattr(-,root,root,-)
johannes lips 7629c22
%{_bindir}/gretl*
johannes lips 7629c22
%{_libdir}/gretl-gtk2
johannes lips 7629c22
%{_datadir}/%{name}/
johannes lips 7629c22
%{_mandir}/man1/*.gz
johannes lips 7629c22
%{_libdir}/libgretl-1.0.so.*
247ceba
%{_datadir}/mime/packages/gretl.xml
350f712
%{_datadir}/gtksourceview-2.0/language-specs/*.lang
247ceba
%{_datadir}/icons/hicolor/32x32/apps/gretl.png
247ceba
%{_datadir}/icons/hicolor/32x32/mimetypes/*.png
247ceba
%{_datadir}/icons/hicolor/48x48/apps/gretl.png
247ceba
%{_datadir}/icons/hicolor/64x64/apps/gretl.png
johannes lips 7629c22
%{_datadir}/applications/gretl*
johannes lips 7629c22
johannes lips 7629c22
%doc ChangeLog CompatLog README.audio README gretl_plugins.txt
johannes lips 7629c22
johannes lips 7629c22
%files devel
johannes lips 7629c22
%defattr(-,root,root,-)
johannes lips 7629c22
%{_libdir}/pkgconfig/gretl.pc
johannes lips 7629c22
%{_libdir}/libgretl*.so
johannes lips 7629c22
%{_includedir}/%{name}/
johannes lips 7629c22
johannes lips 7629c22
johannes lips 7629c22
%changelog
247ceba
* Wed Nov 21 2012 Johannes Lips <hannes@fedoraproject.org> - 1.9.11-1
247ceba
- Update to 1.9.11
490b603
4682885
* Sat Jun 02 2012 Johannes Lips <hannes@fedoraproject.org> 1.9.9-1
4682885
- Update to recent upstream version
4682885
4616fa5
* Sun Apr 29 2012 Johannes Lips <hannes@fedoraproject.org> 1.9.8-2
4616fa5
- fixed the requirement of gtksourceview2 
4616fa5
4f54683
* Thu Mar 29 2012 Johannes Lips <hannes@fedoraproject.org> 1.9.8-1
4f54683
- Update to recent upstream version
4f54683
0734b06
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.7-2
0734b06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0734b06
ea6e8fa
* Thu Dec 22 2011 Johannes Lips <Johannes.Lips googlemail com> 1.9.7-1
ea6e8fa
- Update to recent upstream version
ea6e8fa
34e32fd
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.9.6-1.1
34e32fd
- rebuild with new gmp without compat lib
34e32fd
350f712
* Mon Oct 17 2011 Johannes Lips <Johannes.Lips googlemail com> 1.9.6-1
350f712
- Update to recent upstream version
350f712
- switch to gtksourceview2
350f712
db7b50e
* Tue Oct 11 2011 Peter Schiffer <pschiffe@redhat.com> - 1.9.5-1.1
db7b50e
- rebuild with new gmp
db7b50e
johannes lips 15361bf
* Sat Apr 23 2011 Johannes Lips <Johannes.Lips googlemail com> 1.9.5-1
johannes lips 15361bf
- Update to recent upstream version
johannes lips 15361bf
johannes lips fbe0d67
* Fri Feb 25 2011 Johannes Lips <Johannes.Lips googlemail com> 1.9.4-1
johannes lips fbe0d67
- Update to recent upstream version
johannes lips fbe0d67
68722af
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.3-2
68722af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
68722af
johannes lips 3b44d25
* Mon Nov 30 2010 Johannes Lips <Johannes.Lips googlemail com> 1.9.3-1
johannes lips 3b44d25
- update to recent upstream version
johannes lips 3b44d25
johannes lips d2962bf
* Mon Nov 08 2010 Johannes Lips <Johannes.Lips googlemail com> 1.9.2-1
johannes lips d2962bf
- update to recent upstream version
johannes lips d2962bf
- removed the patches because everything was fixed upstream
Jesse Keating 412bd13
johannes lips 7629c22
* Sat Sep 11 2010 Johannes Lips <Johannes.Lips googlemail com> 1.9.1-6
johannes lips 7629c22
- added the patch from Peter Lemenkov to remove the plugin lad.c
johannes lips 7629c22
johannes lips 7629c22
* Sat Sep 11 2010 Johannes Lips <Johannes.Lips googlemail com> 1.9.1-5
johannes lips 7629c22
- removed the bundled fonts and symlinked system fonts
johannes lips 7629c22
- added gretl_plugins.txt regarding the license of gretl plugins
johannes lips 7629c22
- changed the Group of the devel package to Development/Libraries
johannes lips 7629c22
johannes lips 7629c22
* Fri Sep 10 2010 Johannes Lips <Johannes.Lips googlemail com> 1.9.1-4
johannes lips 7629c22
- removed *.la files, bundled fonts and doc directory
johannes lips 7629c22
- fixed the .desktop file
johannes lips 7629c22
- removed duplicate COPYING file
johannes lips 7629c22
- added gtksourceview as a requirement
johannes lips 7629c22
- added the licenses for Minpack (BSD), mpack (MIT), rq (MIT)
johannes lips 7629c22
johannes lips 7629c22
* Thu Sep 09 2010 Johannes Lips <Johannes.Lips googlemail com> 1.9.1-3
johannes lips 7629c22
- removed the static library
johannes lips 7629c22
- fixed the sourceforge url
johannes lips 7629c22
- restructured the %%files section
johannes lips 7629c22
johannes lips 7629c22
johannes lips 7629c22
* Thu Sep 09 2010 Johannes Lips <Johannes.Lips googlemail com> 1.9.1-2
johannes lips 7629c22
- split into an extra devel package
johannes lips 7629c22
- changed the license
johannes lips 7629c22
- added the url to the upstream bugreport
johannes lips 7629c22
- fixed the %%files section
johannes lips 7629c22
- usage of the %%find_lang macro to package language files
johannes lips 7629c22
johannes lips 7629c22
* Sat Aug 28 2010 Johannes Lips <Johannes.Lips googlemail com> 1.9.1-1
johannes lips 7629c22
- initial fedora spec