Summary: FortranGIS Fortran interfaces Open Source GIS libraries Name: fortrangis Version: 2.6 Release: 1 License: LGPL Group: Applications/GIS URL: http://fortrangis.berlios.de/ Packager: Davide Cesari Source: https://github.com/arpa-simc/%{name}/archive/v%{version}-%{release}.tar.gz#/%{name}-%{version}-%{release}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: shapelib-devel gdal-devel proj-devel gcc-gfortran libtool %if 0%{?fedora} < 9 || 0%{?rhel} %define _fmoddir %{_libdir}/gfortran/modules %endif %package -n fortrangis-devel Summary: FortranGIS development files Group: Applications/GIS Requires: %{name} %if 0%{?fedora} >= 9 %package -n fortrangis-doc Summary: FortranGIS documentation Group: Applications/GIS %endif %description -n fortrangis-devel Development files, necessary for building applications using FortranGIS %if 0%{?fedora} >= 9 %description -n fortrangis-doc Doxygen documentation for FortranGIS package %endif %description FortranGIS is a collection of Fortran interfaces to the most common Open Source GIS libraries, plus some more Fortran-specific tools. The libraries interfaced at the moment are Shapelib, GDAL and Proj. %prep %setup -q -n %{name}-%{version}-%{release} %build autoreconf -ifv %configure %{?fedora:CPPFLAGS=-I/usr/include/libshp} %{?rhel:--disable-doxydoc} make %install make DESTDIR=%{buildroot} install %if 0%{?fedora} >= 9 || 0%{?rhel} mkdir -p $RPM_BUILD_ROOT%{_fmoddir} mv $RPM_BUILD_ROOT%{_includedir}/*.mod $RPM_BUILD_ROOT%{_fmoddir} %endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-, root, root) %{_libdir}/*.so.* %doc %{_datadir}/doc/%{name}-%{version}/COPYING %doc %{_datadir}/doc/%{name}-%{version}/README.md %files -n fortrangis-devel %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %if 0%{?fedora} < 9 && !0%{?rhel} %{_includedir}/* %else %{_fmoddir}/*.mod %endif %if 0%{?fedora} >= 9 %files -n fortrangis-doc %defattr(-,root,root,-) %doc %{_datadir}/doc/%{name}-%{version}/html %endif %pre %post %preun %postun %changelog * Wed Jul 13 2016 Daniele Branchini - 2.6-1 - upstream patch for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68040 * Tue Jul 12 2016 Daniele Branchini - 2.4-2 - automatizing rpmbuild * Tue Mar 22 2016 Dario Mastropasqua,,, 2.4-2 - disabled fortrangis-doc package in RHEL (CentOS) because doxygen crashes - corrected Fortran mod dir for RHEL (CentOS)