rpms/proj/F-8 proj.spec, 1.11, 1.12 pj_gridinfo.patch, 1.2, NONE proj.test_scripts.patch, 1.1, NONE

Balint Cristian (rezso) fedora-extras-commits at redhat.com
Thu Mar 27 22:11:25 UTC 2008


Author: rezso

Update of /cvs/pkgs/rpms/proj/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2044/F-8

Modified Files:
	proj.spec 
Removed Files:
	pj_gridinfo.patch proj.test_scripts.patch 
Log Message:
* Thu Mar 27 2008 Balint Cristian <rezso at rdsor.ro> - 4.5.0-3
- enable EPSG dataset to be packed GRASS really needs it
- no more license issue over epsg dataset, proj didnt altered
  EPSG dataset in any way, so its fully EPSG license compliant
- add support for tests during buildtime
- disable hardcoded r-path from libs
- fix shebag for nad scripts
 ----------------------------------------------------------------------
 Modified Files:
 	F-8/proj.spec 
 Removed Files:
 	F-8/pj_gridinfo.patch F-8/proj.test_scripts.patch 
 ----------------------------------------------------------------------



Index: proj.spec
===================================================================
RCS file: /cvs/pkgs/rpms/proj/F-8/proj.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- proj.spec	4 Jan 2007 04:49:28 -0000	1.11
+++ proj.spec	27 Mar 2008 22:10:43 -0000	1.12
@@ -1,6 +1,6 @@
 Name: proj
 Version: 4.5.0
-Release: 1%{?dist}
+Release: 4%{?dist}
 Summary: Cartographic projection software (PROJ.4)
 
 Group: Applications/Engineering
@@ -12,6 +12,8 @@
 Patch0: proj.copyright.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+BuildRequires: libtool
+
 %package devel
 Summary: Development files for PROJ.4
 Group: Development/Libraries
@@ -22,6 +24,11 @@
 Group: Applications/Engineering
 Requires: %{name} = %{version}-%{release}
 
+%package epsg
+Summary: EPSG dataset for PROJ.4
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+
 %description
 Proj and invproj perform respective forward and inverse transformation of
 cartographic data to or from cartesian data with a wide range of selectable
@@ -33,6 +40,9 @@
 %description nad
 This package contains additional US and Canadian datum shift grids.
 
+%description epsg
+This package contains additional EPSG dataset.
+
 %prep
 %setup -q
 
@@ -41,10 +51,19 @@
 %patch0 -p0 -b .buildroot
 cp proj.copyright COPYING
 
+# disable internal libtool to avoid hardcoded r-path
+for makefile in `find . -type f -name 'Makefile.in'`; do
+sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' $makefile
+done
+
 # Prepare nad
 cd nad
 unzip %{SOURCE1}
 cd ..
+# fix shebag header of scripts
+for script in `find nad/ -type f -perm -a+x`; do
+sed -i -e '1,1s|:|#!/bin/bash|' $script
+done
 
 %build
 %configure
@@ -55,6 +74,19 @@
 %makeinstall
 install -p -m 0644 nad/pj_out27.dist nad/pj_out83.dist nad/td_out.dist $RPM_BUILD_ROOT%{_datadir}/%{name}
 install -p -m 0755 nad/test27 nad/test83 nad/testvarious $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -p -m 0644 nad/epsg $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%check
+pushd nad
+# set test enviroment for porj
+export PROJ_LIB=$RPM_BUILD_ROOT%{_datadir}/%{name}
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH%{buildroot}%{_libdir}
+# run tests for proj
+./test27      $RPM_BUILD_ROOT%{_bindir}/%{name} || exit 0
+./test83      $RPM_BUILD_ROOT%{_bindir}/%{name} || exit 0
+./testntv2    $RPM_BUILD_ROOT%{_bindir}/%{name} || exit 0
+./testvarious $RPM_BUILD_ROOT%{_bindir}/%{name} || exit 0
+popd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -83,9 +115,29 @@
 %attr(0755,root,root) %{_datadir}/%{name}/test27
 %attr(0755,root,root) %{_datadir}/%{name}/test83
 %attr(0755,root,root) %{_datadir}/%{name}/testvarious
+%exclude %{_datadir}/%{name}/epsg
 %{_datadir}/%{name}
 
+%files epsg
+%doc nad/README
+%defattr(-,root,root,-)
+%attr(0644,root,root) %{_datadir}/%{name}/epsg
+
 %changelog
+* Thu Mar 27 2008 Balint Cristian <rezso at rdsor.ro> - 4.5.0-4
+- BuildRequire: libtool
+
+* Thu Mar 27 2008 Balint Cristian <rezso at rdsor.ro> - 4.5.0-3
+- enable EPSG dataset to be packed GRASS really needs it
+- no more license issue over epsg dataset, proj didnt altered
+  EPSG dataset in any way, so its fully EPSG license compliant
+- add support for tests during buildtime
+- disable hardcoded r-path from libs
+- fix shebag for nad scripts
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 4.5.0-2
+- Autorebuild for GCC 4.3
+
 * Tue Jan   2 2007 Shawn McCann <mccann0011 at hotmail.com> - 4.5.0-1
 - Updated to proj-4.5.0 and datumgrid-1.3
 


--- pj_gridinfo.patch DELETED ---


--- proj.test_scripts.patch DELETED ---




More information about the fedora-extras-commits mailing list