Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
20cb033617
!9 Upgrade to 9.3.0
From: @starlet-dx 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2023-10-19 08:24:31 +00:00
starlet-dx
f26300b2f0 Upgrade to 9.3.0 2023-10-19 14:48:35 +08:00
openeuler-ci-bot
8386bd5b44
!7 [sync] PR-6: Add the compilation dependency make
From: @openeuler-sync-bot 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2023-03-29 09:05:17 +00:00
caodongxia
273838b0f7 Addthecompilationdependencymake
(cherry picked from commit c0c8064bfc69bd7a949990d7de889416ffea7db9)
2022-12-14 19:17:19 +08:00
openeuler-ci-bot
a24da4eb5d
!5 [sync] PR-4: Upgrade proj to 8.2.1
Merge pull request !5 from openeuler-sync-bot/sync-pr4-openEuler-22.03-LTS-Next-to-master
2022-01-19 07:50:09 +00:00
starlet-dx
988239f711 Upgrade proj to 8.2.1
(cherry picked from commit 73d154493b87d3c4e268092b1574b6161ff1ef10)
2022-01-19 10:44:09 +08:00
openeuler-ci-bot
b91c337f6f !3 Modify yaml file
Merge pull request !3 from jeff200902/master
2020-07-18 10:47:48 +08:00
jeff200902
1df29fa3a9 modify yaml 2020-07-18 10:40:45 +08:00
openeuler-ci-bot
de48c3f100 !2 Add yaml file
Merge pull request !2 from jeff200902/master
2020-05-12 15:22:39 +08:00
jeff200902
3406343061 Add yaml file 2020-05-09 12:20:52 +08:00
6 changed files with 41 additions and 50 deletions

Binary file not shown.

BIN
proj-9.3.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

BIN
proj-datumgrid-1.7.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,14 @@
Name: proj
Version: 4.9.3
Release: 8
Version: 9.3.0
Release: 1
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.6.zip
BuildRequires: libtool
Source1: http://download.osgeo.org/proj/proj-datumgrid-1.7.tar.gz
BuildRequires: libtool make
BuildRequires: gcc-c++ sqlite-devel libtiff-devel curl-devel
BuildRequires: cmake gtest-devel >= 1.8.0 gmock-devel
%description
PROJ is a generic coordinate transformation software that transforms
@ -38,48 +40,21 @@ Requires: proj = %{version}-%{release}
%description nad
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
%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
%autosetup -n proj-%{version} -p1
%build
sed -i -e 's|5\:4\:5|6\:4\:6|' src/Makefile*
%configure
%make_build OPTIMIZE="$RPM_OPT_FLAGS"
%cmake -DUSE_EXTERNAL_GTEST=ON
%make_build
%install
%makeinstall
install -p -m 0644 nad/pj_out27.dist nad/pj_out83.dist nad/td_out.dist %{buildroot}%{_datadir}/proj
install -p -m 0755 nad/test27 nad/test83 nad/testvarious %{buildroot}%{_datadir}/proj
install -p -m 0644 nad/epsg %{buildroot}%{_datadir}/proj
install -p -m 0644 src/projects.h %{buildroot}%{_includedir}/
%make_install
mkdir -p %{buildroot}%{_datadir}/%{name}
tar -xf %{SOURCE1} --directory %{buildroot}%{_datadir}/%{name}
%check
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 -
ctest
%post
/sbin/ldconfig
@ -87,31 +62,43 @@ cd -
/sbin/ldconfig
%files
%doc AUTHORS COPYING
%{_bindir}/*
%{_libdir}/libproj.so.12*
%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*
%files help
%doc NEWS README ChangeLog
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%files devel
%{_includedir}/*.h
%{_includedir}/proj
%{_libdir}/{libproj.so,libproj.a,libproj.la}
%{_libdir}/cmake/proj/*.cmake
%{_libdir}/cmake/proj4/*.cmake
%attr(0755,root,root) %{_libdir}/pkgconfig/proj.pc
%files nad
%doc nad/README
%attr(0755,root,root) %{_datadir}/proj/{test27,test83,testvarious}
%attr(0755,root,root) %{_libdir}/pkgconfig/proj.pc
%{_datadir}/proj
%exclude %{_datadir}/proj/epsg
%files epsg
%doc nad/README
%attr(0644,root,root) %{_datadir}/proj/epsg
%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
- package init

4
proj.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: OSGeo/PROJ
tag_prefix: ^
seperator: .