Skip to content

Commit

Permalink
Fedora rpm SPEC: simplified postgresql support (merge of https://src.…
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler committed Sep 17, 2018
1 parent 4ed7e62 commit 34eb563
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions rpm/grass.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
%global shortver 75
%global shortver 76
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)

Name: grass
Version: 7.5.0
Version: 7.6.0
Release: 1%{?dist}
Summary: GRASS GIS - Geographic Resources Analysis Support System

Expand Down Expand Up @@ -49,11 +49,10 @@ BuildRequires: netcdf-devel
%endif
BuildRequires: python < 3.0
BuildRequires: python2-numpy
%if (0%{?rhel} > 6 || 0%{?fedora})
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: postgresql-devel
%else
# RHEL6: PG from http://yum.postgresql.org/9.6/redhat/rhel-$releasever-$basearch/
BuildRequires: postgresql96-devel postgresql96-libs
BuildRequires: libpq-devel
%endif
BuildRequires: proj-devel
BuildRequires: proj-epsg
Expand Down Expand Up @@ -190,12 +189,7 @@ export GRASS_PYTHON="/usr/bin/python2"
%else
--with-mysql-libs=%{_libdir}/mysql \
%endif
%if (0%{?rhel} > 6 || 0%{?fedora})
--with-postgres-includes=%{_includedir}/pgsql \
%else
--with-postgres-includes=%{_prefix}/pgsql-9.6/include/ \
--with-postgres-libs=%{_prefix}/pgsql-9.6/lib/ \
%endif
--with-postgres-includes=%{_includedir}/pgsql \
--with-cairo-ldflags=-lfontconfig \
--with-freetype-includes=%{_includedir}/freetype2 \
--with-zstd \
Expand Down Expand Up @@ -343,6 +337,12 @@ fi
%{_libdir}/%{name}%{shortver}/include

%changelog
* Thu Sep 09 2018 Pavel Raiskup <[email protected]> - 7.4.1-8
- Clean up of PostgreSQL support (PR#4)

* Tue Jul 31 2018 Florian Weimer <[email protected]> - 7.4.1-7
- Rebuild with fixed binutils

* Sun Jul 29 2018 Markus Neteler <[email protected]> - 7.4.1-6
- added BuildRequires gcc-c++ to address RHBZ #1604262 due to RHBZ #1551327 (removing gcc and gcc-c++ from default buildroot)

Expand Down

0 comments on commit 34eb563

Please sign in to comment.