|
|
|
@ -1,8 +1,7 @@
|
|
|
|
|
Name: libgeotiff
|
|
|
|
|
Version: 1.4.0
|
|
|
|
|
Release: 14%{?dist}
|
|
|
|
|
Version: 1.4.3
|
|
|
|
|
Release: 1%{?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
|
|
|
|
@ -25,25 +24,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
@ -52,16 +33,14 @@ set -x
|
|
|
|
|
--with-proj \
|
|
|
|
|
--with-jpeg \
|
|
|
|
|
--with-zip \
|
|
|
|
|
--enable-debug \
|
|
|
|
|
--disable-static
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|
|
|
|
|
|
|
|
|
# install pkgconfig file
|
|
|
|
@ -85,28 +64,34 @@ install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
|
rm -fv %{buildroot}%{_libdir}/lib*.la
|
|
|
|
|
echo >> %{buildroot}%{_datadir}/epsg_csv/codes.csv
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc ChangeLog LICENSE README
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog
|
|
|
|
|
%{_bindir}/applygeo
|
|
|
|
|
%{_bindir}/geotifcp
|
|
|
|
|
%{_bindir}/listgeo
|
|
|
|
|
%{_bindir}/makegeo
|
|
|
|
|
%{_libdir}/%{name}.so.2*
|
|
|
|
|
%{_mandir}/man1/listgeo.1.gz
|
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
|
%dir %{_datadir}/epsg_csv
|
|
|
|
|
%attr(0644,root,root) %{_datadir}/epsg_csv/*.csv
|
|
|
|
|
%{_datadir}/epsg_csv/*.csv
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%{_datadir}/epsg_csv/*.py
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|