06f8db1
Name: gretl	
aed21ad
Version: 2020d
b2f3449
Release: 1%{?dist}
johannes lips 7629c22
Summary: A tool for econometric analysis	
johannes lips 7629c22
johannes lips 7629c22
License: GPLv3+ and BSD and MIT
johannes lips 7629c22
URL: http://gretl.sourceforge.net/
1046690
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
johannes lips 7629c22
#Licensing of plugins used in gretl
johannes lips 7629c22
Source1: gretl_plugins.txt
johannes lips 7629c22
johannes lips 7629c22
d4d8008
BuildRequires:	bash-completion
johannes lips 7629c22
BuildRequires:	blas-devel
06f8db1
BuildRequires:	desktop-file-utils
johannes lips 7629c22
BuildRequires:	fftw-devel
5bf3582
BuildRequires:	gcc-c++
johannes lips 7629c22
BuildRequires:	gettext
06f8db1
BuildRequires:	glib2-devel
06f8db1
BuildRequires:	gmp-devel
06f8db1
BuildRequires:	gnuplot
06f8db1
BuildRequires:	gtk3-devel
06f8db1
BuildRequires:	gtksourceview3-devel
06f8db1
BuildRequires:	json-glib-devel
06f8db1
BuildRequires:	lapack-devel
247ceba
BuildRequires:	libcurl-devel
johannes lips 7629c22
BuildRequires:	libxml2-devel
johannes lips 7629c22
BuildRequires:	libgnomeui-devel
johannes lips 7629c22
BuildRequires:	mpfr-devel
06f8db1
BuildRequires:	ncurses-devel
06f8db1
BuildRequires:	openmpi-devel
06f8db1
BuildRequires:	readline-devel
247ceba
BuildRequires:	xdg-utils
johannes lips 7629c22
johannes lips 7629c22
Requires: gnuplot
9d843f1
Requires: gtksourceview3
247ceba
Requires: libcurl
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
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
06f8db1
%package openmpi
6f28546
Summary: Binary openmpi files for %{name}
06f8db1
BuildRequires: openmpi-devel
06f8db1
# Require explicitly for dir ownership and to guarantee the pickup of the right runtime
06f8db1
Requires: openmpi
06f8db1
Requires: %{name} = %{version}-%{release}
06f8db1
06f8db1
%description openmpi
06f8db1
This package contains the binary openmpi files for %{name}.
06f8db1
johannes lips 7629c22
%prep
johannes lips 7629c22
%setup -q
johannes lips 7629c22
c497065
CC=mpicc
c497065
CXX=mpic++
c497065
FC=mpifort
c497065
johannes lips 7629c22
%build
06f8db1
# Build OpenMPI version
06f8db1
%{_openmpi_load}
d4d8008
%configure	--disable-static \
06f8db1
		--disable-avx \
d4d8008
	--with-mpi \
d4d8008
	--with-mpi-lib=%{_libdir}/openmpi/lib/ \
d4d8008
	--with-mpi-include=%{_includedir}/openmpi-%_arch/
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
rm -rf %{buildroot}/%{_datadir}/%{name}/doc
johannes lips 7629c22
c497065
#Fix the openmpi binary
c497065
mkdir -p %{buildroot}%{_libdir}/openmpi/bin
c497065
mv %{buildroot}/%{_bindir}/gretlmpi %{buildroot}/%{_libdir}/openmpi/bin/gretl_openmpi
c497065
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
06f8db1
%{_openmpi_unload}
07b0d21
%ldconfig_scriptlets
johannes lips 7629c22
johannes lips 7629c22
johannes lips 7629c22
%files -f %{name}.lang
62e99f5
%{_bindir}/gretl
06f8db1
%{_bindir}/gretlcli
06f8db1
%{_bindir}/gretl_x11
9d843f1
%{_libdir}/gretl-gtk3
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
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*
b0ba99e
%{_datadir}/appdata/gretl.appdata.xml
johannes lips 7629c22
cc69a75
%doc ChangeLog CompatLog README gretl_plugins.txt
johannes lips 7629c22
johannes lips 7629c22
%files devel
johannes lips 7629c22
%{_libdir}/pkgconfig/gretl.pc
johannes lips 7629c22
%{_libdir}/libgretl*.so
johannes lips 7629c22
%{_includedir}/%{name}/
johannes lips 7629c22
7e09593
%files openmpi 
c497065
%{_libdir}/openmpi/bin/gretl_openmpi
johannes lips 7629c22
johannes lips 7629c22
%changelog
aed21ad
* Fri Aug 07 2020 Johannes Lips <hannes@fedoraproject.org> - 2020d-1
aed21ad
- Update to 2020d
aed21ad
b2f3449
* Fri Jul 31 2020 Johannes Lips <hannes@fedoraproject.org> - 2020c-1
b2f3449
- Update to 2020c
b2f3449
9f98376
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2020b-2
9f98376
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9f98376
3672d38
* Sun Apr 12 2020 Johannes Lips <hannes@fedoraproject.org> - 2020b-1
3672d38
- Update to 2020b
3672d38
- changelog cleanup
3672d38
59bb849
* Thu Mar 05 2020 Johannes Lips <hannes@fedoraproject.org> - 2020a-1
59bb849
- Update to 2020a
59bb849
19dc3e2
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019d-2
19dc3e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
19dc3e2
d5a30e1
* Mon Dec 23 2019 Johannes Lips <hannes@fedoraproject.org> - 2019d-1
d5a30e1
- Update to 2019d
d5a30e1
319ddbc
* Wed Oct  9 2019 Jerry James <loganjerry@gmail.com> - 2019c-3
319ddbc
- Rebuild for mpfr 4
319ddbc
569b940
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019c-2
569b940
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
569b940
406308b
* Wed Jul 03 2019 Johannes Lips <hannes@fedoraproject.org> - 2019c-1
406308b
- Update to 2019c
406308b
5bf3582
* Tue May 21 2019 Johannes Lips <hannes@fedoraproject.org> - 2019b-1
5bf3582
- Update to 2019b
5bf3582
25824eb
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2019a-4
25824eb
- Rebuild for readline 8.0
25824eb
da0f91c
* Thu Feb 14 2019 Orion Poplawski <orion@nwra.com> - 2019a-3
da0f91c
- Rebuild for openmpi 3.1.3
da0f91c
dc09850
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019a-2
dc09850
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
dc09850
f62e52f
* Thu Jan 24 2019 Johannes Lips <hannes@fedoraproject.org> - 2019a-1
f62e52f
- Update to 2019a
f62e52f
d4d8008
* Sat Dec 22 2018 Johannes Lips <hannes@fedoraproject.org> - 2018d-1
d4d8008
- Update to 2018d
d4d8008
a45d107
* Tue Sep 04 2018 Johannes Lips <hannes@fedoraproject.org> - 2018c-1
a45d107
- Update to 2018c
a45d107
427d959
* Fri Aug 17 2018 Johannes Lips <hannes@fedoraproject.org> - 2018b-1
427d959
- Update to 2018b
427d959
308c3fe
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2018a-2
308c3fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
308c3fe
0a6db78
* Sat Mar 17 2018 Johannes Lips <hannes@fedoraproject.org> - 2018a-1
0a6db78
- Update to 2018a
394efa4
- removed cephes-patch
0a6db78
62f0216
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017d-3
62f0216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
62f0216
1525b13
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2017d-2
1525b13
- Remove obsolete scriptlets