2007-01-08 17:46:05 +01:00
|
|
|
#
|
2011-02-02 01:42:26 +01:00
|
|
|
# spec file for package libmtp
|
2007-01-08 17:46:05 +01:00
|
|
|
#
|
2015-02-01 21:07:50 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-08 17:46:05 +01:00
|
|
|
#
|
2008-08-27 02:22:15 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-08 17:46:05 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-03-03 16:29:16 +01:00
|
|
|
|
2007-01-08 17:46:05 +01:00
|
|
|
Name: libmtp
|
2012-01-13 11:37:39 +01:00
|
|
|
Url: http://sf.net/projects/libmtp
|
2011-12-29 14:10:11 +01:00
|
|
|
BuildRequires: doxygen
|
2012-09-22 13:40:40 +02:00
|
|
|
BuildRequires: libgcrypt-devel
|
2012-01-13 11:37:39 +01:00
|
|
|
BuildRequires: libusb-1_0-devel
|
2011-12-29 14:10:11 +01:00
|
|
|
BuildRequires: pkg-config
|
2012-11-04 19:58:46 +01:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2008-08-27 02:22:15 +02:00
|
|
|
Summary: Commandline utilities for access to MTP Players
|
2011-12-29 14:10:11 +01:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
2014-08-26 08:32:43 +02:00
|
|
|
Version: 1.1.7
|
2011-12-29 14:10:11 +01:00
|
|
|
Release: 0
|
2012-09-22 13:40:40 +02:00
|
|
|
%define sonum 9
|
|
|
|
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2014-09-25 10:23:48 +02:00
|
|
|
Patch0: include-config-h.patch
|
2015-02-01 21:07:50 +01:00
|
|
|
Patch1: mtp_DroidTurbo.patch
|
2013-12-18 11:36:21 +01:00
|
|
|
# from git 1a2669c6df6c093aec38c0c99a21438d74ccdf33
|
2007-01-08 17:46:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-05-27 08:26:01 +02:00
|
|
|
%{!?_udevrulesdir: %global _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d }
|
|
|
|
%{!?_udevdir: %global _udevdir %(pkg-config --variable=udevdir udev) }
|
|
|
|
|
2007-01-08 17:46:05 +01:00
|
|
|
%description
|
2011-06-10 16:40:15 +02:00
|
|
|
This package contains binaries and documentation that allow access to
|
|
|
|
USB based media players based on the MTP (Media Transfer Protocol)
|
2008-08-27 02:22:15 +02:00
|
|
|
authored by Microsoft.
|
|
|
|
|
|
|
|
Common devices using this technology are Creative Zen, iRiver, Samsung
|
|
|
|
and others.
|
2007-01-08 17:46:05 +01:00
|
|
|
|
2012-09-22 13:40:40 +02:00
|
|
|
%package -n %{name}%{sonum}
|
2008-08-27 02:22:15 +02:00
|
|
|
Summary: Library for accessing MTP Players
|
2007-10-26 12:59:37 +02:00
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
|
|
|
2012-09-22 13:40:40 +02:00
|
|
|
%description -n %{name}%{sonum}
|
2011-06-10 16:40:15 +02:00
|
|
|
This package contains the libraries that allow access to USB based media
|
|
|
|
players based on the MTP (Media Transfer Protocol) authored by
|
2008-08-27 02:22:15 +02:00
|
|
|
Microsoft.
|
|
|
|
|
|
|
|
Common devices using this technology are Creative Zen, iRiver, Samsung
|
|
|
|
and others.
|
2007-10-26 12:59:37 +02:00
|
|
|
|
2008-08-27 02:22:15 +02:00
|
|
|
%package -n mtp-tools
|
|
|
|
Summary: Commandline utilities for access to MTP Players
|
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
|
|
|
2011-12-29 17:31:04 +01:00
|
|
|
%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.
|
|
|
|
|
2007-02-09 01:13:18 +01:00
|
|
|
%package devel
|
2008-08-27 02:22:15 +02:00
|
|
|
Summary: Development files for access to MTP Player library
|
2007-07-27 01:56:14 +02:00
|
|
|
Group: Development/Libraries/Other
|
2012-09-22 13:40:40 +02:00
|
|
|
Requires: %{name}%{sonum} = %{version}
|
2007-05-17 11:43:47 +02:00
|
|
|
Requires: libusb-devel
|
2007-02-09 01:13:18 +01:00
|
|
|
|
|
|
|
%description devel
|
2008-08-27 02:22:15 +02:00
|
|
|
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.
|
|
|
|
|
2007-01-08 17:46:05 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-09-25 10:23:48 +02:00
|
|
|
%patch0 -p1
|
2015-02-01 21:07:50 +01:00
|
|
|
%patch1
|
2007-01-08 17:46:05 +01:00
|
|
|
|
|
|
|
%build
|
2014-05-27 08:26:01 +02:00
|
|
|
echo 'HTML_TIMESTAMP=NO' >> doc/Doxyfile.in
|
2012-11-04 19:58:46 +01:00
|
|
|
%configure --with-udev=%{_udevdir} --disable-static --enable-doxygen
|
2011-12-29 17:31:04 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-08 17:46:05 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2011-09-19 10:13:32 +02:00
|
|
|
#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
|
2012-09-22 13:40:40 +02:00
|
|
|
rm -rf %{buildroot}/usr/share/doc/libmtp*
|
|
|
|
rm -rf %{buildroot}/%{_libdir}/*.la
|
2007-01-08 17:46:05 +01:00
|
|
|
|
2012-09-22 13:40:40 +02:00
|
|
|
%post -n %{name}%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sonum} -p /sbin/ldconfig
|
2007-01-10 17:49:12 +01:00
|
|
|
|
2008-08-27 02:22:15 +02:00
|
|
|
%files -n mtp-tools
|
2007-01-08 17:46:05 +01:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_prefix}/bin/*
|
2007-10-26 12:59:37 +02:00
|
|
|
|
2012-09-22 13:40:40 +02:00
|
|
|
%files -n %{name}%{sonum}
|
2007-10-26 12:59:37 +02:00
|
|
|
%defattr(-, root, root)
|
2008-08-27 02:22:15 +02:00
|
|
|
%doc COPYING README ChangeLog AUTHORS
|
2007-10-26 12:59:37 +02:00
|
|
|
%{_libdir}/lib*.so.*
|
2011-09-19 10:13:32 +02:00
|
|
|
#%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
|
2012-11-04 19:58:46 +01:00
|
|
|
%{_udevdir}/mtp-probe
|
|
|
|
%{_udevrulesdir}/69-libmtp.rules
|
2007-01-08 17:46:05 +01:00
|
|
|
|
2007-02-09 01:13:18 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2008-08-27 02:22:15 +02:00
|
|
|
%doc doc/html TODO
|
2007-02-09 01:13:18 +01:00
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/libmtp.pc
|
|
|
|
%{_prefix}/include/libmtp.h
|
2007-11-26 20:47:26 +01:00
|
|
|
|
2007-03-08 00:50:50 +01:00
|
|
|
%changelog
|