Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
geotiff
geotiff.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File geotiff.spec of Package geotiff
# # spec file for package geotiff # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define sover 2 %define libname lib%{name}%{sover} Name: geotiff Version: 1.4.2 Release: 0 Summary: Library to handle georeferenced TIFF License: MIT AND SUSE-Public-Domain Group: Productivity/Scientific/Other URL: http://trac.osgeo.org/geotiff Source0: http://download.osgeo.org/%{name}/lib%{name}/lib%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: libjpeg-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(proj) BuildRequires: pkgconfig(zlib) %description This library is designed to permit the extraction and parsing of the "GeoTIFF" Key directories, as well as definition and installation of GeoTIFF keys in new files. %package devel Summary: GeoTIFF header files Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} Requires: pkgconfig(libtiff-4) Requires: pkgconfig(proj) Provides: lib%{name}-devel = %{version} %description devel Header files for GeoTIFF library. This library is designed to permit the extraction and parsing of the "GeoTIFF" Key directories, as well as definition and installation of GeoTIFF keys in new files. %package -n %{libname} Summary: Shared libraries for GeoTIFF library Group: System/Libraries %description -n %{libname} Shared libraries for GeoTIFF library. This library is designed to permit the extraction and parsing of the "GeoTIFF" Key directories, as well as definition and installation of GeoTIFF keys in new files. %prep %setup -q -n lib%{name}-%{version} for f in `find . -type f` ; do if file $f | grep -q ISO-8859 ; then echo "Fix encoding for $f" 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 echo "Fix line ends for $f" set -x sed -i -e 's|\r||g' $f set +x fi done %build export CFLAGS="%{optflags} $CFLAGS -g -fstack-protector -fno-strict-aliasing -D _BSD_SOURCE" export CXXFLAGS="%{optflags} $CXXFLAGS -g -fstack-protector -fno-strict-aliasing" %configure \ --prefix=%{_prefix} \ --includedir=%{_includedir}/lib%{name} \ --with-proj \ --with-jpeg \ --with-zip \ --with-pic \ --enable-static=no \ --enable-debug=yes make %{?_smp_mflags} %install %make_install # install pkgconfig file cat > libgeotiff.pc <<EOF prefix=%{_prefix} exec_prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir}/lib%{name} Name: %{libname} Version: %{version} Description: GeoTIFF file format library Libs: -L%{_libdir} -l%{name} Cflags: -I%{_includedir}/lib%{name} EOF install -Dpm 0644 lib%{name}.pc \ %{buildroot}%{_libdir}/pkgconfig/lib%{name}.pc echo >> %{buildroot}%{_datadir}/epsg_csv/codes.csv # do not ship la files find %{buildroot} -type f -name "*.la" -delete -print %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files %license LICENSE COPYING %doc ChangeLog README %{_bindir}/geotifcp %{_bindir}/listgeo %{_bindir}/applygeo %{_mandir}/man1/listgeo.1%{?ext_man} %{_mandir}/man1/applygeo.1%{?ext_man} %{_mandir}/man1/geotifcp.1%{?ext_man} %dir %{_datadir}/epsg_csv %attr(0755,root,root) %{_datadir}/epsg_csv/csv2c.py* %attr(0755,root,root) %{_datadir}/epsg_csv/csv_tools.py* %attr(0644,root,root) %{_datadir}/epsg_csv/*.csv %files -n %{libname} %license LICENSE COPYING %doc ChangeLog README %{_libdir}/lib%{name}.so.%{sover}* %files devel %defattr(0644,root,root,0755) %license LICENSE COPYING %doc ChangeLog README %dir %{_includedir}/lib%{name} %{_includedir}/lib%{name}/*.h %{_includedir}/lib%{name}/*.inc %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/lib%{name}.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor