File mingw64-proj.spec of Package mingw64-proj
# spec file for package proj
#
#
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: mingw64-proj
Version: 4.9.3
Release: 0
Summary: Cartographic projection software
License: MIT
Url: ftp://ftp.remotesensing.org/proj/
Source0: proj-%{version}.tar.gz
Source1: proj-datumgrid-1.6.zip
Group: Productivity/Scientific/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-pkg-config
%package -n mingw64-libproj12
Summary: Cartographic projection software
Group: Applications/GIS
%package -n mingw64-libproj-devel
Summary: Development files for PROJ
Group: Development/Libraries/C and C++
Requires: mingw64-libproj12 = %{version}
%_mingw64_package_header_debug
%description
This package offers the command line tools for performing respective
forward and inverse transformation of cartographic data to or from Cartesian
data with a wide range of selectable projection functions.
%description -n mingw64-libproj12
This package the library for performing respective
forward and inverse transformation of cartographic data to or from Cartesian
data with a wide range of selectable projection functions.
%description -n mingw64-libproj-devel
This package contains libproj and the appropriate header files and man pages.
%_mingw64_debug_package
%prep
%setup -q -b 0 -n proj-%{version}
# cd nad
# bunzip2 -o %{SOURCE1}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--disable-static
make %{?_smp_mflags} || make
ls -lR
%install
make DESTDIR=$RPM_BUILD_ROOT install
ls -lR $RPM_BUILD_ROOT
# chmod -x $RPM_BUILD_ROOT%{_mingw64_libdir}/*.def
rm -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc NEWS AUTHORS COPYING README ChangeLog
%{_mingw64_bindir}/*.exe
%{_mingw64_mandir}/man1/*.1*
%dir %{_mingw64_datadir}/proj
%{_mingw64_datadir}/proj/*
%files -n mingw64-libproj12
%defattr(-,root,root)
%{_mingw64_bindir}/*.dll
%files -n mingw64-libproj-devel
%defattr(-,root,root)
%{_mingw64_mandir}/man3/*.3*
%{_mingw64_includedir}/*.h
# %{_mingw64_libdir}/*.def
%{_mingw64_libdir}/*.dll.a
%{_mingw64_libdir}/pkgconfig/proj.pc
%changelog
* Tue Sep 20 2011 Roger Oberholtzer <roger@opq.se> - 4.7.0-0
- Initial MinGW32 support. spec based on openSUSE version of proj