2008-03-02 20:40:50 +00:00
|
|
|
# SPEC file for libmtp, primary target is the Fedora
|
2006-09-27 18:15:02 +00:00
|
|
|
# RPM repository.
|
|
|
|
|
|
|
|
Name: libmtp
|
2011-10-22 19:33:42 +00:00
|
|
|
Version: 1.1.1
|
2011-11-09 23:53:52 +00:00
|
|
|
Release: 2%{?dist}
|
2006-09-27 18:15:02 +00:00
|
|
|
Summary: A software library for MTP media players
|
|
|
|
URL: http://libmtp.sourceforge.net/
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-08-17 20:58:13 +00:00
|
|
|
License: LGPLv2+
|
2006-09-27 18:15:02 +00:00
|
|
|
Requires: udev
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
BuildRequires: doxygen
|
2011-11-09 23:53:52 +00:00
|
|
|
Obsoletes: libmtp-hal
|
2006-09-27 18:15:02 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a software library for communicating with MTP
|
|
|
|
(Media Transfer Protocol) media players, typically audio players, video
|
|
|
|
players etc.
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: Example programs for libmtp
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
This package provides example programs for communicating with MTP
|
|
|
|
devices.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libmtp
|
|
|
|
Group: System Environment/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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2011-02-04 23:32:37 +00:00
|
|
|
%configure --disable-static \
|
2011-10-22 19:33:42 +00:00
|
|
|
--with-udev-rules=69-libmtp.rules
|
2006-09-27 18:15:02 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
# Remove libtool archive remnant
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
|
2009-08-04 00:38:28 +00:00
|
|
|
# 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
|
2006-09-27 18:15:02 +00:00
|
|
|
# Copy documentation to a good place
|
2011-02-04 23:32:37 +00:00
|
|
|
mkdir -p -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
2006-09-27 18:15:02 +00:00
|
|
|
install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
|
|
|
|
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
2007-10-24 09:29:47 +00:00
|
|
|
# Touch generated files to make them always have the same time stamp.
|
|
|
|
touch -r configure.ac \
|
|
|
|
$RPM_BUILD_ROOT%{_includedir}/*.h \
|
|
|
|
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc \
|
2006-09-27 18:15:02 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root,root,-)
|
2011-06-10 14:01:24 +00:00
|
|
|
%{_libdir}/libmtp.so.9*
|
2009-12-01 17:16:07 +00:00
|
|
|
/lib/udev/rules.d/*
|
2011-01-08 23:47:50 +00:00
|
|
|
/lib/udev/mtp-probe
|
2010-06-17 15:55:55 +00:00
|
|
|
|
2006-09-27 18:15:02 +00:00
|
|
|
%files examples
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2011-06-10 14:01:24 +00:00
|
|
|
%{_libdir}/libmtp.so
|
2006-09-27 18:15:02 +00:00
|
|
|
%dir %{_docdir}/%{name}-%{version}
|
|
|
|
%{_docdir}/%{name}-%{version}/*
|
|
|
|
%{_includedir}/*.h
|
2011-06-10 14:01:24 +00:00
|
|
|
%{_libdir}/pkgconfig/libmtp.pc
|
2006-09-27 18:15:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2011-11-09 23:53:52 +00:00
|
|
|
|
|
|
|
* Thu Nov 10 2011 Linus Walleij <triad@df.lth.se> 1.1.1-2
|
|
|
|
- Add an Obsoletes: libmtp-hal so that users can upgrade from F15
|
|
|
|
|
2011-10-22 19:33:42 +00:00
|
|
|
* Sat Oct 22 2011 Linus Walleij <triad@df.lth.se> 1.1.1-1
|
|
|
|
- New upstream version fixing problems with a few color devices
|
|
|
|
plus adding new device support. Move udev rules from level
|
|
|
|
60 to level 69 to come after SANE and avoid probing these
|
|
|
|
devices.
|
|
|
|
|
2011-06-10 14:01:24 +00:00
|
|
|
* Fri Jun 10 2011 Rex Dieter <rdieter@fedoraproject.org> 1.1.0-2
|
|
|
|
- %%files: track abi/soname, so bumps aren't a surprise
|
|
|
|
|
2011-06-08 19:05:24 +00:00
|
|
|
* Tue Jun 08 2011 Linus Walleij <triad@df.lth.se> 1.1.0-1
|
|
|
|
- New upstream version including fixed bugs and the patch we
|
|
|
|
used to carry. Dependecies need to be rebuilt. (New
|
|
|
|
soversion)
|
|
|
|
|
2011-06-07 19:28:56 +00:00
|
|
|
* Tue Jun 07 2011 Linus Walleij <triad@df.lth.se> 1.0.6-3
|
|
|
|
- Nuke HAL dependency.
|
|
|
|
|
2011-03-31 23:08:56 +00:00
|
|
|
* Fri Apr 01 2011 Linus Walleij <triad@df.lth.se> 1.0.6-2
|
|
|
|
- Maybe fixing a probing issue on an input device.
|
|
|
|
|
2011-02-11 23:10:12 +00:00
|
|
|
* Sat Feb 12 2011 Linus Walleij <triad@df.lth.se> 1.0.6-1
|
|
|
|
- New upstream release fixing bugs & more things we patched.
|
|
|
|
|
2011-02-08 08:31:07 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-02-04 23:32:37 +00:00
|
|
|
* Sat Feb 5 2011 Linus Walleij <triad@df.lth.se> 1.0.5-1
|
|
|
|
- New upstream release fixing all the things we patched.
|
|
|
|
|
2011-01-24 18:33:42 +00:00
|
|
|
* Wed Jan 24 2011 Linus Walleij <triad@df.lth.se> 1.0.4-3
|
|
|
|
- Screwed up boolean logic in last patch, fixing it.
|
|
|
|
|
2011-01-19 18:45:03 +00:00
|
|
|
* Wed Jan 19 2011 Linus Walleij <triad@df.lth.se> 1.0.4-2
|
|
|
|
- Testing out a patch to be more careful when probing devices.
|
|
|
|
|
2011-01-08 23:47:50 +00:00
|
|
|
* Sun Jan 9 2011 Linus Walleij <triad@df.lth.se> 1.0.4-1
|
|
|
|
- New upstream version with mucho udev fixes.
|
|
|
|
|
2010-11-30 23:22:46 +00:00
|
|
|
* Wed Dec 1 2010 Linus Walleij <triad@df.lth.se> 1.0.3-7
|
|
|
|
- Now even with correct commas and stuff in udev actions.
|
|
|
|
|
2010-11-30 00:23:08 +00:00
|
|
|
* Tue Nov 30 2010 Linus Walleij <triad@df.lth.se> 1.0.3-6
|
|
|
|
- It appears adding ENV{ID_MTP_DEVICE}="1",
|
|
|
|
ENV{ID_MEDIA_PLAYER}="1" is the way forward so testing this
|
|
|
|
before pushing a new libmtp release.
|
|
|
|
|
2010-06-17 15:55:55 +00:00
|
|
|
* Thu Jun 17 2010 Bastien Nocera <bnocera@redhat.com> 1.0.3-5
|
|
|
|
- Split out hal sub-package
|
|
|
|
|
2010-06-09 23:26:13 +00:00
|
|
|
* Thu Jun 10 2010 Linus Walleij <triad@df.lth.se> 1.0.3-4
|
|
|
|
- Set ENV{ACL_MANAGE}="0" and TAG+="udev-acl" akin to rfkill
|
|
|
|
apparently this may be an interrim solution.
|
|
|
|
|
2010-06-05 09:34:44 +00:00
|
|
|
* Sat Jun 05 2010 Linus Walleij <triad@df.lth.se> 1.0.3-3
|
|
|
|
- Remove ENV{ACL_MANAGE} after Bastiens bug report.
|
|
|
|
|
2010-05-25 22:39:18 +00:00
|
|
|
* Tue May 25 2010 Linus Walleij <triad@df.lth.se> 1.0.3-2
|
|
|
|
- Replace hal-filesystem dependence with hal-info
|
|
|
|
We can remove this altogether once all apps are cleansed
|
|
|
|
from HAL.
|
|
|
|
|
2010-05-22 23:22:44 +00:00
|
|
|
* Sun May 23 2010 Linus Walleij <triad@df.lth.se> 1.0.3-1
|
|
|
|
- New upstream version, bug fixes.
|
|
|
|
|
2010-02-03 15:55:47 +00:00
|
|
|
* Wed Feb 2 2010 Linus Walleij <triad@df.lth.se> 1.0.2-1
|
|
|
|
- New upstream version, lots of bug fixes.
|
|
|
|
|
2010-01-20 15:22:07 +00:00
|
|
|
* Wed Jan 20 2010 Bastien Nocera <bnocera@redhat.com> 1.0.1-3
|
|
|
|
- Require hal-filesystem, instead of HAL
|
|
|
|
|
2009-12-01 17:21:42 +00:00
|
|
|
* Tue Dec 1 2009 Linus Walleij <triad@df.lth.se> 1.0.1-2
|
|
|
|
- Two patches from Dan Nicholson to fix up the udev rules a bit.
|
|
|
|
|
2009-09-12 10:57:05 +00:00
|
|
|
* Sat Sep 12 2009 Linus Walleij <triad@df.lth.se> 1.0.1-1
|
|
|
|
- New upstream release. No interface changes!
|
|
|
|
|
2009-08-04 00:38:28 +00:00
|
|
|
* Tue Aug 4 2009 Linus Walleij <triad@df.lth.se> 1.0.0-1
|
|
|
|
- New upstream release. Dependent packages need to be rebuilt against this.
|
|
|
|
|
2009-07-25 06:09:29 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-03-16 23:57:23 +00:00
|
|
|
* Tue Mar 17 2009 Linus Walleij <triad@df.lth.se> 0.3.7-1
|
|
|
|
- New upstream bugfix release.
|
|
|
|
|
2009-02-25 16:28:23 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-22 00:10:38 +00:00
|
|
|
* Thu Jan 22 2009 Linus Walleij <triad@df.lth.se> 0.3.6-1
|
|
|
|
- New upstream bugfix release.
|
|
|
|
|
2008-12-21 13:27:00 +00:00
|
|
|
* Sun Dec 21 2008 Linus Walleij <triad@df.lth.se> 0.3.5-1
|
|
|
|
- New upstream bugfix release.
|
|
|
|
- Nuke documentation again. Multilib no like.
|
|
|
|
|
2008-11-07 22:51:04 +00:00
|
|
|
* 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.
|
|
|
|
|
2008-10-25 14:45:40 +00:00
|
|
|
* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-4
|
|
|
|
- Update device list from CVS and fix the build
|
|
|
|
|
2008-10-25 14:32:10 +00:00
|
|
|
* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-3
|
|
|
|
- Add support for more Nokia phones from their WMP10 drivers
|
|
|
|
|
2008-10-24 20:08:16 +00:00
|
|
|
* Fri Oct 24 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-2
|
|
|
|
- Add support for the Nokia N82
|
|
|
|
|
2008-09-25 22:12:58 +00:00
|
|
|
* Fri Sep 26 2008 Linus Walleij <triad@df.lth.se> 0.3.3-1
|
|
|
|
- New upstream bugfix release.
|
|
|
|
|
2008-09-19 22:16:58 +00:00
|
|
|
* 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.
|
|
|
|
|
2008-08-26 16:05:13 +00:00
|
|
|
* Tue Aug 26 2008 Linus Walleij <triad@df.lth.se> 0.3.1-1
|
|
|
|
- New upstream version. (API and ABI compatible.)
|
|
|
|
|
2008-08-07 20:02:16 +00:00
|
|
|
* 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.
|
|
|
|
|
2008-07-11 19:52:52 +00:00
|
|
|
* 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.
|
|
|
|
|
2008-05-23 15:21:01 +00:00
|
|
|
* 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.
|
|
|
|
|
2008-03-07 23:32:23 +00:00
|
|
|
* Sat Mar 8 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-1
|
|
|
|
- New upstream bugfix release.
|
|
|
|
|
2008-03-02 20:40:50 +00:00
|
|
|
* Sun Mar 2 2008 Linus Walleij <triad@df.lth.se> 0.2.6-1
|
|
|
|
- New upstream release.
|
|
|
|
|
2008-02-09 22:12:21 +00:00
|
|
|
* Sat Feb 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-2
|
|
|
|
- Rebuild for GCC 4.3.
|
|
|
|
|
2008-01-08 23:14:46 +00:00
|
|
|
* Wed Jan 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-1
|
|
|
|
- New upstream release.
|
|
|
|
|
2007-11-22 21:08:08 +00:00
|
|
|
* Thu Nov 22 2007 Linus Walleij <triad@df.lth.se> 0.2.4-1
|
|
|
|
- New upstream release.
|
|
|
|
|
2007-10-25 18:59:44 +00:00
|
|
|
* 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.
|
|
|
|
|
2007-10-24 09:13:05 +00:00
|
|
|
* 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.
|
2011-06-08 19:05:24 +00:00
|
|
|
Either upstream (that's me!) needs to work around the HTML files being
|
2007-10-24 09:13:05 +00:00
|
|
|
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.)
|
|
|
|
|
2007-10-04 22:32:52 +00:00
|
|
|
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1
|
|
|
|
- New upstream release.
|
|
|
|
|
2007-08-17 20:58:13 +00:00
|
|
|
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.1-2
|
|
|
|
- License field update from LGPL to LGPLv2+
|
|
|
|
|
2007-08-07 16:16:16 +00:00
|
|
|
* Tue Aug 7 2007 Linus Walleij <triad@df.lth.se> 0.2.1-1
|
|
|
|
- Upstream bugfix release.
|
|
|
|
|
2007-08-04 21:37:41 +00:00
|
|
|
* 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.
|
|
|
|
|
2007-07-30 07:48:43 +00:00
|
|
|
* Mon Jul 30 2007 Harald Hoyer <harald@redhat.com> - 0.1.5-2
|
|
|
|
- changed udev rules for new kernel and udev versions
|
|
|
|
|
2007-03-26 19:33:09 +00:00
|
|
|
* 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.
|
|
|
|
|
2007-03-07 22:37:10 +00:00
|
|
|
* 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.
|
|
|
|
|
2007-01-17 19:01:30 +00:00
|
|
|
* Wed Jan 17 2007 Linus Walleij <triad@df.lth.se> 0.1.3-1
|
|
|
|
- New upstream release.
|
|
|
|
- Candidate for FC5, FC6 backport.
|
|
|
|
|
2006-12-07 21:45:35 +00:00
|
|
|
* Thu Dec 7 2006 Linus Walleij <triad@df.lth.se> 0.1.0-1
|
|
|
|
- New upstream release.
|
|
|
|
- Start providing HAL rules.
|
|
|
|
|
2006-10-20 18:56:49 +00:00
|
|
|
* Fri Oct 20 2006 Linus Walleij <triad@df.lth.se> 0.0.21-1
|
|
|
|
- New upstream release.
|
|
|
|
|
2006-09-27 18:15:02 +00:00
|
|
|
* 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
|