dcavalca / rpms / qmapshack

Forked from rpms/qmapshack 2 years ago
Clone
1dfd165
Name: qmapshack
bcbb694
Version: 1.13.0
3ba0a2a
Release: 6%{?dist}
1dfd165
Summary: GPS mapping and management tool
1dfd165
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
17212bd
# revert to routino 3.0 API
1001b7a
Patch1: %{name}-1.11.0-routino30.patch
3ba0a2a
# don't rely on proj for cmake config
3ba0a2a
Patch2: FindPROJ4.patch
1dfd165
Requires: proj-epsg
1001b7a
%if 0%{?fedora}
1001b7a
Recommends: routino
1001b7a
Recommends: qmaptool
1001b7a
%else
cfb0b8e
Requires: routino
1001b7a
Requires: qmaptool
1001b7a
%endif
1dfd165
1001b7a
BuildRequires: gcc-c++
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)
f605ca9
BuildRequires: pkgconfig(Qt5WebEngineWidgets)
289da29
BuildRequires: pkgconfig(Qt5UiTools)
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
b4c6f51
BuildRequires: libjpeg-devel
1dfd165
BuildRequires: desktop-file-utils
1dfd165
f605ca9
# because new dependency on WebEngine
f605ca9
ExclusiveArch: %{qt5_qtwebengine_arches}
f605ca9
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
1001b7a
%package -n qmaptool
d0846c9
Version: 1.1.1
1001b7a
Summary: Create raster maps from paper map scans
1001b7a
URL: https://bitbucket.org/maproom/qmaptool/wiki/Home
1001b7a
1001b7a
%description -n qmaptool
1001b7a
This is a tool to create raster maps from paper map scans. QMapTool can be
1001b7a
considered as a front-end to the well-known GDAL package. It complements
1001b7a
QMapShack.
1001b7a
1001b7a
1dfd165
%prep
1dfd165
%setup -q
b2c1c7b
%if 0%{?rhel} || 0%{?fedora} < 26
b2c1c7b
# starting with F-26 we have routino 3.2
cfb0b8e
%patch1 -p1
17212bd
%endif
3ba0a2a
%if 0%{?rhel} || 0%{?fedora} < 31
3ba0a2a
# starting with F-31 we have proj package with the cmake config
3ba0a2a
%patch2 -p1
3ba0a2a
%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
1001b7a
desktop-file-validate %{buildroot}%{_datadir}/applications/qmaptool.desktop
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
1001b7a
%{_datadir}/%{name}/
1dfd165
%{_mandir}/man1/%{name}.*
1dfd165
1001b7a
%files -n qmaptool
1001b7a
%{_bindir}/qmaptool
1001b7a
%{_bindir}/qmt_*
1001b7a
%{_datadir}/applications/qmaptool.desktop
1001b7a
%{_datadir}/icons/hicolor/*/apps/QMapTool.*
1001b7a
%{_datadir}/pixmaps/QMapTool.png
1001b7a
%{_datadir}/qmaptool/
1001b7a
%{_datadir}/qmt_*/
1001b7a
%{_mandir}/man1/qmaptool.*
1001b7a
%{_mandir}/man1/qmt_*.*
1001b7a
1dfd165
1dfd165
%changelog
3ba0a2a
* Tue May 14 2019 Dan Horák <dan@danny.cz> - 1.13.0-6
3ba0a2a
- allow build in F<=30
3ba0a2a
bcbb694
* Tue Apr 16 2019 Dan Horák <dan@danny.cz> - 1.13.0-5
bcbb694
- update to 1.13.0 (#1697564)
bcbb694
69586bc
* Sat Feb 23 2019 Sandro Mani <manisandro@gmail.com> - 1.12.3-4
69586bc
- Rebuild (alglib)
69586bc
83f8dcf
* Sat Feb 09 2019 Dan Horák <dan@danny.cz> - 1.12.3-3
83f8dcf
- update to 1.12.3 (#1672366)
83f8dcf
a9d17d9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-2
a9d17d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a9d17d9
7fa6027
* Sat Dec 22 2018 Dan Horák <dan@danny.cz> - 1.12.1-1
7fa6027
- update to 1.12.1
7fa6027
f605ca9
* Tue Sep 04 2018 Dan Horák <dan@danny.cz> - 1.12.0-1
f605ca9
- update to 1.12.0
f605ca9
4df9f2f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-3
4df9f2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4df9f2f
9065393
* Sun Jul 01 2018 Sandro Mani <manisandro@gmail.com> - 1.11.1-2
9065393
- Rebuild (alglib)
9065393
3ace09b
* Thu Apr 19 2018 Dan Horák <dan@danny.cz> - 1.11.1-1
3ace09b
- update to 1.11.1 (#1569518)
3ace09b
1001b7a
* Mon Mar 12 2018 Dan Horák <dan@danny.cz> - 1.11.0-1
1001b7a
- update to 1.11.0 (#1551560)
1001b7a
75ba402
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
75ba402
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
75ba402
cdeee18
* Sun Dec 31 2017 Sandro Mani <manisandro@gmail.com> - 1.10.0-2
cdeee18
- Rebuild (alglib)
cdeee18
30ab211
* Thu Dec 21 2017 Dan Horák <dan@danny.cz> - 1.10.0-1
30ab211
- update to 1.10.0 (#1528494)
30ab211
289da29
* Mon Sep 18 2017 Dan Horák <dan@danny.cz> - 1.9.1-1
289da29
- update to 1.9.1 (#1492506)
289da29
182bdda
* Thu Aug 24 2017 Sandro Mani <manisandro@gmail.com> - 1.9.0-2
182bdda
- Rebuild (alglib)
182bdda
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