123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- Name: libmtp
- Summary: A software library for MTP media players
- Summary(ja): MTP メディアプレイヤーのためのソフトウェアライブラリ
- Version: 1.0.3
- Release: 1%{?_dist_release}
- Group: System Environment/Libraries
- License: LGPLv2+
- URL: http://libmtp.sourceforge.net/
- Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
- Patch0: libmtp-0.2.6.1-simpler-rules.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
- BuildRequires: libusb-devel
- BuildRequires: doxygen
- Requires: udev
- %description
- This package provides a software library for communicating with MTP
- (Media Transfer Protocol) media players, typically audio players, video
- players etc.
- %description -l ja
- このパッケージは典型的な音声プレイヤーや動画プレイヤーなどの
- MTP (Media Transfer Protocol) メディアプレイヤーのための
- ソフトウェアライブラリを提供します.
- %package hal
- Summary: Music player information for HAL
- Group: Applications/Multimedia
- Requires: %{name} = %{version}-%{release}
- Requires: hal-info
- %description hal
- This package provides information about detecting MTP devices using HAL.
- %package examples
- Summary: Example programs for libmtp
- Summary(ja): libmtp のプログラム例集
- Group: Applications/Multimedia
- Requires: %{name} = %{version}-%{release}
- %description examples
- This package provides example programs for communicating with MTP
- devices.
- %description -l ja examples
- このパッケージは MTP デバイスを用いて通信するためのプログラム例集を提供します.
- %package devel
- Summary: Development files for libmtp
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: pkgconfig
- Requires: libusb-devel
- %description devel
- This package provides development files for the libmtp
- library for MTP media players.
- %description -l ja devel
- このパッケージは MTP メディアプレイヤーのための libmtp ライブラリに対する
- 開発ファイル群を提供します.
- %prep
- %setup -q
- %patch0 -p1 -b .rules
- %build
- %configure --disable-static --program-prefix=mtp-
- make %{?_smp_mflags}
- # Remove permissions from udev rules, but register for ACL management
- examples/hotplug -a"SYMLINK+=\"libmtp-%k\" ENV{ACL_MANAGE}=\"0\" TAG+=\"udev-acl\"" > libmtp.rules
- %install
- rm -rf $RPM_BUILD_ROOT
- make DESTDIR=$RPM_BUILD_ROOT install
- # Remove libtool archive remnant
- rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
- # Replace links with relative links
- rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-delfile
- rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-getfile
- rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-newfolder
- rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendfile
- rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendtr
- pushd $RPM_BUILD_ROOT%{_bindir}
- ln -sf mtp-connect mtp-delfile
- ln -sf mtp-connect mtp-getfile
- ln -sf mtp-connect mtp-newfolder
- ln -sf mtp-connect mtp-sendfile
- ln -sf mtp-connect mtp-sendtr
- popd
- # Install udev rules file.
- mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
- install -p -m 644 libmtp.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libmtp.rules
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop
- install -p -m 644 libmtp.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
- # Copy documentation to a good place
- install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
- $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
- # Touch generated files to make them always have the same time stamp.
- touch -r configure.ac \
- $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/* \
- $RPM_BUILD_ROOT%{_includedir}/*.h \
- $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc \
- $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
- # Remove the Doxygen HTML documentation, this get different
- # each time it is generated and thus creates multiarch conflicts.
- # I don't want to pre-generate it but will instead wait for upstream
- # to find a suitable solution that will always bring the same files,
- # or that Doxygen is fixed not to do this.
- rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files
- %defattr(-, root,root,-)
- %{_libdir}/*.so.*
- %config(noreplace) %{_sysconfdir}/udev/rules.d/*
- %files hal
- %defattr(-, root,root,-)
- %{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
- %files examples
- %defattr(-,root,root,-)
- %{_bindir}/*
- %files devel
- %defattr(-,root,root,-)
- %{_libdir}/*.so
- %dir %{_docdir}/%{name}-%{version}
- %{_docdir}/%{name}-%{version}/*
- %{_includedir}/*.h
- %{_libdir}/pkgconfig/*.pc
- %changelog
- * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-1
- - updated to 1.0.3
- - Split out hal sub-package
- * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.3.7-2
- - rebuilt with rpm-4.8.1 for pkg-config
- * Tue Jun 16 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.3.7-1
- - new upstream release
- * Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.3.5-1
- - initial build based on Fedora package
- * Sun Dec 21 2008 Linus Walleij <triad@df.lth.se> 0.3.5-1
- - New upstream bugfix release.
- - Nuke documentation again. Multilib no like.
- * Fri Nov 7 2008 Linus Walleij <triad@df.lth.se> 0.3.4-1
- - New upstream bugfix release.
- - Bastiens patch is upstreamed, dropping that patch.
- * Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-4
- - Update device list from CVS and fix the build
- * Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-3
- - Add support for more Nokia phones from their WMP10 drivers
- * Fri Oct 24 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-2
- - Add support for the Nokia N82
- * Fri Sep 26 2008 Linus Walleij <triad@df.lth.se> 0.3.3-1
- - New upstream bugfix release.
- * Sat Sep 20 2008 Linus Walleij <triad@df.lth.se> 0.3.2-1
- - New upstream version. (API and ABI compatible.) Fixes
- bugs on Creative devices.
- * Tue Aug 26 2008 Linus Walleij <triad@df.lth.se> 0.3.1-1
- - New upstream version. (API and ABI compatible.)
- * Thu Aug 7 2008 Linus Walleij <triad@df.lth.se> 0.3.0-1
- - Upgrade to 0.3.0. This has to happen some way, perhaps the
- painful way: I upgrade to gnomad2 2.9.2 that use 0.3.0 and
- then I write patches to Rhythmbox and Amarok to use 0.3.0
- and also send these upstream.
- * Fri Jul 11 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-3
- - Loose PAM console permissions, also assume that we can ship
- documentation again since Doxygen has been updated. Fedora
- HALd rules for the portable_audio_player capability in
- 20-acl-management.fdi will change permissions on the device
- node for each plugged-in device.
- * Fri May 23 2008 Adam Jackson <ajax@redhat.com> 0.2.6.1-2
- - libmtp-0.2.6.1-simpler-rules.patch: Simplify udev rules for faster bootup.
- * Sat Mar 8 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-1
- - New upstream bugfix release.
- * Sun Mar 2 2008 Linus Walleij <triad@df.lth.se> 0.2.6-1
- - New upstream release.
- * Sat Feb 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-2
- - Rebuild for GCC 4.3.
- * Wed Jan 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-1
- - New upstream release.
- * Thu Nov 22 2007 Linus Walleij <triad@df.lth.se> 0.2.4-1
- - New upstream release.
- * Thu Oct 25 2007 Linus Walleij <triad@df.lth.se> 0.2.3-1
- - New upstream release.
- - New soname libmtp.so.7 so all apps using libmtp have to
- be recompiled, have fun.
- - If it works out we'll try to reserve a spot to backport
- this fixed version to F8 and F7 in a controlled manner.
- * Wed Oct 24 2007 Linus Walleij <triad@df.lth.se> 0.2.2-2
- - Flat out KILL the Doxygen HTML docs to resolve multiarch conflicts.
- Either upstream (that's me!) needs to work around the HTML files being
- different each time OR Doxygen must stop generating anchors that
- hash the system time, creating different files with each generation.
- Pre-generating the docs is deemed silly. (Someone will disagree.)
- * Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1
- - New upstream release.
- * Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.1-2
- - License field update from LGPL to LGPLv2+
- * Tue Aug 7 2007 Linus Walleij <triad@df.lth.se> 0.2.1-1
- - Upstream bugfix release.
- * Sat Aug 4 2007 Linus Walleij <triad@df.lth.se> 0.2.0-1
- - New upstream release.
- - Fixes (hopefully) the issues found by Harald.
- - Dependent apps will need to recompile and patch some minor code.
- * Mon Jul 30 2007 Harald Hoyer <harald@redhat.com> - 0.1.5-2
- - changed udev rules for new kernel and udev versions
- * Mon Mar 26 2007 Linus Walleij <triad@df.lth.se> 0.1.5-1
- - New upstream release.
- - Candidate for FC5, FC6 backport.
- - Hopefully API/ABI compatible, testing in devel tree.
- * Wed Mar 7 2007 Linus Walleij <triad@df.lth.se> 0.1.4-1
- - New upstream release.
- - Candidate for FC5, FC6 backport.
- - Hopefully API/ABI compatible, testing in devel tree.
- * Wed Jan 17 2007 Linus Walleij <triad@df.lth.se> 0.1.3-1
- - New upstream release.
- - Candidate for FC5, FC6 backport.
- * Thu Dec 7 2006 Linus Walleij <triad@df.lth.se> 0.1.0-1
- - New upstream release.
- - Start providing HAL rules.
- * Fri Oct 20 2006 Linus Walleij <triad@df.lth.se> 0.0.21-1
- - New upstream release.
- * Tue Sep 26 2006 Linus Walleij <triad@df.lth.se> 0.0.20-1
- - New upstream release.
- - Updated after review by Parag AN, Kevin Fenzi and Ralf Corsepius.
- - Fixed pkgconfig bug upstream after being detected by Ralf...
- * Sun Aug 27 2006 Linus Walleij <triad@df.lth.se> 0.0.15-1
- - New upstream release.
- * Wed Aug 23 2006 Linus Walleij <triad@df.lth.se> 0.0.13-1
- - First RPM'ed
|