Search
j0ke.net Open Build Service
>
Projects
>
KDE
:
QT-4
>
googleearth
> googleearth.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File googleearth.spec of Package googleearth (Revision 6)
Currently displaying revision
6
,
show latest
%define pkgname GoogleEarthLinux Name: googleearth Version: 5.0 Release: 0 Group: System/GUI/Other License: Other Summary: Google Earth URL: http://earth.google.com/ Source0: http://dl.google.com/earth/client/current/%{pkgname}.bin Source1: googleearth.desktop Source2: googleearth-mimetypes.xml BuildRoot: %{_tmppath}/%{name}-%{version} BuildRequires: kdebase4 Requires: xdg-utils %if 0%{?suse_version} >= 1110 BuildRequires: chrpath %endif %description Google Earth lets you fly anywhere on Earth to view satellite imagery, maps, terrain, 3D buildings, from galaxies in outer space to the canyons of the ocean. You can explore rich geographical content, save your toured places, and share with others. %prep %setup -c -T -n %{pkgname}-%{version} mkdir -p $RPM_BUILD_DIR/%{pkgname}-%{version} chmod 755 %{S:0} %{S:0} --noexec --nox11 --nochown --target $RPM_BUILD_DIR/%{pkgname}-%{version} %build %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/mime/package tar -C %{buildroot}%{_datadir}/%{name} -xf $RPM_BUILD_DIR/%{pkgname}-%{version}/googleearth-data.tar tar -C %{buildroot}%{_datadir}/%{name} -xf $RPM_BUILD_DIR/%{pkgname}-%{version}/googleearth-linux-x86.tar cp -R $RPM_BUILD_DIR/%{pkgname}-%{version}/linux %{buildroot}%{_datadir}/%{name}/ cp $RPM_BUILD_DIR/%{pkgname}-%{version}/bin/%{name} %{buildroot}%{_datadir}/%{name}/ cp $RPM_BUILD_DIR/%{pkgname}-%{version}/*.png %{buildroot}%{_datadir}/%{name}/ cp $RPM_BUILD_DIR/%{pkgname}-%{version}/*.xpm %{buildroot}%{_datadir}/%{name}/ #cp %{S:1} %{buildroot}%{_datadir}/%{name}/%{name}.desktop cp %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop cp %{S:2} %{buildroot}%{_datadir}/mime/package/googleearth-mimetypes.xml sed -i s#"%DATADIR%"#"%{_datadir}"#g %{buildroot}%{_datadir}/applications/%{name}.desktop sed -i s#"%NAME%"#"%{name}"#g %{buildroot}%{_datadir}/applications/%{name}.desktop %{__ln_s} -f %{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name} %if 0%{?suse_version} >= 1110 chrpath -d %{buildroot}%{buildroot}%{_bindir}/%{name} %endif %post xdg-mime install %{_datadir}/%{name}/linux/xdg/xdg-mime xdg-desktop-menu install %{_datadir}/%{name}/linux/xdg/xdg-desktop-menu xdg-desktop-icon install %{_datadir}/%{name}/linux/xdg/xdg-desktop-icon %preun xdg-mime install %{_datadir}/%{name}/linux/xdg/xdg-mime xdg-desktop-menu uninstall %{_datadir}/%{name}/linux/xdg/xdg-desktop-menu xdg-desktop-icon uninstall %{_datadir}/%{name}/linux/xdg/xdg-desktop-icon %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/%{name} %dir %{_datadir}/%{name} %{_datadir}/%{name}/%{name} %{_datadir}/%{name}/*.png %{_datadir}/%{name}/*.xpm %{_datadir}/%{name}/linux %{_datadir}/applications/googleearth.desktop %{_datadir}/mime/package/googleearth-mimetypes.xml %changelog