Compare commits
No commits in common. "20cb0336176586dd2bc26bd9ff5a50b9b2521204" and "f5f30404c4c2049d9e81512734e72212c4f18afe" have entirely different histories.
20cb033617
...
f5f30404c4
BIN
proj-4.9.3.tar.gz
Normal file
BIN
proj-4.9.3.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
proj-datumgrid-1.6.zip
Normal file
BIN
proj-datumgrid-1.6.zip
Normal file
Binary file not shown.
Binary file not shown.
87
proj.spec
87
proj.spec
@ -1,14 +1,12 @@
|
|||||||
Name: proj
|
Name: proj
|
||||||
Version: 9.3.0
|
Version: 4.9.3
|
||||||
Release: 1
|
Release: 8
|
||||||
Summary: A generic coordinate transformation software
|
Summary: A generic coordinate transformation software
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://proj4.org
|
URL: https://proj4.org
|
||||||
Source0: http://download.osgeo.org/proj/proj-%{version}.tar.gz
|
Source0: http://download.osgeo.org/proj/proj-%{version}.tar.gz
|
||||||
Source1: http://download.osgeo.org/proj/proj-datumgrid-1.7.tar.gz
|
Source1: http://download.osgeo.org/proj/proj-datumgrid-1.6.zip
|
||||||
BuildRequires: libtool make
|
BuildRequires: libtool
|
||||||
BuildRequires: gcc-c++ sqlite-devel libtiff-devel curl-devel
|
|
||||||
BuildRequires: cmake gtest-devel >= 1.8.0 gmock-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PROJ is a generic coordinate transformation software that transforms
|
PROJ is a generic coordinate transformation software that transforms
|
||||||
@ -40,21 +38,48 @@ Requires: proj = %{version}-%{release}
|
|||||||
%description nad
|
%description nad
|
||||||
This package contains additional US and Canadian datum shift grids.
|
This package contains additional US and Canadian datum shift grids.
|
||||||
|
|
||||||
|
%package epsg
|
||||||
|
Summary: EPSG dataset for PROJ.4
|
||||||
|
Requires: proj = %{version}-%{release}
|
||||||
|
|
||||||
|
%description epsg
|
||||||
|
This package contains additional EPSG dataset.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n proj-%{version} -p1
|
%autosetup -n proj-%{version}
|
||||||
|
|
||||||
|
for makefile in `find . -type f -name 'Makefile.in'`; do
|
||||||
|
sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' $makefile
|
||||||
|
done
|
||||||
|
|
||||||
|
pushd nad
|
||||||
|
unzip -o %{SOURCE1}
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
for script in `find nad/ -type f -perm -a+x`; do
|
||||||
|
sed -i -e '1,1s|:|#!/bin/bash|' $script
|
||||||
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -DUSE_EXTERNAL_GTEST=ON
|
sed -i -e 's|5\:4\:5|6\:4\:6|' src/Makefile*
|
||||||
%make_build
|
%configure
|
||||||
|
%make_build OPTIMIZE="$RPM_OPT_FLAGS"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%makeinstall
|
||||||
|
install -p -m 0644 nad/pj_out27.dist nad/pj_out83.dist nad/td_out.dist %{buildroot}%{_datadir}/proj
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
install -p -m 0755 nad/test27 nad/test83 nad/testvarious %{buildroot}%{_datadir}/proj
|
||||||
tar -xf %{SOURCE1} --directory %{buildroot}%{_datadir}/%{name}
|
install -p -m 0644 nad/epsg %{buildroot}%{_datadir}/proj
|
||||||
|
install -p -m 0644 src/projects.h %{buildroot}%{_includedir}/
|
||||||
|
|
||||||
%check
|
%check
|
||||||
ctest
|
cd nad
|
||||||
|
export PROJ_LIB=%{buildroot}%{_datadir}/proj
|
||||||
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH%{buildroot}%{_libdir}
|
||||||
|
for i in 27 83 IGNF ntv2 various;do
|
||||||
|
./test$i %{buildroot}%{_bindir}/proj || exit 0
|
||||||
|
done
|
||||||
|
cd -
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -62,43 +87,31 @@ ctest
|
|||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS COPYING NEWS
|
%doc AUTHORS COPYING
|
||||||
%{_bindir}/cct
|
%{_bindir}/*
|
||||||
%{_bindir}/cs2cs
|
%{_libdir}/libproj.so.12*
|
||||||
%{_bindir}/geod
|
|
||||||
%{_bindir}/gie
|
|
||||||
%{_bindir}/invgeod
|
|
||||||
%{_bindir}/invproj
|
|
||||||
%{_bindir}/proj
|
|
||||||
%{_bindir}/projinfo
|
|
||||||
%{_bindir}/projsync
|
|
||||||
%{_libdir}/libproj.so.25*
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc NEWS README ChangeLog
|
%doc NEWS README ChangeLog
|
||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
%{_includedir}/proj
|
|
||||||
%{_libdir}/{libproj.so,libproj.a,libproj.la}
|
%{_libdir}/{libproj.so,libproj.a,libproj.la}
|
||||||
%{_libdir}/cmake/proj/*.cmake
|
|
||||||
%{_libdir}/cmake/proj4/*.cmake
|
|
||||||
%attr(0755,root,root) %{_libdir}/pkgconfig/proj.pc
|
%attr(0755,root,root) %{_libdir}/pkgconfig/proj.pc
|
||||||
|
|
||||||
%files nad
|
%files nad
|
||||||
|
%doc nad/README
|
||||||
|
%attr(0755,root,root) %{_datadir}/proj/{test27,test83,testvarious}
|
||||||
%attr(0755,root,root) %{_libdir}/pkgconfig/proj.pc
|
%attr(0755,root,root) %{_libdir}/pkgconfig/proj.pc
|
||||||
%{_datadir}/proj
|
%{_datadir}/proj
|
||||||
|
%exclude %{_datadir}/proj/epsg
|
||||||
|
|
||||||
|
%files epsg
|
||||||
|
%doc nad/README
|
||||||
|
%attr(0644,root,root) %{_datadir}/proj/epsg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* 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
|
|
||||||
|
|
||||||
* Wed Feb 19 2020 Senlin Xia <xiasenlin1@huawei.com> 4.9.3-8
|
* Wed Feb 19 2020 Senlin Xia <xiasenlin1@huawei.com> 4.9.3-8
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user