File podsleuth.spec of Package podsleuth

#
# spec file for package podsleuth (Version 0.6.3)
#
# Copyright (c) 2008 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:           podsleuth
Version:        0.6.3
Release:        4
License:        X11/MIT
Group:          Hardware/Other
Summary:        PodSleuth provides rich iPod metadata through HAL
Url:            http://banshee-project.org/PodSleuth
Source:         %{name}-%{version}.tar.bz2
Patch1:         update-model-info-fix-artwork-bug-r64_68.patch
AutoReqProv:    on
PreReq:         filesystem
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  hal-devel >= 0.5.6 mono-devel ndesk-dbus
Requires:       udev dbus-1
Obsoletes:      libipoddevice <= 0.5.3
Provides:       libipoddevice = 0.5.3
%if 0%{?suse_version}
%if %suse_version > 1030
BuildRequires:  sg3_utils-devel
%else
BuildRequires:  scsi
%endif
%endif
%if 0%{?fedora_version}
%define env_options export MONO_SHARED_DIR=/tmp
%endif
%if 0%{?mandriva_version}
BuildRequires:  libsgutils1-devel
%endif

%description
PodSleuth is a tool to discover detailed model information about an
Apple (TM) iPod (TM). Its primary role is to be run as a callout by HAL
because root access is needed to scan the device for required
information. When the model information is discovered, it is merged
into HAL as properties for other applications to use.



Authors:
--------
    Aaron Bockover <abockover@novell.com>

%prep
%setup -q
%patch1 -p0

%build
%{?env_options}
%configure
make

%install
make install DESTDIR="$RPM_BUILD_ROOT"

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc ChangeLog NEWS COPYING AUTHORS README
%{_datadir}/hal/fdi/policy/20thirdparty/20-podsleuth.fdi
%{_libdir}/hal/hal-podsleuth
%{_libdir}/pkgconfig/podsleuth.pc
%{_bindir}/podsleuth
%dir %{_prefix}/lib/podsleuth
%{_prefix}/lib/podsleuth/PodSleuth.Hal.exe*
%{_prefix}/lib/podsleuth/PodSleuth.dll*

%changelog
* Sun Oct 26 2008 gburt@suse.de
- Update the model table to include model info for most recently
  released iPods.
- Fixes bgo#554115 (artwork support for newest iPods)
* Thu Sep 11 2008 abockover@suse.de
- Updated to 0.6.3 Release
- Fixes bgo#488209 (HAL startup detection bug)
* Thu Jun 05 2008 abockover@suse.de
- Backported patches from 0.6.2 release:
  * Detect and cope when the iPod_Control directory is missing
  * Updated to work with newer HAL when scanning for iPods (console client)
  * Fix exec path inside wrapper scripts to use ${prefix}/lib, not ${libdir}
* Mon May 26 2008 ro@suse.de
- buildreq: use sg3_utils instead of scsi
* Wed Jan 16 2008 coolo@suse.de
- remove parallel build jobs, it breaks makefile
- provide obsoletes (with version)
* Tue Jan 15 2008 abockover@suse.de
- Removed redundant libdir passed to configure
* Wed Jan 09 2008 abockover@suse.de
- Initial checkin of PodSleuth 0.6.1
openSUSE Build Service is sponsored by