File gnome-pilot.spec of Package gnome-pilot
#
# spec file for package gnome-pilot
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gnome-pilot
Version: 2.32.0
Release: 5.<RELEASE3>
License: GPLv2+
Summary: PalmOS Device Management for GNOME
Url: http://www.gnome.org
Group: System/GUI/GNOME
Source: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-pilot/2.0/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gnome-pilot-add-gtk-2.0-to-pkgconfig.patch bgo#642542 vuntz@opensuse.org -- Add gtk+-2.0 to pkg-config file, as it's used in headers
Patch0: gnome-pilot-add-gtk-2.0-to-pkgconfig.patch
# PATCH-FIX-OPENSUSE gnome-pilot-pisock64bit.patch vuntz@opensuse.org -- Correctly detect libpisock on 64bits
Patch1: gnome-pilot-pisock64bit.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnome-icon-theme
BuildRequires: gob2
BuildRequires: intltool
BuildRequires: libpisock-devel
BuildRequires: libpisync-devel
BuildRequires: scrollkeeper
BuildRequires: shared-mime-info
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(hal)
BuildRequires: pkgconfig(libedataserverui-1.2)
BuildRequires: pkgconfig(libpanelapplet-2.0)
BuildRequires: pkgconfig(libxml-2.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
This package provides application to integrate PalmOS devices in GNOME.
%package devel
License: GPLv2+ ; LGPLv2.1+
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: libpisock-devel
Requires: libpisync-devel
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%patch1
%build
autoreconf -f -i
%configure \
--disable-static \
--libexecdir=%{_libexecdir}/gnome-pilot \
--disable-scrollkeeper \
--with-pisock=%{_prefix} \
--with-pisock-lib=%{_libdir}
%__make %{?_smp_mflags}
%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file gpilotd-control-applet
DESTDIR=%{buildroot} mime-info-to-mime
rm -r %{buildroot}%{_datadir}/mime-info
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
# Replace pda Icon in .desktop file (only in GNOME icon theme) with an icon that will live in hicolor
grep -q "^Icon=pda$" %{buildroot}%{_datadir}/applications/gpilotd-control-applet.desktop
sed -i "s/Icon=pda/Icon=gnome-pilot/g" %{buildroot}%{_datadir}/applications/gpilotd-control-applet.desktop
for size in 8x8 16x16 22x22 24x24 32x32 48x48; do
if test -f %{_datadir}/icons/gnome/$size/devices/pda.png; then
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/$size/apps
cp -a %{_datadir}/icons/gnome/$size/devices/pda.png %{buildroot}%{_datadir}/icons/hicolor/$size/apps/gnome-pilot.png
fi
done
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%post
/sbin/ldconfig
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
/sbin/ldconfig
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/*
%{_libdir}/*.so.*
%{_libdir}/bonobo/servers/*.server
%{_libdir}/gnome-pilot/
%if "%{_libdir}" != "%{_libexecdir}"
%{_libexecdir}/gnome-pilot/
%endif
%{_datadir}/applications/gpilotd-control-applet.desktop
%{_datadir}/dbus-1/services/org.gnome.GnomePilot.service
%{_datadir}/gnome-pilot/
%{_datadir}/icons/hicolor/*/apps/gnome-pilot.png
%{_datadir}/mime/packages/palm.xml
%{_datadir}/pixmaps/*.png
%doc %{_mandir}/man?/*.*
%files devel
%defattr(-, root, root)
%{_includedir}/gpilotd/
%{_includedir}/libgpilotdCM/
%{_libdir}/*.so
%{_libdir}/pkgconfig/gnome-pilot-2.0.pc
%files lang -f %{name}.lang
%changelog