From 1a557ef8fdf484fffc24659e17394d06f878d6ea Mon Sep 17 00:00:00 2001 From: Christian Krause Date: Sep 20 2013 21:50:52 +0000 Subject: Unretire gpx-viewer (#1008701) --- diff --git a/.gitignore b/.gitignore index f3dad83..6897607 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ gpx-viewer-0.1.2.tar.gz /gpx-viewer-0.2.0.tar.gz +/gpx-viewer-0.3.0.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index fdb4bd0..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -This package was retired on 2012-02-06, as it failed to properly build for multiple releases. diff --git a/gpx-viewer-0.3.0-desktopdir.patch b/gpx-viewer-0.3.0-desktopdir.patch new file mode 100644 index 0000000..ba59586 --- /dev/null +++ b/gpx-viewer-0.3.0-desktopdir.patch @@ -0,0 +1,12 @@ +diff -uNr gpx-viewer-0.3.0.old/Makefile.am gpx-viewer-0.3.0/Makefile.am +--- gpx-viewer-0.3.0.old/Makefile.am 2012-07-15 18:04:41.000000000 +0200 ++++ gpx-viewer-0.3.0/Makefile.am 2013-05-18 19:02:08.266284518 +0200 +@@ -4,7 +4,7 @@ + ## + # GPX Viewer + ## +-desktopdir = $(DESTDIR)/$(datadir)/applications ++desktopdir = $(datadir)/applications + desktop_in_files = data/gpx-viewer.desktop.in + desktop_DATA=$(desktop_in_files:.desktop.in=.desktop) + @INTLTOOL_DESKTOP_RULE@ diff --git a/gpx-viewer-0.3.0-desktopfile.patch b/gpx-viewer-0.3.0-desktopfile.patch new file mode 100644 index 0000000..b07120a --- /dev/null +++ b/gpx-viewer-0.3.0-desktopfile.patch @@ -0,0 +1,15 @@ +diff -uNr gpx-viewer-0.3.0.old/data/gpx-viewer.desktop.in gpx-viewer-0.3.0/data/gpx-viewer.desktop.in +--- gpx-viewer-0.3.0.old/data/gpx-viewer.desktop.in 2012-06-16 21:18:49.000000000 +0200 ++++ gpx-viewer-0.3.0/data/gpx-viewer.desktop.in 2013-08-22 00:56:18.721772700 +0200 +@@ -2,9 +2,9 @@ + _Name=GPX Viewer + _Comment=A simple program to visualize one or more gpx files. + Exec=gpx-viewer %U +-MimeType=application/gpx+xml ++MimeType=application/gpx+xml; + Terminal=false + Type=Application + Icon=gpx-viewer +-Categories=GNOME;GTK;Utility; ++Categories=GNOME;GTK;Education;Geography; + StartupNotify=true diff --git a/gpx-viewer-0.3.0-usability.patch b/gpx-viewer-0.3.0-usability.patch new file mode 100644 index 0000000..871bcf3 --- /dev/null +++ b/gpx-viewer-0.3.0-usability.patch @@ -0,0 +1,69 @@ +=== modified file 'data/gpx-viewer.ui' +--- data/gpx-viewer.ui 2012-06-07 16:23:37 +0000 ++++ data/gpx-viewer.ui 2013-08-21 22:31:40 +0000 +@@ -195,6 +195,7 @@ + + True + True ++ 350 + + + + +=== modified file 'src/gpx-viewer.c' +--- src/gpx-viewer.c 2012-06-17 09:03:11 +0000 ++++ src/gpx-viewer.c 2013-08-21 22:29:20 +0000 +@@ -871,7 +871,7 @@ + { + route->track = g_object_ref(track); + } +- route->visible = FALSE; ++ route->visible = TRUE; + + /* draw the track */ + interface_map_plot_route(view, route); +@@ -927,6 +927,12 @@ + } + + priv->routes = g_list_append(priv->routes, route); ++ GtkTreeSelection *gts = gtk_tree_view_get_selection(GTK_TREE_VIEW(gtk_builder_get_object(priv->builder, "TracksTreeView"))); ++ if (gts != NULL) ++ { ++ GtkTreePath *path = gtk_tree_model_get_path(GTK_TREE_MODEL(model), &liter); ++ gtk_tree_selection_select_path(gts, path); ++ } + } + + void main_window_size_changed(GtkWindow *win, GtkAllocation *alloc, gpointer data) +@@ -1452,6 +1458,9 @@ + "File and track list", + GDL_DOCK_ITEM_BEH_CANT_CLOSE + |GDL_DOCK_ITEM_BEH_CANT_ICONIFY ++ |GDL_DOCK_ITEM_BEH_NEVER_FLOATING ++ |GDL_DOCK_ITEM_BEH_NO_GRIP ++ |GDL_DOCK_ITEM_BEH_LOCKED + ); + gtk_container_add(GTK_CONTAINER(item), flw); + gdl_dock_add_item(GDL_DOCK(dock), GDL_DOCK_ITEM(item), GDL_DOCK_LEFT); +@@ -1463,6 +1472,10 @@ + "Detailed track information", + GDL_DOCK_ITEM_BEH_CANT_CLOSE + |GDL_DOCK_ITEM_BEH_CANT_ICONIFY ++ |GDL_DOCK_ITEM_BEH_NEVER_FLOATING ++ |GDL_DOCK_ITEM_BEH_NEVER_HORIZONTAL ++ |GDL_DOCK_ITEM_BEH_NO_GRIP ++ |GDL_DOCK_ITEM_BEH_LOCKED + ); + gtk_container_add(GTK_CONTAINER(item), tiw); + gdl_dock_add_item(GDL_DOCK(dock), GDL_DOCK_ITEM(item), GDL_DOCK_CENTER); +@@ -1474,6 +1487,9 @@ + "Map and graph settings", + GDL_DOCK_ITEM_BEH_CANT_CLOSE + |GDL_DOCK_ITEM_BEH_CANT_ICONIFY ++ |GDL_DOCK_ITEM_BEH_NEVER_FLOATING ++ |GDL_DOCK_ITEM_BEH_NO_GRIP ++ |GDL_DOCK_ITEM_BEH_LOCKED + ); + gtk_container_add(GTK_CONTAINER(item), swi); + gdl_dock_add_item(GDL_DOCK(dock), GDL_DOCK_ITEM(item), GDL_DOCK_CENTER); + diff --git a/gpx-viewer.spec b/gpx-viewer.spec new file mode 100644 index 0000000..8af623a --- /dev/null +++ b/gpx-viewer.spec @@ -0,0 +1,134 @@ +Name: gpx-viewer +Version: 0.3.0 +Release: 1%{?dist} +Summary: A simple gpx viewer + +Group: Applications/Internet +License: GPLv2+ +URL: https://edge.launchpad.net/gpx-viewer +Source0: http://edge.launchpad.net/gpx-viewer/trunk/0.2.0/+download/%{name}-%{version}.tar.gz +Patch0: gpx-viewer-0.3.0-desktopdir.patch +Patch1: gpx-viewer-0.3.0-desktopfile.patch +Patch2: gpx-viewer-0.3.0-usability.patch + +BuildRequires: gtk2-devel +BuildRequires: libchamplain-devel +BuildRequires: libchamplain-gtk-devel +BuildRequires: vala-devel +BuildRequires: libxml2-devel +BuildRequires: libgdl-devel +BuildRequires: unique-devel +BuildRequires: desktop-file-utils +BuildRequires: intltool +BuildRequires: autoconf libtool gnome-common + +Requires: hicolor-icon-theme +Requires: shared-mime-info + + +%description +GPX Viewer is a simple program to visualize a gpx file. It has no +intention to become a full blown manager, editor or analyzer. + + +%prep +%setup -q +%patch0 -p1 -b.desktopdir +%patch1 -p1 -b.desktopfile +%patch2 -p0 -b.usability +libtoolize -f +intltoolize -f +autoreconf -f + +%build +%configure --disable-database-updates +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} INSTALL="install -p" +desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop +%find_lang %{name} + + +%post +/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : +/usr/bin/update-desktop-database &> /dev/null || : +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + + +%postun +/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : +/usr/bin/update-desktop-database &> /dev/null || : +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README +%{_bindir}/%{name} +%{_datadir}/%{name}/ +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*x*/apps/%{name}.png +%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg +%{_datadir}/mime/packages/gpx-viewer.xml + +%changelog +* Fri Sep 20 2013 Christian Krause - 0.3.0-1 +- Unretire gpx-viewer (#1008701) + +* Fri Jan 13 2012 Fedora Release Engineering - 0.2.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Dec 06 2011 Adam Jackson - 0.2.0-6 +- Rebuild for new libpng + +* Tue Feb 08 2011 Fedora Release Engineering - 0.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Oct 4 2010 Bill Nottingham - 0.2.0-3 +- Fix build +- drop mesa-drivers-dri-experimental buildreq + +* Mon Sep 06 2010 Fabian Affolter -0.2.0-2 +- Patch for configure is still needed + +* Mon Sep 06 2010 Fabian Affolter -0.2.0-1 +- Changed URL to new project home +- Added new BRs +- Patches removed +- Updated to new upstream version 0.2.0 + +* Fri Jul 09 2010 Fabian Affolter -0.1.2-3 +- Rebuild for libchamplain + +* Mon Mar 15 2010 Fabian Affolter -0.1.2-2 +- Added patch to fix DSOLinking (#565157) + +* Wed Nov 18 2009 Fabian Affolter - 0.1.2-1 +- Updated to new upstream version 0.1.2 + +* Sat Oct 10 2009 Fabian Affolter - 0.1.1-2 +- Added patches to make it work with new libchamplain + +* Wed Sep 09 2009 Fabian Affolter - 0.1.1-1 +- Updated to new upstream version 0.1.1 + +* Fri Aug 14 2009 Fabian Affolter - 0.1.0-1 +- Updated source URL +- Updated to new upstream version 0.1.0 + +* Thu Aug 06 2009 Fabian Affolter - 0.0.7-2 +- Fixed BR + +* Mon Jul 07 2009 Fabian Affolter - 0.0.7-1 +- Updated to new upstream version 0.0.7 + +* Mon Jul 07 2009 Fabian Affolter - 0.0.5-1 +- Initial spec for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..b76963c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +936911d6adef4246c1659421a9694608 gpx-viewer-0.3.0.tar.gz