7e493fc
Name:           marble
a3afcf0
d22032f
Version:        0.5.1
a3afcf0
Release:        1%{?dist}
d22032f
Summary:        A KDE4 Desktop Globe
7e493fc
7e493fc
Group:          Applications/Engineering
a3afcf0
License:        LGPLv2
7e493fc
7e493fc
URL:            http://edu.kde.org/marble/
d22032f
Source0:        http://developer.kde.org/~tackat/marble/%{name}-%{version}.tar.bz2
7e493fc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7e493fc
d22032f
Patch0:         %{name}-0.5-multilibs.patch
a3afcf0
BuildRequires:  qt4-devel cmake desktop-file-utils gpsd-devel
7e493fc
7e493fc
7e493fc
%description
7e493fc
Marble is a generic geographical map widget that is meant
7e493fc
to be used by KDE4 applications. It shows the earth as a
7e493fc
sphere but doesn't make use of any hardware acceleration
7e493fc
(No OpenGL). So although it might look similar to professional
7e493fc
applications like Google Earth or Nasa World Wind it's rather
7e493fc
meant to be a small light weight multi purpose widget.
7e493fc
a3afcf0
%package devel
a3afcf0
Summary:         Development files for marble
a3afcf0
Group:           Development/Libraries
a3afcf0
Requires:        %{name} = %{version}-%{release}
a3afcf0
Requires:        qt4-devel
7e493fc
7e493fc
a3afcf0
%description devel
a3afcf0
Development files for marble
7e493fc
40069a2
a3afcf0
%prep
a3afcf0
%setup -q -n %{name}
7e493fc
d22032f
%patch -p0 -b .rpath
40069a2
d22032f
%build
7e493fc
d22032f
%cmake -DQTONLY=ON                                  \
d22032f
       -DWITH_DESIGNER_PLUGIN=ON                    \
d22032f
       -DCMAKE_SKIP_RPATH=TRUE                      \
d22032f
       -DCMAKE_INSTALL_PREFIX=%{_prefix}            \
d22032f
       -DQT_QMAKE_EXECUTABLE=%{_bindir}/qmake-qt4 . \
d22032f
       -DICON_INSTALL_DIR=%{_datadir}/icons
7e493fc
7e493fc
%{__make} %{?_smp_mflags} VERBOSE=1
7e493fc
7e493fc
7e493fc
%install
7e493fc
%{__rm} -rf %{buildroot}
7e493fc
%{__make} install DESTDIR=%{buildroot}
7e493fc
7e493fc
cd4f96b
desktop-file-install --vendor fedora         \
7e493fc
  --dir %{buildroot}%{_datadir}/applications \
7e493fc
  --remove-category "Utility"                \
cd4f96b
  --delete-original                          \
7e493fc
  %{buildroot}%{_datadir}/applications/%{name}.desktop
7e493fc
7e493fc
%clean
7e493fc
%{__rm} -rf %{buildroot}
7e493fc
7e493fc
a3afcf0
%post
a3afcf0
/sbin/ldconfig
a3afcf0
touch --no-create %{_datadir}/icons/hicolor || :
a3afcf0
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
a3afcf0
a3afcf0
a3afcf0
%postun
a3afcf0
/sbin/ldconfig
a3afcf0
touch --no-create %{_datadir}/icons/hicolor || :
a3afcf0
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
a3afcf0
a3afcf0
7e493fc
%files
7e493fc
%defattr(-,root,root,-)
a3afcf0
%doc CREDITS LICENSE.txt ChangeLog TODO MANIFESTO.txt USECASES
7e493fc
%{_bindir}/%{name}
cd4f96b
%{_datadir}/applications/fedora-%{name}.desktop
7e493fc
%{_datadir}/apps/%{name}
a3afcf0
%{_libdir}/libmarblewidget.so.*
d22032f
%{_datadir}/icons/hicolor/??x??/apps/%{name}.png
d22032f
%{_datadir}/icons/hicolor/128x128/apps/marble.png
a3afcf0
a3afcf0
%files devel
a3afcf0
%defattr(-,root,root,-)
a3afcf0
%doc docs CODING
a3afcf0
%{_includedir}/%{name}
a3afcf0
%{_libdir}/libmarblewidget.so
d22032f
%{_qt4_prefix}/plugins/designer/libMarbleNavigatorPlugin.so
d22032f
%{_qt4_prefix}/plugins/designer/libMarbleWidgetPlugin.so
a3afcf0
7e493fc
7e493fc
7e493fc
%changelog
d22032f
* Mon Feb 04 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.5.1-1
d22032f
- new upstream release
d22032f
- %%{name}-0.5-multilibs.patch : avoids hardcoded libdir
d22032f
d22032f
* Mon Aug 27 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.4.0.3-1
d22032f
- new upstream release
d22032f
d22032f
* Sun Aug 26 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.4.0.2-1
d22032f
- new upstream release
d22032f
a3afcf0
* Sun Aug 19 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.4.0.1-1
a3afcf0
- new upstream release and applied fix for multilibs
a3afcf0
- change license tag to LGPLv2
a3afcf0
- added devel package to create additional Qt-Designer-Plugin for developers
a3afcf0
- gpsd support
a3afcf0
- added missing icons
a3afcf0
cd4f96b
* Thu Jun 21 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.3.1-4
cd4f96b
- fix for ppc64
cd4f96b
40069a2
* Mon Apr 30 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.3.1-3
40069a2
- fix for ppc
40069a2
7e493fc
* Sat Apr 28 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.3.1-2
7e493fc
- added VERBOSE to make
7e493fc
- use of macros on cmake
7e493fc
- added cmake and desktop-file-utils ad BR
7e493fc
7e493fc
* Sat Apr 14 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.3.1-1
7e493fc
- New Upstream release
7e493fc
- Dropped Category Engineering
7e493fc
- remove-category "Utility" (duplicate kmenu entries)
7e493fc
7e493fc
* Sun Mar 25 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.3-2.20070325svn
7e493fc
- new upstream snapshot
7e493fc
7e493fc
* Sat Mar 24 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 0.3-1.20070318svn
7e493fc
- initial package