# # spec file for package libmtp (Version 0.2.6) # # 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: libmtp Url: http://sf.net/projects/libmtp %if %suse_version > 1020 BuildRequires: libusb-devel %else BuildRequires: libusb %endif License: LGPL v2.1 or later Group: Productivity/Multimedia/Sound/Players AutoReqProv: on Summary: Access to MTP Players Version: 0.2.6 Release: 1 Source0: %name-%version.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package contains binaries and documentation that allow accessto USB based media players based on the MTP (Media TransferProtocol) authored by Microsoft. Common devices using this technology are Creative Zen, iRiver, Samsung and others. Authors: -------- Richard Low Linus Walleij based on code by: Mariusz Woloszyn Marcus Meissner %package -n libmtp7 Summary: Access to MTP Players Group: Productivity/Multimedia/Sound/Players %description -n libmtp7 This package contains libraries that allow access to USB based media players based on the MTP (Media TransferProtocol) authored by Microsoft. Common devices using this technology are Creative Zen, iRiver, Samsung and others. Authors: -------- Richard Low Linus Walleij based on code by: Mariusz Woloszyn Marcus Meissner %package devel Summary: Access to MTP Players (development files) Group: Development/Libraries/Other Requires: libmtp7 = %version %if %suse_version > 1020 Requires: libusb-devel %endif %description devel This package contains a library that allows access to USB based media players based on the MTP (Media Transfer Protocol) authored by Microsoft. Common devices using this technology are Creative Zen, iRiver, Samsung and others. Authors: -------- Richard Low Linus Walleij based on code by: Mariusz Woloszyn Marcus Meissner %prep %setup -q %build %configure --program-prefix=mtp- make %install make install DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/usr/share/hal/fdi/information/20thirdparty/ install -c -m 644 libmtp.fdi $RPM_BUILD_ROOT/usr/share/hal/fdi/information/20thirdparty/10-usb-music-players-libmtp.fdi %post -n libmtp7 -p /sbin/ldconfig %postun -n libmtp7 -p /sbin/ldconfig %files %defattr(-, root, root) %doc COPYING TODO README ChangeLog AUTHORS %{_prefix}/bin/* %files -n libmtp7 %defattr(-, root, root) %{_libdir}/lib*.so.* %dir /usr/share/hal %dir /usr/share/hal/fdi %dir /usr/share/hal/fdi/information %dir /usr/share/hal/fdi/information/20thirdparty/ /usr/share/hal/fdi/information/20thirdparty/10-usb-music-players-libmtp.fdi %files devel %defattr(-, root, root) %{_libdir}/lib*.so %{_libdir}/lib*.la %{_libdir}/lib*.a %{_libdir}/pkgconfig/libmtp.pc %{_prefix}/include/libmtp.h %changelog * Mon Mar 03 2008 meissner@suse.de - upgraded to 0.2.6 - some new devices - bugfixes - remove LIBMTP_Set_Object_Parent function -> new major * Wed Jan 09 2008 meissner@suse.de - upgraded to 0.2.5 - several new devices - code cleanups and bugfixes * Mon Nov 26 2007 meissner@suse.de - upgraded to 0.2.4 - various bug fixes and new fixes - header-repairing for Zen devices * Sun Oct 28 2007 meissner@suse.de - --program-prefix=mtp- is needed. * Fri Oct 26 2007 meissner@suse.de - upgraded to 0.2.3 - new devices added - varous bugfixes, speed ups - bumped so from 6 to 7 - split off libmtp7 package * Mon Oct 08 2007 meissner@suse.de - upgraded to 0.2.2 - bugfixes, new devices, faster metadata read * Fri Aug 10 2007 meissner@suse.de - upgraded to 0.2.1 release - fixed for LFS support * Sun Aug 05 2007 meissner@suse.de - upgraded to 0.2.0 release - more USB ids - 64bit handling * Thu Jul 26 2007 meissner@suse.de - uprgaded to current CVS state - caching of fs and metadata - new devices - ptp reset binary - bugfixes * Mon Jun 04 2007 stbinner@suse.de - fix build requires for older distributions * Wed May 16 2007 olh@suse.de - Buildrequires libusb -> libusb-devel Remove unneded Requires libusb -devel package requires libusb-devel * Tue Mar 27 2007 meissner@suse.de - upstream 0.1.5 - uses SetObjPropList for most devices - usb lowlevel communication fixes for stubborn devices - some new ids * Thu Mar 08 2007 meissner@suse.de - upstream 0.1.4 - lots of bugfixes - multiple device handling * Thu Feb 08 2007 dmueller@suse.de - split into -devel subpackage * Wed Jan 17 2007 meissner@suse.de - upstream 0.1.3 - bugfixes. * Wed Jan 10 2007 meissner@suse.de - use %%run_ldconfig in post/postun. (from rpmlint) * Mon Jan 08 2007 meissner@suse.de - Upgraded to 0.1.2: - new devices - lots of bugfixes, rewritten lowlevel communications layer. * Sat Dec 02 2006 meissner@suse.de - Upgraded to 0.1.0: - new devices - metadata, tracks, vcf handling - enhanced tools - HAL snippet * Thu Sep 21 2006 meissner@suse.de - Upgraded to 0.0.19: - formatting of devices added - lots of fixes * Mon Aug 28 2006 meissner@suse.de - Upgraded to 0.0.16 - better handling of non-ascii filenames - handling of large files * Wed Aug 23 2006 meissner@suse.de - libmtp 0.0.13 - Library to access MTP devices. - Small sample tools for accessing.