Marcus Meissner
cf234ae1e1
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmtp?expand=0&rev=34
165 lines
4.5 KiB
RPMSpec
165 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package libmtp
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
|
|
%define debug_package_requires libmtp9 = %{version}-%{release}
|
|
|
|
Name: libmtp
|
|
Url: http://sf.net/projects/libmtp
|
|
BuildRequires: doxygen pkg-config
|
|
BuildRequires: libusb-devel
|
|
License: LGPLv2.1+
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
AutoReqProv: on
|
|
Summary: Commandline utilities for access to MTP Players
|
|
Version: 1.1.0
|
|
Release: 7
|
|
Source0: %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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Richard Low <richard@wentnet.com>
|
|
Linus Walleij <triad@df.lth.se>
|
|
|
|
based on code by:
|
|
Mariusz Woloszyn <emsi@ipartners.pl>
|
|
Marcus Meissner <marcus@jet.franken.de>
|
|
|
|
%package -n libmtp9
|
|
License: LGPLv2.1+
|
|
Summary: Library for accessing MTP Players
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
|
|
%description -n libmtp9
|
|
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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Richard Low <richard@wentnet.com>
|
|
Linus Walleij <triad@df.lth.se>
|
|
|
|
based on code by:
|
|
Mariusz Woloszyn <emsi@ipartners.pl>
|
|
Marcus Meissner <marcus@jet.franken.de>
|
|
|
|
%package -n mtp-tools
|
|
License: LGPLv2.1+
|
|
Summary: Commandline utilities for access to MTP Players
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
|
|
%package devel
|
|
License: LGPLv2.1+
|
|
Summary: Development files for access to MTP Player library
|
|
Group: Development/Libraries/Other
|
|
Requires: libmtp9 = %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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Richard Low <richard@wentnet.com>
|
|
Linus Walleij <triad@df.lth.se>
|
|
|
|
based on code by:
|
|
Mariusz Woloszyn <emsi@ipartners.pl>
|
|
Marcus Meissner <marcus@jet.franken.de>
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Richard Low <richard@wentnet.com>
|
|
Linus Walleij <triad@df.lth.se>
|
|
|
|
based on code by:
|
|
Mariusz Woloszyn <emsi@ipartners.pl>
|
|
Marcus Meissner <marcus@jet.franken.de>
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static --enable-doxygen
|
|
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
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/libmtp*
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
|
%post -n libmtp9 -p /sbin/ldconfig
|
|
|
|
%postun -n libmtp9 -p /sbin/ldconfig
|
|
|
|
%files -n mtp-tools
|
|
%defattr(-, root, root)
|
|
%{_prefix}/bin/*
|
|
|
|
%files -n libmtp9
|
|
%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/39-libmtp.rules
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%doc doc/html TODO
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/pkgconfig/libmtp.pc
|
|
%{_prefix}/include/libmtp.h
|
|
|
|
%changelog
|