dcavalca / rpms / qmapshack

Forked from rpms/qmapshack 2 years ago
Clone
1dfd165
Name: qmapshack
623f157
Version: 1.9.0
623f157
Release: 1%{?dist}
1dfd165
Summary: GPS mapping and management tool
1dfd165
1dfd165
Group: Applications/Communications
1dfd165
License: GPLv3+ and BSD
1dfd165
URL: https://bitbucket.org/maproom/qmapshack/wiki/Home
1dfd165
Source0: https://bitbucket.org/maproom/%{name}/downloads/%{name}-%{version}.tar.gz
cfb0b8e
# use planetsplitter from routino package
17212bd
Patch0: %{name}-1.8.0-system-routino.patch
17212bd
# revert to routino 3.0 API
17212bd
Patch1: %{name}-1.8.0-routino30.patch
1dfd165
Requires: proj-epsg
cfb0b8e
Requires: routino
1dfd165
17212bd
%if 0%{?rhel}
17212bd
BuildRequires: cmake3
17212bd
%else
1dfd165
BuildRequires: cmake
17212bd
%endif
1dfd165
BuildRequires: pkgconfig(Qt5Widgets)
1dfd165
BuildRequires: pkgconfig(Qt5Core)
1dfd165
BuildRequires: pkgconfig(Qt5Xml)
1dfd165
BuildRequires: pkgconfig(Qt5Script)
1dfd165
BuildRequires: pkgconfig(Qt5Sql)
1dfd165
BuildRequires: pkgconfig(Qt5WebKitWidgets)
1dfd165
BuildRequires: qt5-qttools-devel
1dfd165
BuildRequires: proj-devel
1dfd165
BuildRequires: gdal-devel
cfb0b8e
BuildRequires: zlib-devel
a2902b3
BuildRequires: routino-devel
9d5186e
BuildRequires: alglib-devel
17212bd
BuildRequires: quazip-qt5-devel
1dfd165
BuildRequires: desktop-file-utils
1dfd165
1dfd165
1dfd165
%description
1dfd165
QMapShack provides a versatile tool for GPS maps in GeoTiff format as well as
1dfd165
Garmin's img vector map format. You can also view and edit your GPX tracks.
1dfd165
QMapShack is the successor of QLandkarteGT.
1dfd165
1dfd165
Main features:
1dfd165
- use of several work-spaces
1dfd165
- use several maps on a work-space
1dfd165
- handle data project-oriented
1dfd165
- exchange data with the device by drag-n-drop
1dfd165
1dfd165
1dfd165
%prep
1dfd165
%setup -q
1dfd165
%patch0 -p1
b2c1c7b
%if 0%{?rhel} || 0%{?fedora} < 26
b2c1c7b
# starting with F-26 we have routino 3.2
cfb0b8e
%patch1 -p1
17212bd
%endif
1dfd165
1dfd165
# create build directory
1dfd165
mkdir build
1dfd165
1dfd165
1dfd165
%build
1dfd165
cd build
9bd6b81
%if 0%{?rhel}
9bd6b81
%cmake3 -DBUILD_SHARED_LIBS:BOOL=OFF ..
9bd6b81
%else
1dfd165
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF ..
9bd6b81
%endif
1dfd165
make VERBOSE=1 %{?_smp_mflags}
1dfd165
1dfd165
1dfd165
%install
1dfd165
cd build
1dfd165
make install DESTDIR=%{buildroot}
1dfd165
1dfd165
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
1dfd165
1dfd165
1dfd165
%post
1dfd165
/usr/bin/update-desktop-database &> /dev/null || :
1dfd165
1dfd165
%postun
1dfd165
/usr/bin/update-desktop-database &> /dev/null || :
1dfd165
1dfd165
1dfd165
%files
1dfd165
%license LICENSE
1dfd165
%doc changelog.txt
1dfd165
%{_bindir}/%{name}
1dfd165
%{_datadir}/applications/%{name}.desktop
a2902b3
%{_datadir}/icons/hicolor/*/apps/QMapShack.*
1dfd165
%{_datadir}/pixmaps/QMapShack.png
1dfd165
%{_datadir}/%{name}
1dfd165
%{_mandir}/man1/%{name}.*
1dfd165
1dfd165
1dfd165
%changelog
623f157
* Wed Aug 02 2017 Dan Horák <dan@danny.cz> - 1.9.0-1
623f157
- update to 1.9.0 (#1474557)
623f157
a5d732e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
a5d732e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a5d732e
bb1e8ab
* Mon May 15 2017 Dan Horák <dan@danny.cz> - 1.8.1-1
bb1e8ab
- update to 1.8.1 (#1450653)
bb1e8ab
d883365
* Fri May 12 2017 Sandro Mani <manisandro@gmail.com> - 1.8.0-2
d883365
- Rebuild (alglib)
d883365
17212bd
* Mon Mar 27 2017 Dan Horák <dan@danny.cz> - 1.8.0-1
17212bd
- update to 1.8.0
17212bd
6bc1fa5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3
6bc1fa5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6bc1fa5
c22f262
* Tue Jan 31 2017 Dan Horák <dan@danny.cz> - 1.7.2-2
c22f262
- Rebuilt for proj 4.9.3
c22f262
9d5186e
* Tue Dec 13 2016 Dan Horák <dan[at]danny.cz> - 1.7.2-1
9d5186e
- update to 1.7.2
9d5186e
3cbde93
* Tue Sep 13 2016 Dan Horák <dan[at]danny.cz> - 1.7.1-1
3cbde93
- update to 1.7.1
3cbde93
6bbb4d1
* Tue Sep 13 2016 Dan Horák <dan[at]danny.cz> - 1.7.0-1
6bbb4d1
- update to 1.7.0
6bbb4d1
0a31fe8
* Thu Jul 14 2016 Dan Horák <dan[at]danny.cz> - 1.6.3-1
0a31fe8
- update to 1.6.3
0a31fe8
e6c5704
* Mon Jul 04 2016 Dan Horák <dan[at]danny.cz> - 1.6.2-1
e6c5704
- update to 1.6.2
e6c5704
64045a6
* Mon Mar 28 2016 Dan Horák <dan[at]danny.cz> - 1.6.1-1
64045a6
- update to 1.6.1
64045a6
88ab6e2
* Fri Feb 26 2016 Dan Horák <dan[at]danny.cz> - 1.6.0-1
88ab6e2
- update to 1.6.0
88ab6e2
26c8db4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
26c8db4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
26c8db4
7ce9016
* Sun Nov 22 2015 Dan Horák <dan[at]danny.cz> - 1.5.1-1
7ce9016
- update to 1.5.1
7ce9016
a2902b3
* Thu Nov 12 2015 Dan Horák <dan[at]danny.cz> - 1.4.0-1
a2902b3
- update to 1.4.0
a2902b3
abfaf43
* Mon Jul 27 2015 Dan Horák <dan@danny.cz> - 1.3.0-2
abfaf43
- rebuild for GDAL 2.0
abfaf43
cfb0b8e
* Thu Jul 02 2015 Dan Horák <dan[at]danny.cz> - 1.3.0-1
cfb0b8e
- update to 1.3.0
cfb0b8e
1dfd165
* Wed Jun 24 2015 Dan Horák <dan[at]danny.cz> - 1.2.2-1
1dfd165
- update to 1.2.2
1dfd165
- add missing desktop-database scriptlets
1dfd165
- fix license tag
1dfd165
1dfd165
* Tue Apr 14 2015 Dan Horák <dan[at]danny.cz> - 1.2.0-1
1dfd165
- update to 1.2.0
1dfd165
1dfd165
* Sun Apr 05 2015 Dan Horák <dan[at]danny.cz> - 1.1.0-1
1dfd165
- initial Fedora version