File podsleuth.spec of Package podsleuth

#
# spec file for package podsleuth (Version 0.6.7)
#
# Copyright (c) 2010 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.7
Release:        1
License:        MIT
Group:          Hardware/Other
Summary:        PodSleuth provides rich iPod(R) metadata through HAL
Url:            http://banshee-project.org/PodSleuth
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}-rpmlintrc
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(R) iPod(R). 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>

%package devel
License:        MIT
Summary:        PodSleuth provides rich iPod(R) metadata through HAL
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}

%description devel
PodSleuth is a tool to discover detailed model information about an
Apple(R) iPod(R). 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

%build
%{?env_options}
%configure
make

%install
%makeinstall
chmod -x $RPM_BUILD_ROOT%{_prefix}/lib/podsleuth/*.config

%clean
rm -rf "$RPM_BUILD_ROOT"

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

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

%changelog
openSUSE Build Service is sponsored by