Sophie

Sophie

distrib > Mageia > 6 > armv5tl > by-pkgid > e0b90a98f5009d150b4f564260c6af96 > files > 9

gpsbabel-1.5.3-1.mga6.src.rpm

Summary:        GPSBabel converts GPS data from one format to another
Name:           gpsbabel
Version:        1.5.3
Release:        %mkrel 1
License:        GPLv2+
Group:          Geography
# Source:               http://prdownloads.sourceforge.net/%%{name}/%%{name}-%%{version}.tar.gz
# Needs to be downloaded from the http://www.gpsbabel.org/ URL.
Source:         %{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}.png
# Fedora patches:
# Remove network access requirement for XML doc builds and HTML doc reading
Patch1:         gpsbabel-1.4.2-xmldoc.patch
# Use system shapelib - not suitable for upstream in this form.
Patch2:         gpsbabel-1.5.3-use-system-shapelib.patch
# Pickup gmapbase.html from /usr/share/gpsbabel
Patch3:         gpsbabel-1.4.3-gmapbase.patch
# No automatic phone home by default (RHBZ 668865)
Patch4:         gpsbabel-1.4.3-nosolicitation.patch
Patch6:         gpsbabel-1.5.3-Use-system-zlib.patch
URL:            http://www.gpsbabel.org
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(minizip)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(shapelib)
BuildRequires:  pkgconfig(QtCore) >= 4
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(QtWebKit)

%description
GPSBabel converts waypoints, tracks, and routes from one format to another,
whether that format is a common mapping format like Delorme, Streets and
Trips, or even a serial upload or download to a GPS unit such as those from
Garmin and Magellan. By flatting the Tower of Babel that the authors of
various programs for manipulating GPS data have imposed upon us, it returns
to us the ability to freely move our own waypoint data between the programs
and hardware we choose to use.

%package gui
Summary:        Qt GUI interface for GPSBabel
Group:          Geography
License:        GPLv2+
Requires:       %{name} = %{version}-%{release}

%description gui
Qt GUI interface for GPSBabel

%prep
%setup -q -c %{name}-%{version}
# Use system shapelib instead of bundled partial shapelib
rm -rf shapelib
%patch1 -p1
%patch2 -p1 -b .SHAPE
%patch3 -p1
%patch4 -p1
%patch6 -p1 -b .ZL

# Get rid of bundled zlib
# configure --with-zlib=system is not enough,
# building still accesses bundled zlib headers
rm -rf zlib/*
touch zlib/empty.in

# Avoid calling autoconf from Makefile
touch -r configure.in configure Makefile.in

%build
%configure2_5x --with-zlib=system
# fix linking:
perl -pi -e 's! -lm ! -lm -lshp !' Makefile
%make
pushd gui
%qmake_qt4
lrelease *.ts
%make
popd

%install
install -d %buildroot%{_bindir}
%makeinstall_std

%makeinstall_std -C gui
install -m 0755 -d                            %{buildroot}%{_bindir}/
install -m 0755 -p gui/objects/gpsbabelfe-bin %{buildroot}%{_bindir}/
install -m 0755 -d                            %{buildroot}%{translationdir}/
install -m 0644 -p gui/gpsbabel*_*.qm         %{buildroot}%{translationdir}/

desktop-file-install \
        --dir %{buildroot}/%{_datadir}/applications \
        %{SOURCE1}

install -m 0755 -d            %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
install -m 0644 -p %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/

%files
%doc README* COPYING
%{_bindir}/%{name}

%files gui
%doc gui/{AUTHORS,COPYING.txt,README*,TODO} gui/help/gpsbabel.html
%{_bindir}/gpsbabelfe-bin
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/256x256/apps/*


%changelog
* Sun Apr 17 2016 shlomif <shlomif> 1.5.3-1.mga6
+ Revision: 1003263
- New version 1.5.3. Regenerated some patches.

* Mon Feb 15 2016 umeabot <umeabot> 1.5.0-5.mga6
+ Revision: 960519
- Mageia 6 Mass Rebuild

* Sun Oct 18 2015 daviddavid <daviddavid> 1.5.0-4.mga6
+ Revision: 892582
- remove empty lang files to fix build with latest rpm

* Wed Oct 15 2014 umeabot <umeabot> 1.5.0-3.mga5
+ Revision: 750721
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.5.0-2.mga5
+ Revision: 679918
- Mageia 5 Mass Rebuild

* Sun Jul 06 2014 tv <tv> 1.5.0-1.mga5
+ Revision: 644129
- fix linking
- new release
- resync patches with FC
- switch to pkgconfig() style BRs

* Fri Oct 18 2013 umeabot <umeabot> 1.4.4-3.mga4
+ Revision: 505218
- Mageia 4 Mass Rebuild

* Sat Jan 12 2013 umeabot <umeabot> 1.4.4-2.mga3
+ Revision: 352540
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Oct 21 2012 fwang <fwang> 1.4.4-1.mga3
+ Revision: 308954
- update rpm group
- update file list
- more system shaplib patch
- br shapelib
- new version 1.4.4
- sycn with fedora patches

* Sun Dec 18 2011 fwang <fwang> 1.4.2-4.mga2
+ Revision: 183652
- br dekstop-file-utils
- br qtwebkit
- br qtwebkit

* Sun Apr 10 2011 dmorgan <dmorgan> 1.4.2-2.mga1
+ Revision: 82998
- Fix groups (#682)

* Fri Apr 01 2011 tv <tv> 1.4.2-1.mga1
+ Revision: 79586
- new version
- drop patch 1 (merged upstream)
- add GUI sub package

* Fri Apr 01 2011 tv <tv> 1.3.6-3.mga1
+ Revision: 79553
- imported package gpsbabel