c38546cfce
- updated to 1.1.5 + - Soname libmtp.so.9.0.5 - binary compatible + - Stop forcing altinterface 0! That bug has been around like + forever and libgphoto2 never did this. It screws up some + Samsung devices and is the prime reason for releasing this + update so soon after 1.1.4 as I know a lot of people out there + have Samsung devices! + - Integrated Sajid Anwars hard long-term work on MTPZ. There are + no secret keys or certificates inside libmtp, if you need these + to talk to your MTPZ device (Zune models, Windows Phones) you + need to get a file of secrets from some other place, preferably + Microsoft. + - Expose getthumbnail method and the Add Storage events as needed + for a GNOME VFS project by Philip Langdale. + - Rearrange and try to understand some SONY device modes again + and again. + - A udev script fix from Alessio Treglia to avoid poking around + on Canon EOS 3D. + - Devices, devices, devices... +- Add libgrypt buildrequires for MTPZ support OBS-URL: https://build.opensuse.org/request/show/135354 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmtp?expand=0&rev=51
117 lines
3.7 KiB
RPMSpec
117 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package libmtp
|
|
#
|
|
# Copyright (c) 2012 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: libmtp
|
|
Url: http://sf.net/projects/libmtp
|
|
BuildRequires: doxygen
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libusb-1_0-devel
|
|
BuildRequires: pkg-config
|
|
Summary: Commandline utilities for access to MTP Players
|
|
License: LGPL-2.1+
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
Version: 1.1.5
|
|
Release: 0
|
|
%define sonum 9
|
|
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This package contains binaries and documentation that allow 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.
|
|
|
|
%package -n %{name}%{sonum}
|
|
Summary: Library for accessing MTP Players
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
|
|
%description -n %{name}%{sonum}
|
|
This package contains the libraries that allow 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.
|
|
|
|
%package -n mtp-tools
|
|
Summary: Commandline utilities for access to MTP Players
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
|
|
%description -n mtp-tools
|
|
This package contains binaries that allow command line access to USB
|
|
based media players based on the MTP (Media Transfer Protocol) authored
|
|
by Microsoft. For graphical user interfaces use Amarok or Banshee.
|
|
|
|
%package devel
|
|
Summary: Development files for access to MTP Player library
|
|
Group: Development/Libraries/Other
|
|
Requires: %{name}%{sonum} = %{version}
|
|
Requires: libusb-devel
|
|
|
|
%description devel
|
|
This package contains the development headers for the libmtp library
|
|
that allows access to USB based media players based on the MTP (Media
|
|
Transfer Protocol) authored by Microsoft.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static --enable-doxygen
|
|
make %{?_smp_mflags}
|
|
|
|
%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
|
|
rm -rf %{buildroot}/usr/share/doc/libmtp*
|
|
rm -rf %{buildroot}/%{_libdir}/*.la
|
|
|
|
%post -n %{name}%{sonum} -p /sbin/ldconfig
|
|
%postun -n %{name}%{sonum} -p /sbin/ldconfig
|
|
|
|
%files -n mtp-tools
|
|
%defattr(-, root, root)
|
|
%{_prefix}/bin/*
|
|
|
|
%files -n %{name}%{sonum}
|
|
%defattr(-, root, root)
|
|
%doc COPYING README ChangeLog AUTHORS
|
|
%{_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
|
|
%dir /lib/udev
|
|
/lib/udev/mtp-probe
|
|
%dir /lib/udev/rules.d
|
|
%config /lib/udev/rules.d/69-libmtp.rules
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%doc doc/html TODO
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/pkgconfig/libmtp.pc
|
|
%{_prefix}/include/libmtp.h
|
|
|
|
%changelog
|