Blame SPECS/libmtp.spec

f59ba5
# SPEC file for libmtp, primary target is the Fedora
f59ba5
# RPM repository.
f59ba5
f59ba5
Name:           libmtp
f59ba5
Version:        1.1.14
f59ba5
Release:        1%{?dist}
f59ba5
Summary:        A software library for MTP media players
f59ba5
URL:            http://libmtp.sourceforge.net/
f59ba5
f59ba5
Group:          System Environment/Libraries
f59ba5
Source0:        https://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
f59ba5
License:        LGPLv2+
f59ba5
Requires:       udev
f59ba5
BuildRequires:  libusbx-devel
f59ba5
BuildRequires:  doxygen
f59ba5
BuildRequires:  libgcrypt-devel
f59ba5
BuildRequires:  chrpath
f59ba5
f59ba5
Patch0:         0001-doc-Don-t-document-internal-endian-macros.patch
f59ba5
f59ba5
%description
f59ba5
This package provides a software library for communicating with MTP
f59ba5
(Media Transfer Protocol) media players, typically audio players, video
f59ba5
players etc.
f59ba5
f59ba5
%package examples
f59ba5
Summary:        Example programs for libmtp
f59ba5
Group:          Applications/Multimedia
f59ba5
Requires:       %{name}%{?_isa} = %{version}-%{release}
f59ba5
f59ba5
%description examples
f59ba5
This package provides example programs for communicating with MTP
f59ba5
devices.
f59ba5
f59ba5
%package devel
f59ba5
Summary:        Development files for libmtp
f59ba5
Group:          System Environment/Libraries
f59ba5
Requires:       %{name}%{?_isa} = %{version}-%{release}
f59ba5
Requires:       pkgconfig
f59ba5
Requires:       libusb1-devel
f59ba5
Requires:       libgcrypt-devel
f59ba5
f59ba5
%description devel
f59ba5
This package provides development files for the libmtp
f59ba5
library for MTP media players.
f59ba5
f59ba5
%prep
f59ba5
%setup -q
f59ba5
%patch0 -p1
f59ba5
f59ba5
%build
f59ba5
%configure --disable-static \
f59ba5
           --with-udev-rules=69-libmtp.rules
f59ba5
%make_build
f59ba5
f59ba5
%install
f59ba5
%make_install
f59ba5
# Remove libtool archive remnant
f59ba5
rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
f59ba5
# Replace links with relative links
f59ba5
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-delfile
f59ba5
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-getfile
f59ba5
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-newfolder
f59ba5
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendfile
f59ba5
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendtr
f59ba5
pushd $RPM_BUILD_ROOT%{_bindir}
f59ba5
ln -sf mtp-connect mtp-delfile
f59ba5
ln -sf mtp-connect mtp-getfile
f59ba5
ln -sf mtp-connect mtp-newfolder
f59ba5
ln -sf mtp-connect mtp-sendfile
f59ba5
ln -sf mtp-connect mtp-sendtr
f59ba5
popd
f59ba5
# Copy documentation to a good place
f59ba5
mkdir -p -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
f59ba5
install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
f59ba5
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
f59ba5
# Touch generated files to make them always have the same time stamp.
f59ba5
touch -r configure.ac \
f59ba5
      $RPM_BUILD_ROOT%{_includedir}/*.h \
f59ba5
      $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc \
f59ba5
f59ba5
%clean
f59ba5
rm -rf $RPM_BUILD_ROOT
f59ba5
f59ba5
%post -p /sbin/ldconfig
f59ba5
%postun -p /sbin/ldconfig
f59ba5
f59ba5
%files
f59ba5
%defattr(-, root,root,-)
f59ba5
%{_libdir}/libmtp.so.9*
f59ba5
/usr/lib/udev/rules.d/*
f59ba5
/usr/lib/udev/hwdb.d/*
f59ba5
/usr/lib/udev/mtp-probe
f59ba5
f59ba5
%files examples
f59ba5
%defattr(-,root,root,-)
f59ba5
%{_bindir}/*
f59ba5
f59ba5
%files devel
f59ba5
%defattr(-,root,root,-)
f59ba5
%{_libdir}/libmtp.so
f59ba5
%dir %{_docdir}/%{name}-%{version}
f59ba5
%{_docdir}/%{name}-%{version}/*
f59ba5
%{_includedir}/*.h
f59ba5
%{_libdir}/pkgconfig/libmtp.pc
f59ba5
f59ba5
f59ba5
%changelog
f59ba5
* Mon Oct 09 2017 Bastien Nocera <bnocera@redhat.com> - 1.1.14-1
f59ba5
- Update to 1.1.14
f59ba5
Resolves: #1356288
f59ba5
f59ba5
* Mon Oct 09 2017 Bastien Nocera <bnocera@redhat.com> - 1.1.13-2
f59ba5
- Fix multilib conflict with internal header
f59ba5
Resolves: #1356288
f59ba5
f59ba5
* Fri Oct 06 2017 Bastien Nocera <bnocera@redhat.com> - 1.1.13-1
f59ba5
- Rebase to libmtp 1.1.13
f59ba5
Resolves: #1356288
f59ba5
f59ba5
* Mon May 23 2016 Bastien Nocera <bnocera@redhat.com> - 1.1.6-5
f59ba5
- Fix memory leak
f59ba5
Resolves: #1040011
f59ba5
f59ba5
* Wed May 18 2016 Bastien Nocera <bnocera@redhat.com> - 1.1.6-4
f59ba5
- Fix kernel hang when using libmtp
f59ba5
Resolves: #1049969
f59ba5
f59ba5
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.6-3
f59ba5
- Mass rebuild 2014-01-24
f59ba5
f59ba5
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.6-2
f59ba5
- Mass rebuild 2013-12-27
f59ba5
f59ba5
* Wed Oct  9 2013 Matthias Clasen <mclasen@redhat.com> - 1.1.6-1
f59ba5
- Install udev rules in /usr/lib/udev
f59ba5
- Disable strict aliasing
f59ba5
f59ba5
* Fri Mar 15 2013 Linus Walleij <triad@df.lth.se> 1.1.6-0
f59ba5
- New upstream version, several bug fixes, apropriate for GVFS etc.
f59ba5
f59ba5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
f59ba5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f59ba5
f59ba5
* Wed Oct 17 2012 Linus Walleij <triad@df.lth.se> 1.1.5-2
f59ba5
- Explicit disable MTPZ for now.
f59ba5
f59ba5
* Thu Sep 13 2012 Linus Walleij <triad@df.lth.se> 1.1.5-1
f59ba5
- New upstream version with several bug fixes.
f59ba5
f59ba5
* Sat Aug 18 2012 Linus Walleij <triad@df.lth.se> 1.1.4-1
f59ba5
- New upstream version with several bug fixes.
f59ba5
f59ba5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
f59ba5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f59ba5
f59ba5
* Thu Apr 03 2012 Linus Walleij <triad@df.lth.se> 1.1.3-2
f59ba5
- Use libusb-1.0 for sure, come on.
f59ba5
f59ba5
* Thu Apr 03 2012 Linus Walleij <triad@df.lth.se> 1.1.3-1
f59ba5
- Upstream update with several bug fixes including Fedora patch
f59ba5
f59ba5
* Sat Jan 28 2012 Linus Walleij <triad@df.lth.se> 1.1.2-2
f59ba5
- Bugfix to avoid probing Canon scanners
f59ba5
f59ba5
* Thu Jan 12 2012 Linus Walleij <triad@df.lth.se> 1.1.2-1
f59ba5
- Upstream update to use libusb-1.0 and other fixes.
f59ba5
f59ba5
* Thu Nov 10 2011 Linus Walleij <triad@df.lth.se> 1.1.1-2
f59ba5
- Add an Obsoletes: libmtp-hal so that users can upgrade from F15
f59ba5
f59ba5
* Sat Oct 22 2011 Linus Walleij <triad@df.lth.se> 1.1.1-1
f59ba5
- New upstream version fixing problems with a few color devices
f59ba5
  plus adding new device support. Move udev rules from level
f59ba5
  60 to level 69 to come after SANE and avoid probing these
f59ba5
  devices.
f59ba5
f59ba5
* Fri Jun 10 2011 Rex Dieter <rdieter@fedoraproject.org> 1.1.0-2
f59ba5
- %%files: track abi/soname, so bumps aren't a surprise
f59ba5
f59ba5
* Tue Jun 08 2011 Linus Walleij <triad@df.lth.se> 1.1.0-1
f59ba5
- New upstream version including fixed bugs and the patch we
f59ba5
  used to carry. Dependecies need to be rebuilt. (New
f59ba5
  soversion)
f59ba5
f59ba5
* Tue Jun 07 2011 Linus Walleij <triad@df.lth.se> 1.0.6-3
f59ba5
- Nuke HAL dependency.
f59ba5
f59ba5
* Fri Apr 01 2011 Linus Walleij <triad@df.lth.se> 1.0.6-2
f59ba5
- Maybe fixing a probing issue on an input device.
f59ba5
f59ba5
* Sat Feb 12 2011 Linus Walleij <triad@df.lth.se> 1.0.6-1
f59ba5
- New upstream release fixing bugs & more things we patched.
f59ba5
f59ba5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
f59ba5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f59ba5
f59ba5
* Sat Feb 5 2011 Linus Walleij <triad@df.lth.se> 1.0.5-1
f59ba5
- New upstream release fixing all the things we patched.
f59ba5
f59ba5
* Wed Jan 24 2011 Linus Walleij <triad@df.lth.se> 1.0.4-3
f59ba5
- Screwed up boolean logic in last patch, fixing it.
f59ba5
f59ba5
* Wed Jan 19 2011 Linus Walleij <triad@df.lth.se> 1.0.4-2
f59ba5
- Testing out a patch to be more careful when probing devices.
f59ba5
f59ba5
* Sun Jan 9 2011 Linus Walleij <triad@df.lth.se> 1.0.4-1
f59ba5
- New upstream version with mucho udev fixes.
f59ba5
f59ba5
* Wed Dec 1 2010 Linus Walleij <triad@df.lth.se> 1.0.3-7
f59ba5
- Now even with correct commas and stuff in udev actions.
f59ba5
f59ba5
* Tue Nov 30 2010 Linus Walleij <triad@df.lth.se> 1.0.3-6
f59ba5
- It appears adding ENV{ID_MTP_DEVICE}="1",
f59ba5
  ENV{ID_MEDIA_PLAYER}="1" is the way forward so testing this
f59ba5
  before pushing a new libmtp release.
f59ba5
f59ba5
* Thu Jun 17 2010 Bastien Nocera <bnocera@redhat.com> 1.0.3-5
f59ba5
- Split out hal sub-package
f59ba5
f59ba5
* Thu Jun 10 2010 Linus Walleij <triad@df.lth.se> 1.0.3-4
f59ba5
- Set ENV{ACL_MANAGE}="0" and TAG+="udev-acl" akin to rfkill
f59ba5
  apparently this may be an interrim solution.
f59ba5
f59ba5
* Sat Jun 05 2010 Linus Walleij <triad@df.lth.se> 1.0.3-3
f59ba5
- Remove ENV{ACL_MANAGE} after Bastiens bug report.
f59ba5
f59ba5
* Tue May 25 2010 Linus Walleij <triad@df.lth.se> 1.0.3-2
f59ba5
- Replace hal-filesystem dependence with hal-info
f59ba5
  We can remove this altogether once all apps are cleansed
f59ba5
  from HAL.
f59ba5
f59ba5
* Sun May 23 2010 Linus Walleij <triad@df.lth.se> 1.0.3-1
f59ba5
- New upstream version, bug fixes.
f59ba5
f59ba5
* Wed Feb 2 2010 Linus Walleij <triad@df.lth.se> 1.0.2-1
f59ba5
- New upstream version, lots of bug fixes.
f59ba5
f59ba5
* Wed Jan 20 2010 Bastien Nocera <bnocera@redhat.com> 1.0.1-3
f59ba5
- Require hal-filesystem, instead of HAL
f59ba5
f59ba5
* Tue Dec 1 2009 Linus Walleij <triad@df.lth.se> 1.0.1-2
f59ba5
- Two patches from Dan Nicholson to fix up the udev rules a bit.
f59ba5
f59ba5
* Sat Sep 12 2009 Linus Walleij <triad@df.lth.se> 1.0.1-1
f59ba5
- New upstream release. No interface changes!
f59ba5
f59ba5
* Tue Aug 4 2009 Linus Walleij <triad@df.lth.se> 1.0.0-1
f59ba5
- New upstream release. Dependent packages need to be rebuilt against this.
f59ba5
f59ba5
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-2
f59ba5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f59ba5
f59ba5
* Tue Mar 17 2009 Linus Walleij <triad@df.lth.se> 0.3.7-1
f59ba5
- New upstream bugfix release.
f59ba5
f59ba5
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
f59ba5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f59ba5
f59ba5
* Thu Jan 22 2009 Linus Walleij <triad@df.lth.se> 0.3.6-1
f59ba5
- New upstream bugfix release.
f59ba5
f59ba5
* Sun Dec 21 2008 Linus Walleij <triad@df.lth.se> 0.3.5-1
f59ba5
- New upstream bugfix release.
f59ba5
- Nuke documentation again. Multilib no like.
f59ba5
f59ba5
* Fri Nov 7 2008 Linus Walleij <triad@df.lth.se> 0.3.4-1
f59ba5
- New upstream bugfix release.
f59ba5
- Bastiens patch is upstreamed, dropping that patch.
f59ba5
f59ba5
* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-4
f59ba5
- Update device list from CVS and fix the build
f59ba5
f59ba5
* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-3
f59ba5
- Add support for more Nokia phones from their WMP10 drivers
f59ba5
f59ba5
* Fri Oct 24 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-2
f59ba5
- Add support for the Nokia N82
f59ba5
f59ba5
* Fri Sep 26 2008 Linus Walleij <triad@df.lth.se> 0.3.3-1
f59ba5
- New upstream bugfix release.
f59ba5
f59ba5
* Sat Sep 20 2008 Linus Walleij <triad@df.lth.se> 0.3.2-1
f59ba5
- New upstream version. (API and ABI compatible.) Fixes
f59ba5
  bugs on Creative devices.
f59ba5
f59ba5
* Tue Aug 26 2008 Linus Walleij <triad@df.lth.se> 0.3.1-1
f59ba5
- New upstream version. (API and ABI compatible.)
f59ba5
f59ba5
* Thu Aug 7 2008 Linus Walleij <triad@df.lth.se> 0.3.0-1
f59ba5
- Upgrade to 0.3.0. This has to happen some way, perhaps the
f59ba5
  painful way: I upgrade to gnomad2 2.9.2 that use 0.3.0 and
f59ba5
  then I write patches to Rhythmbox and Amarok to use 0.3.0
f59ba5
  and also send these upstream.
f59ba5
f59ba5
* Fri Jul 11 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-3
f59ba5
- Loose PAM console permissions, also assume that we can ship
f59ba5
  documentation again since Doxygen has been updated. Fedora
f59ba5
  HALd rules for the portable_audio_player capability in
f59ba5
  20-acl-management.fdi will change permissions on the device
f59ba5
  node for each plugged-in device.
f59ba5
f59ba5
* Fri May 23 2008 Adam Jackson <ajax@redhat.com> 0.2.6.1-2
f59ba5
- libmtp-0.2.6.1-simpler-rules.patch: Simplify udev rules for faster bootup.
f59ba5
f59ba5
* Sat Mar 8 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-1
f59ba5
- New upstream bugfix release.
f59ba5
f59ba5
* Sun Mar 2 2008 Linus Walleij <triad@df.lth.se> 0.2.6-1
f59ba5
- New upstream release.
f59ba5
f59ba5
* Sat Feb 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-2
f59ba5
- Rebuild for GCC 4.3.
f59ba5
f59ba5
* Wed Jan 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-1
f59ba5
- New upstream release.
f59ba5
f59ba5
* Thu Nov 22 2007 Linus Walleij <triad@df.lth.se> 0.2.4-1
f59ba5
- New upstream release.
f59ba5
f59ba5
* Thu Oct 25 2007 Linus Walleij <triad@df.lth.se> 0.2.3-1
f59ba5
- New upstream release.
f59ba5
- New soname libmtp.so.7 so all apps using libmtp have to
f59ba5
  be recompiled, have fun.
f59ba5
- If it works out we'll try to reserve a spot to backport
f59ba5
  this fixed version to F8 and F7 in a controlled manner.
f59ba5
f59ba5
* Wed Oct 24 2007 Linus Walleij <triad@df.lth.se> 0.2.2-2
f59ba5
- Flat out KILL the Doxygen HTML docs to resolve multiarch conflicts.
f59ba5
  Either upstream (that's me!) needs to work around the HTML files being
f59ba5
  different each time OR Doxygen must stop generating anchors that
f59ba5
  hash the system time, creating different files with each generation.
f59ba5
  Pre-generating the docs is deemed silly. (Someone will disagree.)
f59ba5
f59ba5
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1
f59ba5
- New upstream release.
f59ba5
f59ba5
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.1-2
f59ba5
- License field update from LGPL to LGPLv2+
f59ba5
f59ba5
* Tue Aug 7 2007 Linus Walleij <triad@df.lth.se> 0.2.1-1
f59ba5
- Upstream bugfix release.
f59ba5
f59ba5
* Sat Aug 4 2007 Linus Walleij <triad@df.lth.se> 0.2.0-1
f59ba5
- New upstream release.
f59ba5
- Fixes (hopefully) the issues found by Harald.
f59ba5
- Dependent apps will need to recompile and patch some minor code.
f59ba5
f59ba5
* Mon Jul 30 2007 Harald Hoyer <harald@redhat.com> - 0.1.5-2
f59ba5
- changed udev rules for new kernel and udev versions
f59ba5
f59ba5
* Mon Mar 26 2007 Linus Walleij <triad@df.lth.se> 0.1.5-1
f59ba5
- New upstream release.
f59ba5
- Candidate for FC5, FC6 backport.
f59ba5
- Hopefully API/ABI compatible, testing in devel tree.
f59ba5
f59ba5
* Wed Mar 7 2007 Linus Walleij <triad@df.lth.se> 0.1.4-1
f59ba5
- New upstream release.
f59ba5
- Candidate for FC5, FC6 backport.
f59ba5
- Hopefully API/ABI compatible, testing in devel tree.
f59ba5
f59ba5
* Wed Jan 17 2007 Linus Walleij <triad@df.lth.se> 0.1.3-1
f59ba5
- New upstream release.
f59ba5
- Candidate for FC5, FC6 backport.
f59ba5
f59ba5
* Thu Dec 7 2006 Linus Walleij <triad@df.lth.se> 0.1.0-1
f59ba5
- New upstream release.
f59ba5
- Start providing HAL rules.
f59ba5
f59ba5
* Fri Oct 20 2006 Linus Walleij <triad@df.lth.se> 0.0.21-1
f59ba5
- New upstream release.
f59ba5
f59ba5
* Tue Sep 26 2006 Linus Walleij <triad@df.lth.se> 0.0.20-1
f59ba5
- New upstream release.
f59ba5
- Updated after review by Parag AN, Kevin Fenzi and Ralf Corsepius.
f59ba5
- Fixed pkgconfig bug upstream after being detected by Ralf...
f59ba5
f59ba5
* Sun Aug 27 2006 Linus Walleij <triad@df.lth.se> 0.0.15-1
f59ba5
- New upstream release.
f59ba5
f59ba5
* Wed Aug 23 2006 Linus Walleij <triad@df.lth.se> 0.0.13-1
f59ba5
- First RPM'ed