diff --git a/gdal.changes b/gdal.changes index 53cd1ff..7e6122c 100644 --- a/gdal.changes +++ b/gdal.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 4 18:55:25 UTC 2016 - behrisch@users.sourceforge.net + +- Fixing PACKAGE_* redefines in cpl_config.h + ------------------------------------------------------------------- Sun Jan 31 16:55:00 UTC 2016 - Angelos Tzotsos diff --git a/gdal.spec b/gdal.spec index b1fe73e..ecad90a 100644 --- a/gdal.spec +++ b/gdal.spec @@ -284,6 +284,9 @@ rm -rf %{buildroot}%{perl_vendorarch}/auto/Geo/*/.packlist rm -rf %{buildroot}%{perl_vendorarch}/auto/Geo/GDAL/Const/.packlist rm -rf %{buildroot}%{_bindir}/*.dox +# avoid PACKAGE redefines +sed -i 's,\(#define PACKAGE_.*\),/* \1 */,' %{buildroot}%{_includedir}/gdal/cpl_config.h + %post -n lib%{name}1 -p /sbin/ldconfig %postun -n lib%{name}1 -p /sbin/ldconfig