From 4403669ef090dbd7be9c9505a2521b3975788259 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mar 07 2012 16:49:59 +0000 Subject: Merge git://pkgs.fedoraproject.org/mingw32-proj --- diff --git a/.gitignore b/.gitignore index e69de29..415d2cb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +proj-4.6.1.tar.gz diff --git a/mingw32-proj.spec b/mingw32-proj.spec new file mode 100644 index 0000000..d47cbc2 --- /dev/null +++ b/mingw32-proj.spec @@ -0,0 +1,85 @@ +%global __strip %{_mingw32_strip} +%global __objdump %{_mingw32_objdump} +%global _use_internal_dependency_generator 0 +%global __find_requires %{_mingw32_findrequires} +%global __find_provides %{_mingw32_findprovides} + +%global nativename proj + +Name: mingw32-%{nativename} +Version: 4.6.1 +Release: 7%{?dist} +Summary: Cartographic projection software (PROJ.4) + +Group: Applications/Engineering +License: MIT +URL: http://proj.osgeo.org +Source0: http://download.osgeo.org/proj/proj-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: libtool +BuildRequires: mingw32-filesystem >= 35 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-binutils + +Patch: proj-noundefined.patch + +%description +Proj and invproj perform respective forward and inverse transformation of +cartographic data to or from cartesian data with a wide range of selectable +projection functions. Proj docs: http://www.remotesensing.org/dl/new_docs/ + +%prep +%setup -q -n %{nativename}-%{version} + +%patch -p 1 + +%build +%{_mingw32_configure} --disable-static +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +# Remove libtool archives +rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libproj.la + +# Remove inverse program symbolic links +rm $RPM_BUILD_ROOT%{_mingw32_bindir}/inv*.exe + +# Remove unneeded files +rm -R $RPM_BUILD_ROOT%{_mingw32_datadir}/* + +%check + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc NEWS AUTHORS COPYING README ChangeLog +%{_mingw32_bindir}/libproj-0.dll +%{_mingw32_bindir}/*.exe +%{_mingw32_libdir}/libproj.dll.a +%{_mingw32_includedir}/*.h + +%changelog +* Mon Feb 27 2012 Erik van Pienbroek - 4.6.1-7 +- Rebuild against the mingw-w64 toolchain + +* Fri Jan 13 2012 Fedora Release Engineering - 4.6.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 4.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Oct 15 2009 David Ludlow - 4.6.1-4 +- Don't remove build executables + +* Thu Oct 15 2009 David Ludlow - 4.6.1-3 +- Updates for Fedora packaging + +* Wed Sep 9 2009 David Ludlow - 4.6.1-2 +- Initial creation of mingw32 package diff --git a/proj-noundefined.patch b/proj-noundefined.patch new file mode 100644 index 0000000..45b6302 --- /dev/null +++ b/proj-noundefined.patch @@ -0,0 +1,23 @@ +--- orig/src/Makefile.am 2008-08-05 12:33:48.000000000 -0400 ++++ new/src/Makefile.am 2009-09-09 13:28:00.000000000 -0400 +@@ -20,7 +20,7 @@ + + lib_LTLIBRARIES = libproj.la + +-libproj_la_LDFLAGS = -version-info 5:5:5 ++libproj_la_LDFLAGS = -version-info 5:5:5 -no-undefined + + libproj_la_SOURCES = \ + projects.h pj_list.h \ +--- orig/src/Makefile.in 2008-08-21 22:58:46.000000000 -0400 ++++ new/src/Makefine.in 2009-09-09 13:49:41.000000000 -0400 +@@ -253,7 +253,7 @@ + nad2bin_LDADD = libproj.la + geod_LDADD = libproj.la + lib_LTLIBRARIES = libproj.la +-libproj_la_LDFLAGS = -version-info 5:5:5 ++libproj_la_LDFLAGS = -version-info 5:5:5 -no-undefined + libproj_la_SOURCES = \ + projects.h pj_list.h \ + PJ_aeqd.c PJ_gnom.c PJ_laea.c PJ_mod_ster.c \ + diff --git a/sources b/sources index e69de29..82db244 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7dbaab8431ad50c25669fd3fb28dc493 proj-4.6.1.tar.gz