Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37384425
en ru br
ALT Linux repos
S:1.6.0-alt2

Group :: System/Libraries
RPM: libgeotiff

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define soversion 5
Name: libgeotiff
Version: 1.6.0
Release: alt2

Summary: Library for reading and writing GeoTIFF information tags.
License: Public domain
Group: System/Libraries
Url: http://trac.osgeo.org/geotiff/
Packager: Dmitry Derjavin <dd at altlinux.org>

Source: %name-%version.tar

%def_disable static
%def_disable data

# Automatically added by buildreq on Tue Jul 06 2010

BuildRequires: gcc-c++ libtiff-devel libjpeg-devel zlib-devel libproj-devel

%package -n %name%soversion
Summary: Library for reading and writing GeoTIFF information tags.
Group: System/Libraries

%package utils
Summary: Programs for manipulating GeoTIFF information tags
Group: Graphics
Requires: %name%soversion = %EVR

%package devel
Summary: Development tools for programs which will use geotiff library
Group: Development/C
Requires: %name%soversion =  %EVR
%if_enabled data
Requires: %name-data =  %EVR
%endif

%package devel-static
Summary: Static geotiff library
Group: Development/C
Requires: %name-devel =  %EVR

%package data
Summary: CSV data files derived from the EPSG Tables
Group: Graphics
Requires: %name-utils = %EVR

%description
Libgeotiff is an open source library normally hosted on top of libtiff
for reading and writing GeoTIFF information tags. The libgeotiff
library is a sub-project of the MetaCRS project.
http://wiki.osgeo.org/wiki/MetaCRS

%description -n %name%soversion
Libgeotiff is an open source library normally hosted on top of libtiff
for reading and writing GeoTIFF information tags. The libgeotiff
library is a sub-project of the MetaCRS project.
http://wiki.osgeo.org/wiki/MetaCRS

%description utils
This package contains client programs for accessing libgeotiff
functions.

%description devel
This package contains header files for developing programs which
will manipulate GeoTIFF information data using geotiff library.

%description devel-static
This package contains static %name library.

%description data
This package contains CSV data files derived from the EPSG Tables.

%prep
%setup -q

%build
%autoreconf
%configure \
--prefix=%{_prefix} \
--includedir=%{_includedir}/%{name}/ \
--with-zlib \
--with-jpeg \
--with-proj \
%{subst_enable static}

%make_build

%install
%makeinstall_std

# install manualy some file

install -p -m 755 bin/makegeo %{buildroot}%{_bindir}

# install pkgconfig file

cat > geotiff.pc <<EOF
prefix=%{_prefix}
exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}/%{name}

Name: geotiff
Description: GeoTIFF file format library
Version: %{version}
Libs: -L\${libdir} -lgeotiff
Cflags: -I\${includedir}
EOF

mkdir -p %buildroot%_pkgconfigdir/
install -p -m 644 geotiff.pc %buildroot%_pkgconfigdir/


%files -n %name%soversion
%_libdir/%name.so.%{soversion}
%_libdir/%name.so.%{soversion}.*
%doc README
%doc LICENSE

%files utils
%_bindir/*
%_man1dir/*

%files devel
%_libdir/%name.so
%_pkgconfigdir/geotiff.pc
%_includedir/%name
# EPSG data files. Check license!
#%_includedir/%name/*.inc*

%if_enabled static
%files devel-static
%_libdir/%name.a
%endif

%if_enabled data
%files data
%_datadir/epsg_csv
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin