File gnome-pilot.spec of Package gnome-pilot

#
# spec file for package gnome-pilot (Version 2.0.16)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           gnome-pilot
BuildRequires:  fam fdupes gcc-c++ gnome-panel-devel gob2 intltool libidl libpisock-devel libpisync-devel perl-XML-Parser scrollkeeper shared-mime-info update-desktop-files
Url:            http://www.gnome.org
License:        GPL v2 or later
Group:          System/GUI/GNOME
# Has biarch problems:
# http://bugzilla.gnome.org/show_bug.cgi?id=302727
Conflicts:      gnome-pilot-32bit
Version:        2.0.16
Release:        3
Summary:        GNOME PalmPilot Programs
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/gnome-pilot/2.0/%{name}-%{version}.tar.bz2
Patch:          gnome-pilot-no-susepath.patch
Patch1:         gnome-pilot-2.0.9.dif
Patch2:         gnome-pilot-non-void-returns.patch
Patch7:         gnome-pilot-hal.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
%patch
%patch1
%patch2 -p1
%patch7 -p1
# Work-around biarch problems:
# http://bugzilla.gnome.org/show_bug.cgi?id=302727
sed -i s:@prefix@/lib:@prefix@/%_lib:g conduits/*/*.conduit.in

%build
autoreconf -f -i
intltoolize --force
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
%suse_update_desktop_file -N "GNOME Pilot" -G "PalmOS Device Manager" -C "Configure PalmOS devices" -D "gnome-pilot" gpilot-applet SystemSetup
DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
%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}/omf/*
%{_datadir}/pixmaps/*.png
%doc %{_mandir}/man?/*.*

%files lang -f %{name}.lang

%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
* Thu Apr 03 2008 maw@suse.de
- Remove libtool archives and static libraries
- Use %%fdupes in the correct place.
* Wed Apr 02 2008 maw@suse.de
- Update to version 2.0.16:
  + Support for Bluetooth sync
  + Support for the specification of the PDA charset via the
  configuration applet
  + Bugs fixed: bln#81396, bgo#464385, bgo#410666, bgo#431145,
  bgo#400554, bgo#399039, bgo#385434, and bgo#385444
  + Updated translations.
* Thu Mar 06 2008 maw@suse.de
- Fix the build when against newer versions of intltool.
* Tue Oct 23 2007 sbrabec@suse.cz
- Use libpisock-devel instead of old name pilot-link-devel.
* Wed Aug 08 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage
- s#%%run_ldconfig#/sbin/ldconfig# in %%post and %%postun.
* Thu Aug 02 2007 maw@suse.de
- Remove fixup.patch, which was a temporary workaround fixing
  short-lived breakage in the pilot-link package.
* Wed Aug 01 2007 maw@suse.de
- Update to version 2.0.15
- Bugfixes (bugzilla.gnome.org): #357602, #362565, #365181,
  and #364589.
- New and updated translations
- Add fixup.patch
- Make libpisync-devel a build requirement.
* Mon May 14 2007 pgajdos@suse.cz
- removed gnome-icon-theme from BuildRequires [#247450]
* Fri Apr 27 2007 sbrabec@suse.cz
- Do not call meinproc (#227624).
* Thu Jan 04 2007 sbrabec@suse.cz
- More spec file cleanups.
* Thu Dec 14 2006 maw@suse.de
- Move to /usr
- Some specfile cleanup.
* Fri Oct 13 2006 danw@suse.de
- Kill dead patches
* Thu Sep 21 2006 jhargadon@suse.de
- update to version 2.0.14
- removed upstreamed patches
- Add support for libusb syncing with pilot-link 0.12.x
- Fix network hotsync.  Use pilot-link to create the listen socket
  by binding to port "net:".
- HAL is used by default for detecting USB connections
  When HAL is not available, use /sys/bus/usb
  in preference to /proc/bus/usb
- Fix applet message area, and fix transparency for applet panel icon.
- Ported to the pilot-link 0.12.0 API, with continuing support for
  0.11.
- Big cleanup of the UI, to make it more compatible with the HIG
- Improve robustness of binding, by attempting to connect multiple
  times.
- Support for international character sets, with pilot-link 0.12.x.
- Many bug fixes
- translation updates
* Sat Sep 02 2006 gekker@suse.de
- Use correct fix for building against new gnome-icon theme
* Sat Sep 02 2006 gekker@suse.de
- Fix to build against new gnome-icon-theme
* Fri May 19 2006 jpr@suse.de
- Fix syncing with hal for non-visor devices by selecting the right
  protocol and letting the usb/serial devices settle (#165455)
* Thu Mar 30 2006 dgollub@suse.de
- fixed build problem which appeared on downgrade to pilot-link 0.11.8
  (#161722) (-build-fix.patch)
* Mon Mar 20 2006 fejj@suse.de
- Fixed a build problem by removing #define _XOPEN_SOURCE, it should have been #define _GNU_SOURCE
* Fri Mar 17 2006 fejj@suse.de
- Added gnome-pilot-hal.patch to the build to fix bug #159152
* Tue Feb 28 2006 sbrabec@suse.cz
- Use kdelibs3-doc in BuildRequires for meinproc (#153635#c14).
* Sat Feb 18 2006 gekker@suse.de
- fixup .desktop file for UI team
* Tue Feb 14 2006 gekker@suse.de
- Fix to use a better/properly sized icon in add-to-panel dialog
* Tue Jan 31 2006 aj@suse.de
- Reduce BuildRequires.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 24 2005 postadal@suse.cz
- fixed checking return value in gnome-pilot-pilot-link-0-12.patch
* Fri Sep 23 2005 jpr@suse.de
- update the pilot-link 0.12 patch so that gnome-pilot-conduits can
  determine if its building against 0.12
* Fri Sep 23 2005 jpr@suse.de
- update the pilot-link 0.12.0 patch so we build in plus again
* Thu Sep 22 2005 jpr@suse.de
- get gnome-pilot building against pilot-link 0.12.0
* Mon Aug 22 2005 ro@suse.de
- removed control-center2 from nfb
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Mon May 02 2005 sbrabec@suse.cz
- Updated to version 2.0.13.
- Worked-around bi-arch problems (#81266).
* Tue Apr 19 2005 ro@suse.de
- added missing sentinel in pilot.c
* Fri Mar 18 2005 sbrabec@suse.cz
- Removed X-Ximian-Settings (#73047).
* Thu Mar 17 2005 sbrabec@suse.cz
- Fixed invalid capplet desktop file and its path.
- Added X-Ximian-Settings to gpilotd-control-applet (#73047).
* Wed Nov 24 2004 ro@suse.de
- make specfile rpm-3 compliant (quote non-numeric if arguments)
* Tue Nov 02 2004 ro@suse.de
- locale rename: no -> nb
* Tue Oct 12 2004 sbrabec@suse.cz
- Fixed libexecdir for bi-arch (#47050).
* Wed Sep 15 2004 dobey@suse.de
- Updated to version 2.0.12
* Tue Sep 14 2004 ro@suse.de
- mime-info only for > 9.1
* Tue Sep 07 2004 sbrabec@suse.cz
- Generated shared mime info.
* Fri Aug 27 2004 dobey@suse.de
- Updated to version 2.0.11
* Fri Aug 27 2004 clahey@suse.de
- Cache gnome-pilot help.
* Fri May 14 2004 clahey@suse.de
- Added gnome-pilot-non-void-returns.patch.
* Tue May 11 2004 sbrabec@suse.cz
- Fixed gconftool-2 prerequirements.
* Mon Mar 22 2004 sbrabec@suse.cz
- Removed GNOMEPATH SuSE hack.
* Mon Mar 22 2004 ro@suse.de
- added resmgr to neededforbuild
* Mon Mar 15 2004 sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Wed Mar 10 2004 sbrabec@suse.cz
- Fixed gconf schemas installation (#33114).
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig to %%postun
* Mon Aug 25 2003 sbrabec@suse.cz
- Updated to version 2.0.10.
* Thu Aug 07 2003 sbrabec@suse.cz
- Not use globbing for schemas in %%files.
* Tue Aug 05 2003 sbrabec@suse.cz
- Updated to GTK2/GNOME2 port.
* Wed Jul 30 2003 ro@suse.de
- added readline-devel to neededforbuild
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Mon Jun 23 2003 ro@suse.de
- added directories to filelist
* Tue Feb 18 2003 hhetter@suse.de
- move glade files from devel to main package as these
  are needed at runtime
* Wed Jan 29 2003 ro@suse.de
- fixed build with gcc-3.3 (preprocessor token pasting)
* Wed Jan 15 2003 ro@suse.de
- fixed lib64 issue with configure searching libpisock
* Wed Nov 27 2002 sbrabec@suse.cz
- Fix %%files.
* Tue Nov 26 2002 sbrabec@suse.cz
- Updated %%files.
* Wed Nov 13 2002 hhetter@suse.de
- updated gnome-pilot to 0.1.69
- use the current pilot-link package, link shared
* Fri Aug 02 2002 ro@suse.de
- removed openldap from neededforbuild
* Fri Jun 21 2002 ro@suse.de
- use "-a -f" for automake
* Tue Jun 11 2002 ro@suse.de
- use -fPIC for compiling pilot-link
* Thu Jun 06 2002 ro@suse.de
- use libdir
- run suse_update_config also for pilot-link
* Mon Jun 03 2002 ro@suse.de
- use "gnome-devel-packages" in neededforbuild
* Wed May 29 2002 ro@suse.de
- apply gcc3 patch for pilot-link
* Mon May 27 2002 hhetter@suse.de
- initial package, linked statically to the newest version of
  pilot-link
openSUSE Build Service is sponsored by