|
|
|
@ -1,71 +1,130 @@
|
|
|
|
|
Name: libgeotiff
|
|
|
|
|
Version: 1.4.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: GeoTIFF format library
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://trac.osgeo.org/geotiff/
|
|
|
|
|
Source: http://download.osgeo.org/geotiff/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildRequires: libtiff-devel libjpeg-devel proj-devel zlib-devel
|
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
|
%bcond_with mingw
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without mingw
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: libgeotiff
|
|
|
|
|
Version: 1.7.1
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
|
|
|
|
|
Summary: GeoTIFF format library
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://trac.osgeo.org/geotiff/
|
|
|
|
|
Source: http://download.osgeo.org/geotiff/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
# Honour LIB_SUFFIX
|
|
|
|
|
# Honour GEOTIFF_INCLUDE_SUBDIR
|
|
|
|
|
# Add version suffix to mingw library
|
|
|
|
|
# Fix cmake module install dir
|
|
|
|
|
# Don't install docs
|
|
|
|
|
Patch0: libgeotiff_cmake.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
|
BuildRequires: proj-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw32-gcc
|
|
|
|
|
BuildRequires: mingw32-libtiff
|
|
|
|
|
BuildRequires: mingw32-libjpeg
|
|
|
|
|
BuildRequires: mingw32-proj
|
|
|
|
|
BuildRequires: mingw32-zlib
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw64-gcc
|
|
|
|
|
BuildRequires: mingw64-libtiff
|
|
|
|
|
BuildRequires: mingw64-libjpeg
|
|
|
|
|
BuildRequires: mingw64-proj
|
|
|
|
|
BuildRequires: mingw64-zlib
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
GeoTIFF represents an effort by over 160 different remote sensing,
|
|
|
|
|
GIS, cartographic, and surveying related companies and organizations
|
|
|
|
|
to establish a TIFF based interchange format for georeferenced
|
|
|
|
|
GeoTIFF represents an effort by over 160 different remote sensing,
|
|
|
|
|
GIS, cartographic, and surveying related companies and organizations
|
|
|
|
|
to establish a TIFF based interchange format for georeferenced
|
|
|
|
|
raster imagery.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development library and header for the GeoTIFF file format library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: pkgconfig libtiff-devel
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Summary: Development library and header for the GeoTIFF file format library
|
|
|
|
|
Requires: pkgconfig libtiff-devel
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The GeoTIFF library provides support for development of geotiff image format.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
# fix wrongly encoded files from tarball
|
|
|
|
|
set +x
|
|
|
|
|
for f in `find . -type f` ; do
|
|
|
|
|
if file $f | grep -q ISO-8859 ; then
|
|
|
|
|
set -x
|
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
|
|
|
|
|
mv -f ${f}.tmp $f
|
|
|
|
|
set +x
|
|
|
|
|
fi
|
|
|
|
|
if file $f | grep -q CRLF ; then
|
|
|
|
|
set -x
|
|
|
|
|
sed -i -e 's|\r||g' $f
|
|
|
|
|
set +x
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
set -x
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%package -n mingw32-%{name}
|
|
|
|
|
Summary: MinGW Windows %{name} library
|
|
|
|
|
Obsoletes: mingw32-%{name}-static
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw32-%{name}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw32-%{name}-tools
|
|
|
|
|
Summary: Tools for the MinGW Windows %{name} library
|
|
|
|
|
Requires: mingw32-%{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw32-%{name}-tools
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw64-%{name}
|
|
|
|
|
Summary: MinGW Windows %{name} library
|
|
|
|
|
Obsoletes: mingw64-%{name}-static
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-%{name}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw64-%{name}-tools
|
|
|
|
|
Summary: Tools for the MinGW Windows %{name} library
|
|
|
|
|
Requires: mingw64-%{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-%{name}-tools
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?mingw_debug_package}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
|
--includedir=%{_includedir}/%{name}/ \
|
|
|
|
|
--with-proj \
|
|
|
|
|
--with-jpeg \
|
|
|
|
|
--with-zip \
|
|
|
|
|
--enable-debug \
|
|
|
|
|
--disable-static
|
|
|
|
|
# Native build
|
|
|
|
|
%cmake -DGEOTIFF_BIN_SUBDIR=bin -DGEOTIFF_INCLUDE_SUBDIR=include/%{name} -DGEOTIFF_LIB_SUBDIR=%{_lib}
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
# MinGW build
|
|
|
|
|
%mingw_cmake -DGEOTIFF_BIN_SUBDIR=bin -DGEOTIFF_INCLUDE_SUBDIR=include/%{name}
|
|
|
|
|
%mingw_make_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|
|
|
|
%cmake_install
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%mingw_make_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# install pkgconfig file
|
|
|
|
|
cat > %{name}.pc <<EOF
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
|
cat > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc <<EOF
|
|
|
|
|
prefix=%{_prefix}
|
|
|
|
|
exec_prefix=%{_prefix}
|
|
|
|
|
libdir=%{_libdir}
|
|
|
|
@ -78,38 +137,193 @@ Libs: -L\${libdir} -lgeotiff
|
|
|
|
|
Cflags: -I\${includedir}
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
|
install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
mkdir -p %{buildroot}%{mingw32_libdir}/pkgconfig/
|
|
|
|
|
cat > %{buildroot}%{mingw32_libdir}/pkgconfig/%{name}.pc <<EOF
|
|
|
|
|
prefix=%{mingw32_prefix}
|
|
|
|
|
exec_prefix=%{mingw32_prefix}
|
|
|
|
|
libdir=%{mingw32_libdir}
|
|
|
|
|
includedir=%{mingw32_includedir}/%{name}
|
|
|
|
|
|
|
|
|
|
#clean up junks
|
|
|
|
|
rm -fv %{buildroot}%{_libdir}/lib*.la
|
|
|
|
|
echo >> %{buildroot}%{_datadir}/epsg_csv/codes.csv
|
|
|
|
|
Name: %{name}
|
|
|
|
|
Description: GeoTIFF file format library
|
|
|
|
|
Version: %{version}
|
|
|
|
|
Libs: -L\${libdir} -lgeotiff
|
|
|
|
|
Cflags: -I\${includedir}
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{mingw64_libdir}/pkgconfig/
|
|
|
|
|
cat > %{buildroot}%{mingw64_libdir}/pkgconfig/%{name}.pc <<EOF
|
|
|
|
|
prefix=%{mingw64_prefix}
|
|
|
|
|
exec_prefix=%{mingw64_prefix}
|
|
|
|
|
libdir=%{mingw64_libdir}
|
|
|
|
|
includedir=%{mingw64_includedir}/%{name}
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
Name: %{name}
|
|
|
|
|
Description: GeoTIFF file format library
|
|
|
|
|
Version: %{version}
|
|
|
|
|
Libs: -L\${libdir} -lgeotiff
|
|
|
|
|
Cflags: -I\${includedir}
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc ChangeLog LICENSE README
|
|
|
|
|
|
|
|
|
|
%mingw_debug_install_post
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog
|
|
|
|
|
%{_bindir}/applygeo
|
|
|
|
|
%{_bindir}/geotifcp
|
|
|
|
|
%{_bindir}/listgeo
|
|
|
|
|
%{_bindir}/makegeo
|
|
|
|
|
%{_libdir}/%{name}.so.2*
|
|
|
|
|
%{_mandir}/man1/listgeo.1.gz
|
|
|
|
|
%dir %{_datadir}/epsg_csv
|
|
|
|
|
%attr(0644,root,root) %{_datadir}/epsg_csv/*.csv
|
|
|
|
|
%{_libdir}/%{name}.so.5*
|
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
|
%attr(0644,root,root) %{_includedir}/%{name}/*.h
|
|
|
|
|
%attr(0644,root,root) %{_includedir}/%{name}/*.inc
|
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
%{_libdir}/cmake/GeoTIFF/
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%files -n mingw32-%{name}
|
|
|
|
|
%doc ChangeLog README
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{mingw32_bindir}/libgeotiff-5.dll
|
|
|
|
|
%{mingw32_includedir}/%{name}/
|
|
|
|
|
%{mingw32_datadir}/*
|
|
|
|
|
%{mingw32_libdir}/libgeotiff.dll.a
|
|
|
|
|
%{mingw32_libdir}/pkgconfig/libgeotiff.pc
|
|
|
|
|
%{mingw32_libdir}/cmake/GeoTIFF/
|
|
|
|
|
|
|
|
|
|
%files -n mingw32-%{name}-tools
|
|
|
|
|
%{mingw32_bindir}/*.exe
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-%{name}
|
|
|
|
|
%doc ChangeLog README
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{mingw64_bindir}/libgeotiff-5.dll
|
|
|
|
|
%{mingw64_includedir}/%{name}/
|
|
|
|
|
%{mingw64_datadir}/*
|
|
|
|
|
%{mingw64_libdir}/libgeotiff.dll.a
|
|
|
|
|
%{mingw64_libdir}/pkgconfig/libgeotiff.pc
|
|
|
|
|
%{mingw64_libdir}/cmake/GeoTIFF/
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-%{name}-tools
|
|
|
|
|
%{mingw64_bindir}/*.exe
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Mar 04 2023 Sandro Mani <manisandro@gmail.com> - 1.7.1-7
|
|
|
|
|
- Rebuild (proj)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Sep 04 2022 Sandro Mani <manisandro@gmail.com> - 1.7.1-5
|
|
|
|
|
- Rebuild (proj)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 10 2022 Orion Poplawski <orion@nwra.com> - 1.7.1-3
|
|
|
|
|
- Make mingw build conditional, disable for EL9
|
|
|
|
|
|
|
|
|
|
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 1.7.1-2
|
|
|
|
|
- Rebuild with mingw-gcc-12
|
|
|
|
|
|
|
|
|
|
* Mon Mar 14 2022 Sandro Mani <manisandro@gmail.com> - 1.7.1-1
|
|
|
|
|
- Update to 1.7.1
|
|
|
|
|
|
|
|
|
|
* Wed Mar 09 2022 Sandro Mani <manisandro@gmail.com> - 1.7.0-8
|
|
|
|
|
- Rebuild for proj-9.0.0
|
|
|
|
|
|
|
|
|
|
* Tue Mar 08 2022 Sandro Mani <manisandro@gmail.com> - 1.7.0-7
|
|
|
|
|
- Fix broken mingw pkg-config files
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 1.7.0-6
|
|
|
|
|
- Make mingw subpackages noarch
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 1.7.0-5
|
|
|
|
|
- Add mingw subpackage
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 06 2021 Sandro Mani <manisandro@gmail.com> - 1.7.0-1
|
|
|
|
|
- Update to 1.7.0
|
|
|
|
|
|
|
|
|
|
* Sun Mar 07 2021 Sandro Mani <manisandro@gmail.com> - 1.6.0-5
|
|
|
|
|
- Rebuild (proj)
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Nov 12 00:10:50 CET 2020 Sandro Mani <manisandro@gmail.com> - 1.6.0-3
|
|
|
|
|
- Rebuild (proj)
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 12 2020 Sandro Mani <manisandro@gmail.com> - 1.6.0-1
|
|
|
|
|
- Update to 1.6.0
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Sep 4 2019 Devrim Gündüz <devrim@gunduz.org> - 1.5.1-1
|
|
|
|
|
- Update to 1.5.1
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 5 2019 Devrim Gündüz <devrim@gunduz.org> - 1.4.3-3
|
|
|
|
|
- Rebuild for Proj 5.2.0
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 14 2019 Volker Fröhlich <volker27@gmx.at> - 1.4.3-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
- Remove ldconfig scriptlets
|
|
|
|
|
- Remove unnecessary attrs
|
|
|
|
|
- Simplify file list
|
|
|
|
|
- Remove mostly build-related README
|
|
|
|
|
- Disable apparently pointless debug build
|
|
|
|
|
- Remove obsolete Group tag
|
|
|
|
|
- No longer mangle data files
|
|
|
|
|
|
|
|
|
|
* Thu Aug 02 2018 Volker Fröhlich <volker27@gmx.at> - 1.4.0-14
|
|
|
|
|
- Add gcc-c++ as BR
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 24 2017 Devrim Gündüz <devrim@gunduz.org> - 1.4.0-8
|
|
|
|
|
- Rebuild for Proj 4.9.3
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|