Search
SailfishOS Open Build Service
>
Projects
>
home:MartinK
:
sailfish
:
geo
>
libgeotiff
> geotiff.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File geotiff.spec of Package libgeotiff
# # spec file for package geotiff # # Copyright (c) 2013 SUSE LINUX Products 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 namebase geotiff %define libname lib%{namebase} %define soname %{libname}2 Summary: Library to handle georeferenced TIFF License: MIT and SUSE-Public-Domain Group: Applications/GIS Name: %{namebase} Version: 1.4.0 Release: 0 Url: ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ Source0: %{libname}-%{version}.tar.gz ##Patch0: fix-proj4-64bit-issue.diff BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: libjpeg-devel BuildRequires: libproj-devel BuildRequires: libtiff-devel BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 -n %{libname}-devel Summary: GeoTIFF header files Group: Development/Libraries Requires: %{libname} = %{version} Requires: libproj-devel Requires: libtiff-devel %description -n %{libname}-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 %{soname} Summary: Shared libraries for GeoTIFF library Group: System/Libraries Provides: %{libname} %description -n %{soname} 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 %{libname}-%{version} #%patch0 -p1 # fix wrongly encoded files from tarball set +x 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 set -x %build export CFLAGS="$RPM_OPT_FLAGS $CFLAGS -g -fstack-protector -fno-strict-aliasing -D _BSD_SOURCE" export CXXFLAGS="$RPM_OPT_FLAGS $CXXFLAGS -g -fstack-protector -fno-strict-aliasing" %configure \ --prefix=%{_prefix} \ --includedir=%{_includedir}/%{libname} \ --with-proj \ --with-tiff \ --with-jpeg \ --with-zip \ --with-pic \ --enable-debug=yes %__make %{?jobs:-j%jobs} %install %if 0%{?suse_version} %makeinstall INSTALL="%{__install} -p" %else %makeinstall INSTALL="%{__install} -p" \ includedir=%{buildroot}/%{_includedir}/%{libname} %endif # install pkgconfig file %__cat > libgeotiff.pc <<EOF prefix=%{_prefix} exec_prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir}/%{libname} Name: %{libname} Description: GeoTIFF file format library Version: %{version} Libs: -L%{_libdir} -l%{libname} Cflags: -I%{_includedir}/%{libname} EOF %__install -dm 755 %{buildroot}%{_libdir}/pkgconfig %__install -p -m 644 %{libname}.pc %{buildroot}%{_libdir}/pkgconfig echo >> %{buildroot}%{_datadir}/epsg_csv/codes.csv %clean [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" %post -n %{soname} -p /sbin/ldconfig %postun -n %{soname} -p /sbin/ldconfig %files %defattr(-,root,root) %doc ChangeLog LICENSE README COPYING %{_bindir}/geotifcp %{_bindir}/listgeo %{_bindir}/applygeo %{_bindir}/makegeo #%{_bindir}/csv2html %{_mandir}/man1/listgeo.1.* %dir %{_datadir}/epsg_csv %attr(0644,root,root) %{_datadir}/epsg_csv/*.csv %files -n %{soname} %defattr(-,root,root) %{_libdir}/%{libname}.so.* %files -n %{libname}-devel %defattr(-,root,root) %dir %{_includedir}/%{libname} %attr(0644,root,root) %{_includedir}/%{libname}/*.h %attr(0644,root,root) %{_includedir}/%{libname}/*.inc %attr(0644,root,root) %{_libdir}/%{libname}.a %attr(0644,root,root) %{_libdir}/%{libname}.la %attr(0644,root,root) %{_libdir}/%{libname}.so %attr(0644,root,root) %{_libdir}/pkgconfig/%{libname}.pc %changelog