2011-08-15 10:48:55 +02:00
|
|
|
#
|
2011-08-16 14:31:40 +02:00
|
|
|
# spec file for package proj
|
|
|
|
#
|
2016-07-04 16:09:30 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-08-16 14:31:40 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2011-08-15 10:48:55 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-14 10:04:29 +01:00
|
|
|
|
2015-05-09 10:50:23 +02:00
|
|
|
%define libname lib%{name}9
|
2011-08-15 10:48:55 +02:00
|
|
|
Name: proj
|
2015-09-27 16:58:51 +02:00
|
|
|
Version: 4.9.2
|
2012-04-20 19:15:56 +02:00
|
|
|
Release: 0
|
2011-08-15 10:48:55 +02:00
|
|
|
Summary: Cartographic projection software
|
2012-04-20 19:15:56 +02:00
|
|
|
License: MIT
|
2011-08-16 14:31:40 +02:00
|
|
|
Group: Productivity/Scientific/Other
|
2016-07-04 16:09:30 +02:00
|
|
|
Url: https://trac.osgeo.org/proj/
|
|
|
|
Source0: https://github.com/OSGeo/proj.4/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2015-03-08 21:27:30 +01:00
|
|
|
Source1: ftp://ftp.remotesensing.org/proj/%{name}-datumgrid-1.5.zip
|
2016-07-04 16:09:30 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-03-08 21:27:30 +01:00
|
|
|
BuildRequires: unzip
|
2011-08-15 10:48:55 +02:00
|
|
|
Provides: libproj = %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-08-16 14:31:40 +02:00
|
|
|
|
2015-03-08 21:27:30 +01:00
|
|
|
%package -n %{libname}
|
2011-08-16 14:31:40 +02:00
|
|
|
Summary: Cartographic projection software
|
2016-07-04 16:09:30 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%package -n libproj-devel
|
|
|
|
Summary: Development files for PROJ
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-03-08 21:27:30 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2011-08-15 10:48:55 +02:00
|
|
|
|
2015-03-08 21:27:30 +01:00
|
|
|
%description -n %{libname}
|
2011-08-15 10:48:55 +02:00
|
|
|
This package the library for performing respective
|
|
|
|
forward and inverse transformation of cartographic data to or from cartesian
|
|
|
|
data with a wide range of selectable projection functions.
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package offers the commandline tools for performing respective
|
|
|
|
forward and inverse transformation of cartographic data to or from cartesian
|
|
|
|
data with a wide range of selectable projection functions.
|
|
|
|
|
|
|
|
%description -n libproj-devel
|
|
|
|
This package contains libproj and the appropriate header files and man pages.
|
|
|
|
|
|
|
|
%prep
|
2016-07-04 16:09:30 +02:00
|
|
|
%setup -q -n proj.4-%{version}
|
2011-08-15 10:48:55 +02:00
|
|
|
cd nad
|
|
|
|
unzip -o %{SOURCE1}
|
|
|
|
|
|
|
|
%build
|
2015-03-08 21:27:30 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static
|
|
|
|
make %{?_smp_mflags}
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%install
|
2016-07-04 16:09:30 +02:00
|
|
|
%make_install
|
2015-03-08 21:27:30 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-07-04 16:09:30 +02:00
|
|
|
install -D -p -m 0644 src/projects.h %{buildroot}/%{_includedir}/projects.h
|
2011-08-15 10:48:55 +02:00
|
|
|
|
2015-03-08 21:27:30 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc NEWS AUTHORS COPYING README ChangeLog
|
|
|
|
%defattr(0755,root,root)
|
2016-07-04 16:09:30 +02:00
|
|
|
%{_bindir}/cs2cs
|
|
|
|
%{_bindir}/geod
|
|
|
|
%{_bindir}/invgeod
|
|
|
|
%{_bindir}/invproj
|
|
|
|
%{_bindir}/nad2bin
|
|
|
|
%{_bindir}/proj
|
|
|
|
%defattr(0644,root,root)
|
|
|
|
%{_mandir}/man1/cs2cs.1%{ext_man}
|
|
|
|
%{_mandir}/man1/geod.1%{ext_man}
|
|
|
|
%{_mandir}/man1/proj.1%{ext_man}
|
|
|
|
%{_datadir}/proj/
|
|
|
|
|
|
|
|
%files -n %{libname}
|
2011-08-15 10:48:55 +02:00
|
|
|
%defattr(0644,root,root)
|
2016-07-04 16:09:30 +02:00
|
|
|
%{_libdir}/libproj.so.9*
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%files -n libproj-devel
|
|
|
|
%defattr(0644,root,root)
|
|
|
|
%{_includedir}/*.h
|
2016-07-04 16:09:30 +02:00
|
|
|
%{_libdir}/libproj.so
|
2012-03-14 10:16:15 +01:00
|
|
|
%{_libdir}/pkgconfig/proj.pc
|
2016-07-04 16:09:30 +02:00
|
|
|
%{_mandir}/man3/geodesic.3%{ext_man}
|
|
|
|
%{_mandir}/man3/pj_init.3%{ext_man}
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%changelog
|