File kio_ipodslave.spec of Package kio_ipodslave

#
# spec file for package kio_ipodslave (Version 0.8.pre2)
#
# 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/


Name:           kio_ipodslave
Url:            http://kpod.sourceforge.net/ipodslave/
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Utilities
Summary:        Browsing iPod within KDE
Requires:       kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`)
BuildRequires:  id3lib-devel kdelibs3-devel libqtpod-devel openslp-devel
Version:        0.8.pre2
Release:        78
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        ipodslave-%{version}.tar.bz2
Source1:        ipod.desktop
Source2:        ipod.png
Patch0:         %name-adddirs.patch

%description
With kio_ipodslave, browse your iPod. Use "ipod:/" to see the contents
of your iPod.



Authors:
--------
    Michael Schulze <mike.s@genion.de>

%prep
%setup -q -n ipodslave-%{version}
%patch -P 0

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
. /etc/opt/kde3/common_options
update_admin
./configure $configkde
make

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
install -d $RPM_BUILD_ROOT/opt/kde3/share/config/kio_slp
install -m 644 -D %{S:1} $RPM_BUILD_ROOT/opt/kde3/share/apps/konqsidebartng/virtual_folders/services/ipod.desktop
install -m 644 -D %{S:2} $RPM_BUILD_ROOT/opt/kde3/share/icons/crystalsvg/64x64/apps/ipod.png

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING AUTHORS ChangeLog README TODO
/opt/kde3/%_lib/kde3/kio_ipodslave*
#/opt/kde3/include/kpod
#/opt/kde3/share/doc/HTML/en/ipodslave/
/opt/kde3/share/services/ipodslave.protocol
/opt/kde3/share/apps/konqsidebartng
/opt/kde3/share/icons/crystalsvg/64x64/apps

%changelog
* Fri Jun 19 2009 coolo@novell.com
- disable as-needed for this package as it fails to build with it
* Fri Feb 15 2008 dmueller@suse.de
- update to 0.8.pre2:
  * changed libqtpod library version to 0.4.1 thus fixing problems
  with iTunes7.x plus other enhancements
  * new consistency checks
* Thu Oct 12 2006 mskibbe@suse.de
- fix build error
* Tue Jul 11 2006 mskibbe@suse.de
- update to version 0.8.pre1 which includes:
  o separated the whole ipod/iTunesDB code to a separate
  library - libQtPod
  o supporting updating smart playlists
  creating new ones or editing smart playlist rules is not yet
  possible
* Mon Feb 20 2006 hvogel@suse.de
- update to version 0.7.2 which includes
  o better sync handling
  o better playlist handling
  o fix database corruption
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 hvogel@suse.de
- update to version 0.7.1
* Thu Jun 23 2005 hvogel@suse.de
- call ldconfig in post/postun
* Tue Jun 07 2005 hvogel@suse.de
- update to version 0.6.3
- add kswap.h to the package
* Fri Mar 04 2005 hvogel@suse.de
- dont exit if file given for sync is a directory
* Mon Feb 14 2005 hvogel@suse.de
- add desktop file and icon
* Mon Feb 14 2005 hvogel@suse.de
- New package, Version 0.6.2
openSUSE Build Service is sponsored by