1c3d005bf4
OBS-URL: https://build.opensuse.org/request/show/432433 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=25
103 lines
3.0 KiB
RPMSpec
103 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package proj
|
|
#
|
|
# Copyright (c) 2016 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 libname lib%{name}12
|
|
Name: proj
|
|
Version: 4.9.3
|
|
Release: 0
|
|
Summary: Cartographic projection software
|
|
License: MIT
|
|
Group: Productivity/Scientific/Other
|
|
Url: https://trac.osgeo.org/proj/
|
|
Source0: http://download.osgeo.org/proj/%{name}-%{version}.tar.gz
|
|
Source1: http://download.osgeo.org/proj/%{name}-datumgrid-1.6.zip
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: unzip
|
|
Provides: libproj = %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%package -n %{libname}
|
|
Summary: Cartographic projection software
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%package -n libproj-devel
|
|
Summary: Development files for PROJ
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{libname} = %{version}
|
|
|
|
%description -n %{libname}
|
|
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
|
|
%setup -q -n %{name}-%{version}
|
|
cd nad
|
|
unzip -o %{SOURCE1}
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
install -D -p -m 0644 src/projects.h %{buildroot}/%{_includedir}/projects.h
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc NEWS AUTHORS COPYING README ChangeLog
|
|
%defattr(0755,root,root)
|
|
%{_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}
|
|
%defattr(0644,root,root)
|
|
%{_libdir}/libproj.so.12*
|
|
|
|
%files -n libproj-devel
|
|
%defattr(0644,root,root)
|
|
%{_includedir}/*.h
|
|
%{_libdir}/libproj.so
|
|
%{_libdir}/pkgconfig/proj.pc
|
|
%{_mandir}/man3/geodesic.3%{ext_man}
|
|
%{_mandir}/man3/pj_init.3%{ext_man}
|
|
|
|
%changelog
|