GDAL package built
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
%define build_refman 1
|
|
||||||
%define bashcompletiondir %{_sysconfdir}/bash_completion.d
|
%define bashcompletiondir %{_sysconfdir}/bash_completion.d
|
||||||
|
|
||||||
Name: gdal
|
Name: gdal
|
||||||
Version: 3.0.2
|
Version: 3.0.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
#define debug_package #{nil}
|
#define debug_package #{nil}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -12,11 +11,9 @@ URL: http://www.gdal.org
|
|||||||
Source0: %name-%{version}.tar.gz
|
Source0: %name-%{version}.tar.gz
|
||||||
|
|
||||||
|
|
||||||
#BuildRequires: armadillo-devel
|
|
||||||
BuildRequires: freexl-devel
|
BuildRequires: freexl-devel
|
||||||
BuildRequires: bash-completion
|
BuildRequires: bash-completion
|
||||||
BuildRequires: libzstd-devel
|
BuildRequires: libzstd-devel
|
||||||
#BuildRequires: cfitsio-devel
|
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
@@ -39,14 +36,8 @@ BuildRequires: python3-numpy
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: sqlite-devel
|
BuildRequires: sqlite-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
%if %{build_refman}
|
|
||||||
BuildRequires: texlive-latex
|
Obsoletes: gdal < 3
|
||||||
BuildRequires: texlive-collection-fontsrecommended
|
|
||||||
%if 0%{?fedora}
|
|
||||||
BuildRequires: texlive-collection-langcyrillic
|
|
||||||
BuildRequires: texlive-collection-langportuguese
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global DONT_REMOVE_RPATH 1
|
%global DONT_REMOVE_RPATH 1
|
||||||
# don't check for rpath:
|
# don't check for rpath:
|
||||||
@@ -84,16 +75,35 @@ This package contains the GDAL file format library.
|
|||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
./configure \
|
||||||
--bindir=%{_bindir} \
|
--datadir=%{_datadir}/%{name} \
|
||||||
--sbindir=%{_sbindir} \
|
|
||||||
--includedir=%{_includedir}/%{name} \
|
--includedir=%{_includedir}/%{name} \
|
||||||
--datadir=%{_datadir}/%{name}
|
--prefix=%{_prefix} \
|
||||||
|
--libdir=%{_libdir} \
|
||||||
|
--sysconfdir=%{_sysconfdir} \
|
||||||
|
--localstatedir=%{_var} \
|
||||||
|
--with-curl \
|
||||||
|
--with-freexl \
|
||||||
|
--with-geos \
|
||||||
|
--with-png=%{_prefix} \
|
||||||
|
--with-gif \
|
||||||
|
--with-gta \
|
||||||
|
--with-jpeg \
|
||||||
|
--without-jpeg12 \
|
||||||
|
--with-liblzma \
|
||||||
|
--with-libtiff=%{_prefix} \
|
||||||
|
--with-libz \
|
||||||
|
--without-mdb \
|
||||||
|
--without-msg \
|
||||||
|
--with-proj \
|
||||||
|
--with-threads \
|
||||||
|
--enable-shared
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export DONT_REMOVE_RPATH=1
|
export DONT_REMOVE_RPATH=1
|
||||||
%make_install
|
make install DESTDIR=%{buildroot}
|
||||||
# move bashcompletion file to proper directory:
|
# move bashcompletion file to proper directory:
|
||||||
mv %{buildroot}%{_prefix}/etc %{buildroot}/
|
mv %{buildroot}%{_prefix}/etc %{buildroot}/
|
||||||
|
|
||||||
@@ -144,6 +154,9 @@ mv %{buildroot}%{_prefix}/etc %{buildroot}/
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 8 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
||||||
|
- Library path fixed.
|
||||||
|
|
||||||
* Mon Jan 6 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
* Mon Jan 6 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
||||||
- Initial build
|
- Initial build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user