forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg: Update to latest grass.spec from Fedora
Use the latest grass.spec from Fedora Git repo. This is forward port of 523fb80 from 8.3 release branch. Co-authored-by: Markus Neteler <[email protected]>
- Loading branch information
1 parent
3511f57
commit 6acf29c
Showing
1 changed file
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) | ||
|
||
Name: grass | ||
Version: 8.2.0 | ||
Version: 8.2.1 | ||
Release: 1%{?dist} | ||
Summary: GRASS GIS - Geographic Resources Analysis Support System | ||
|
||
|
@@ -20,7 +20,11 @@ Summary: GRASS GIS - Geographic Resources Analysis Support System | |
# "%%bcond_without" means "ENABLE by default and create a --without option" | ||
%bcond_without python3 | ||
|
||
License: GPLv2+ | ||
# GRASS GIS addon reuses the compiler flags originating from rpmbuild environment, | ||
# hence disabling package-notes plugin | ||
%undefine _package_note_file | ||
|
||
License: GPL-2.0-or-later | ||
URL: https://grass.osgeo.org | ||
Source0: https://grass.osgeo.org/%{name}%{shortver}/source/%{name}-%{version}.tar.gz | ||
|
||
|
@@ -189,10 +193,8 @@ sed -i -e 's/-lblas/-lflexiblas/g' -e 's/-llapack/-lflexiblas/g' configure | |
find -name \*.pl | xargs sed -i -e 's,#!/usr/bin/env perl,#!%{__perl},' | ||
|
||
%build | ||
# Package is not ready for -Werror=format-security or the C++11 standard | ||
CFLAGS="$(echo ${RPM_OPT_FLAGS} | sed -e 's/ -Werror=format-security//')" | ||
CXXFLAGS="-std=c++98 ${CFLAGS}" | ||
%configure \ | ||
--prefix=%{_libdir} \ | ||
--with-cxx \ | ||
--with-tiff \ | ||
--with-png \ | ||
|
@@ -221,6 +223,7 @@ CXXFLAGS="-std=c++98 ${CFLAGS}" | |
--with-regex \ | ||
--with-openmp \ | ||
--with-gdal=%{_bindir}/gdal-config \ | ||
--with-wxwidgets=%{_bindir}/wx-config \ | ||
--with-geos=%{_bindir}/geos-config \ | ||
%if (0%{?rhel} > 6 || 0%{?fedora}) | ||
--with-netcdf=%{_bindir}/nc-config \ | ||
|
@@ -238,6 +241,9 @@ CXXFLAGS="-std=c++98 ${CFLAGS}" | |
--with-zstd \ | ||
--with-proj-share=%{_datadir}/proj | ||
|
||
# .package_note hack for RHBZ #2084342 and RHBZ #2102895 | ||
sed -i "s+ -Wl,-dT,${RPM_BUILD_DIR}/grass-%{version}/.package_note-grass-%{version}-%{release}.%{_arch}.ld++g" include/Make/Platform.make | ||
|
||
make %{?_smp_mflags} | ||
|
||
# by default, grass will be installed to /usr/grass-%%{version} | ||
|
@@ -355,13 +361,64 @@ fi | |
%{_libdir}/%{name}%{shortver}/gui | ||
|
||
%files devel | ||
%doc TODO doc/* SUBMITTING | ||
%doc TODO doc/* CONTRIBUTING.md | ||
%{macrosdir}/macros.%{name} | ||
%{_libdir}/pkgconfig/* | ||
%dir %{_libdir}/%{name}%{shortver}/lib | ||
%{_libdir}/%{name}%{shortver}/include | ||
|
||
%changelog | ||
* Sat Jan 21 2023 Markus Neteler <[email protected]> 8.2.1-1 | ||
- New upstream version GRASS GIS 8.2.1 | ||
|
||
* Thu Jan 19 2023 Fedora Release Engineering <[email protected]> - 8.2.0-11 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild | ||
|
||
* Mon Jan 16 2023 Markus Neteler <[email protected]> 8.2.0-10 | ||
- modify grass-pdal.patch for alternative C++ fix | ||
|
||
* Sat Jan 14 2023 Sandro Mani <[email protected]> - 8.2.0-9 | ||
- Rebuild (PDAL) | ||
|
||
* Sat Nov 12 2022 Sandro Mani <[email protected]> - 8.2.0-8 | ||
- Rebuild (gdal) | ||
|
||
* Wed Nov 09 2022 Markus Neteler <[email protected]> 8.2.0-7 | ||
- SPDX license tag update | ||
|
||
* Thu Nov 03 2022 Markus Neteler <[email protected]> - 8.2.0-6 | ||
- fix RPM ARCH not defined for GRASS GIS addon installation (RHBZ #2138373) | ||
|
||
* Sat Sep 17 2022 Markus Neteler <[email protected]> - 8.2.0-5 | ||
- fix unexpected keyword argument 'codeset' (Python 3.11) for RHBZ #2126608 | ||
|
||
* Mon Aug 08 2022 Markus Neteler <[email protected]> - 8.2.0-4 | ||
- Rebuild for RHBZ #2107826 (PYC magic number has changed) | ||
|
||
* Thu Jul 21 2022 Fedora Release Engineering <[email protected]> - 8.2.0-3 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild | ||
|
||
* Mon Jul 11 2022 Markus Neteler <[email protected]> - 8.2.0-2 | ||
- .package_note hack for RHBZ #2084342 and RHBZ #2102895 | ||
|
||
* Sat Jun 04 2022 Markus Neteler <[email protected]> - 8.2.0-1 | ||
- New upstream version GRASS GIS 8.2.0 | ||
|
||
* Sat May 21 2022 Sandro Mani <[email protected]> - 8.0.2-2 | ||
- Rebuild for gdal-3.5.0 and/or openjpeg-2.5.0 | ||
|
||
* Thu May 12 2022 Markus Neteler <[email protected]> - 8.0.2-1 | ||
- New upstream version GRASS GIS 8.0.2 | ||
|
||
* Tue Mar 29 2022 Markus Neteler <[email protected]> - 8.0.1-3 | ||
- Rebuild for pdal-2.4.0 | ||
|
||
* Thu Mar 10 2022 Sandro Mani <[email protected]> - 8.0.1-2 | ||
- Rebuild for proj-9.0.0 | ||
|
||
* Thu Feb 24 2022 Markus Neteler <[email protected]> - 8.0.1-1 | ||
- New upstream version GRASS GIS 8.0.1 | ||
|
||
* Fri Jan 28 2022 Markus Neteler <[email protected]> - 8.0.0-1 | ||
- New upstream version GRASS GIS 8.0.0 | ||
|
||
|