File gnome-pilot.spec of Package gnome-pilot
#
# spec file for package gnome-pilot (Version 2.0.17)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: gnome-pilot
BuildRequires: fam fdupes gcc-c++ gnome-panel-devel gob2 intltool libglade2-devel libidl libpisock-devel libpisync-devel scrollkeeper shared-mime-info translation-update-upstream update-desktop-files
Url: http://www.gnome.org
License: GPL v2 or later
Group: System/GUI/GNOME
Version: 2.0.17
Release: 3
Summary: GNOME PalmPilot Programs
Source: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-pilot/2.0/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gnome-pilot-no-susepath.patch bgo569193
Patch: gnome-pilot-no-susepath.patch
Patch1: gnome-pilot-pisock64bit.patch
Requires: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
gnome-pilot is a collection of programs and daemon for integrating
GNOME and the PalmPilot<tm> or other PalmOS<tm> devices.
Authors:
--------
Manish Vachharajani <mvachhar@vger.rutgers.edu>
Neil Vachharajani <nvachhar@pluto.njcc.com>
Michael Fulbright <msf@redhat.com>
Eskil Heyn Olsen <eskil@eazel.com> (lead developer)
Jonathan <jrb@redhat.com>
Vadim Strizhevsky <vadim@strizhevsky.com> (developer)
Dave Camp <campd@oit.edu> (USB support)
JP Rosevear <jpr@ximian.com>
%package devel
License: GPL v2 or later ; LGPL v2.1 or later
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/GNOME
Requires: %{name} = %{version} libpisock-devel libgnome-devel libgnomeui-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
%patch
%patch1
%build
autoreconf -f -i
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
# FIXME: Build as root modifies system!
# gnome-pilot-2.0.14: --disable-scrollkeeper does not work properly.
%configure \
--libexecdir=%{_prefix}/lib/gnome-pilot \
--disable-scrollkeeper \
--with-pisock=%{_prefix} \
--with-pisock-lib=%{_libdir}
make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file -N "GNOME Pilot" -G "PalmOS Device Manager" -C "Configure PalmOS devices" -D "gnome-pilot" gpilotd-control-applet SystemSetup
DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm -r $RPM_BUILD_ROOT/%{_datadir}/mime-info
rm $RPM_BUILD_ROOT/%{_libdir}/*/*/*.*a
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%files -f %{name}.lst
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_libdir}/*.so.*
%{_libdir}/bonobo/servers/*.server
%{_libdir}/gnome-pilot
%if "%{_libdir}" != "%{_prefix}/lib"
%{_prefix}/lib/gnome-pilot
%endif
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-pilot
%{_datadir}/idl/*.idl
%{_datadir}/mime/packages/*.xml
%{_datadir}/pixmaps/*.png
%doc %{_mandir}/man?/*.*
%files lang -f %{name}.lang
%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog