proj/proj.spec

105 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

2020-02-20 05:14:13 -05:00
Name: proj
2023-10-19 11:31:36 +08:00
Version: 9.3.0
Release: 1
2020-02-20 05:14:13 -05:00
Summary: A generic coordinate transformation software
License: MIT
URL: https://proj4.org
Source0: http://download.osgeo.org/proj/proj-%{version}.tar.gz
Source1: http://download.osgeo.org/proj/proj-datumgrid-1.7.tar.gz
BuildRequires: libtool make
BuildRequires: gcc-c++ sqlite-devel libtiff-devel curl-devel
2023-10-19 11:31:36 +08:00
BuildRequires: cmake gtest-devel >= 1.8.0 gmock-devel
2020-02-20 05:14:13 -05:00
%description
PROJ is a generic coordinate transformation software that transforms
geospatial coordinates from one coordinate reference system (CRS) to
another. This includes cartographic projections as well as geodetic
transformations. PROJ is released under the X/MIT open source license.
%package help
Summary: Help documentation for the proj
%description help
Help documentation for the proj.
%package devel
Summary: Development files for PROJ.4
Requires: proj = %{version}-%{release}
Provides: proj-static = %{version}-%{release}
Obsoletes: proj-static < %{version}-%{release}
%description devel
This package contains libproj and the appropriate header files and man pages
and libproj static library.This package alse contains additional US and
Canadian datum shift grids and additional EPSG dataset.
%package nad
Summary: US and Canadian datum shift grids for PROJ.4
Requires: proj = %{version}-%{release}
%description nad
This package contains additional US and Canadian datum shift grids.
%prep
%autosetup -n proj-%{version} -p1
2020-02-20 05:14:13 -05:00
%build
2023-10-19 11:31:36 +08:00
%cmake -DUSE_EXTERNAL_GTEST=ON
%make_build
2020-02-20 05:14:13 -05:00
%install
2023-10-19 11:31:36 +08:00
%make_install
mkdir -p %{buildroot}%{_datadir}/%{name}
tar -xf %{SOURCE1} --directory %{buildroot}%{_datadir}/%{name}
2020-02-20 05:14:13 -05:00
%check
2023-10-19 11:31:36 +08:00
ctest
2020-02-20 05:14:13 -05:00
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
2023-10-19 11:31:36 +08:00
%doc AUTHORS COPYING NEWS
%{_bindir}/cct
%{_bindir}/cs2cs
%{_bindir}/geod
%{_bindir}/gie
%{_bindir}/invgeod
%{_bindir}/invproj
%{_bindir}/proj
%{_bindir}/projinfo
%{_bindir}/projsync
%{_libdir}/libproj.so.25*
2020-02-20 05:14:13 -05:00
%files help
%doc NEWS README ChangeLog
%{_mandir}/man1/*.1*
%files devel
%{_includedir}/*.h
%{_includedir}/proj
2020-02-20 05:14:13 -05:00
%{_libdir}/{libproj.so,libproj.a,libproj.la}
2023-10-19 11:31:36 +08:00
%{_libdir}/cmake/proj/*.cmake
%{_libdir}/cmake/proj4/*.cmake
2020-02-20 05:14:13 -05:00
%attr(0755,root,root) %{_libdir}/pkgconfig/proj.pc
%files nad
%attr(0755,root,root) %{_libdir}/pkgconfig/proj.pc
%{_datadir}/proj
%changelog
2023-10-19 11:31:36 +08:00
* Thu Oct 19 2023 yaoxin <yao_xin001@hoperun.com> - 9.3.0-1
- Upgrade to 9.3.0
* Wed Dec 14 2022 caodongxia <caodongxia@h-partners.com> - 8.2.1-2
- Add the compilation dependency make
* Tue Jan 18 2022 yaoxin <yaoxin30@huawei.com> - 8.2.1-1
- Upgrade proj to 8.2.1
2020-02-20 05:14:13 -05:00
* Wed Feb 19 2020 Senlin Xia <xiasenlin1@huawei.com> 4.9.3-8
- package init