deaffed
# SPEC file for libmtp, primary target is the Fedora
fec00e9
# RPM repository.
fec00e9
fec00e9
Name:           libmtp
5760854
Version:        0.3.7
c1832f4
Release:        2%{?dist}
fec00e9
Summary:        A software library for MTP media players
fec00e9
URL:            http://libmtp.sourceforge.net/
fec00e9
fec00e9
Group:          System Environment/Libraries
fec00e9
Source0:        http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
fec00e9
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
712131d
License:        LGPLv2+
fec00e9
Requires:       udev
e03d7b8
Requires:	hal
fec00e9
BuildRequires:  libusb-devel
fec00e9
BuildRequires:  doxygen
fec00e9
d9d25b3
Patch0: libmtp-0.2.6.1-simpler-rules.patch
c1832f4
Patch1: newdevices.patch
d9d25b3
fec00e9
%description
fec00e9
This package provides a software library for communicating with MTP
fec00e9
(Media Transfer Protocol) media players, typically audio players, video
fec00e9
players etc.
fec00e9
fec00e9
%package examples
fec00e9
Summary:        Example programs for libmtp
fec00e9
Group:          Applications/Multimedia
fec00e9
Requires:       %{name} = %{version}-%{release}
fec00e9
fec00e9
%description examples
fec00e9
This package provides example programs for communicating with MTP
fec00e9
devices.
fec00e9
fec00e9
%package devel
fec00e9
Summary:        Development files for libmtp
fec00e9
Group:          System Environment/Libraries
fec00e9
Requires:       %{name} = %{version}-%{release}
fec00e9
Requires:       pkgconfig
fec00e9
Requires:       libusb-devel
fec00e9
fec00e9
%description devel
fec00e9
This package provides development files for the libmtp
fec00e9
library for MTP media players.
fec00e9
fec00e9
%prep
fec00e9
%setup -q
d9d25b3
%patch0 -p1 -b .rules
c1832f4
%patch1 -p1 -b .newdevices
fec00e9
fec00e9
%build
fec00e9
%configure --disable-static --program-prefix=mtp-
fec00e9
make %{?_smp_mflags}
fec00e9
# Remove permissions from symlink in udev script, we use
e80a45f
# HALd rules to fix the permissions instead.
fec00e9
examples/hotplug -a"SYMLINK+=\"libmtp-%k\"" > libmtp.rules
fec00e9
fec00e9
%install
fec00e9
rm -rf $RPM_BUILD_ROOT
fec00e9
make DESTDIR=$RPM_BUILD_ROOT install
fec00e9
# Remove libtool archive remnant
fec00e9
rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
fec00e9
# Install udev rules file.
fec00e9
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
fec00e9
install -p -m 644 libmtp.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libmtp.rules
e03d7b8
mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop
e03d7b8
install -p -m 644 libmtp.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
fec00e9
# Copy documentation to a good place
fec00e9
install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
fec00e9
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
d6047bb
# Touch generated files to make them always have the same time stamp.
d6047bb
touch -r configure.ac \
d6047bb
      $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/* \
d6047bb
      $RPM_BUILD_ROOT%{_includedir}/*.h \
d6047bb
      $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc \
d6047bb
      $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
696c215
# Remove the Doxygen HTML documentation, this get different
696c215
# each time it is generated and thus creates multiarch conflicts.
696c215
# I don't want to pre-generate it but will instead wait for upstream
696c215
# to find a suitable solution that will always bring the same files,
696c215
# or that Doxygen is fixed not to do this.
696c215
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
696c215
fec00e9
fec00e9
%clean
fec00e9
rm -rf $RPM_BUILD_ROOT
fec00e9
fec00e9
%post -p /sbin/ldconfig
fec00e9
%postun -p /sbin/ldconfig
fec00e9
fec00e9
%files
fec00e9
%defattr(-, root,root,-)
fec00e9
%{_libdir}/*.so.*
fec00e9
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
e03d7b8
%config(noreplace) %{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
fec00e9
%files examples
fec00e9
%defattr(-,root,root,-)
fec00e9
%{_bindir}/*
fec00e9
fec00e9
%files devel
fec00e9
%defattr(-,root,root,-)
fec00e9
%{_libdir}/*.so
fec00e9
%dir %{_docdir}/%{name}-%{version}
fec00e9
%{_docdir}/%{name}-%{version}/*
fec00e9
%{_includedir}/*.h
fec00e9
%{_libdir}/pkgconfig/*.pc
fec00e9
fec00e9
fec00e9
%changelog
c1832f4
* Fri Aug 14 2009 Linus Walleij <triad@df.lth.se> 0.3.7-2
c1832f4
- Devel has moved to 1.0.0 but the 1.0.0 contain many new devices that
c1832f4
  we want to support in older releases so let's patch in a new
c1832f4
  device database with new SONYs, Samsungs, SanDisks etc.
c1832f4
5760854
* Tue Mar 17 2009 Linus Walleij <triad@df.lth.se> 0.3.7-1
5760854
- New upstream bugfix release.
5760854
5760854
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
5760854
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5760854
9354275
* Thu Jan 22 2009 Linus Walleij <triad@df.lth.se> 0.3.6-1
9354275
- New upstream bugfix release.
9354275
696c215
* Sun Dec 21 2008 Linus Walleij <triad@df.lth.se> 0.3.5-1
696c215
- New upstream bugfix release.
696c215
- Nuke documentation again. Multilib no like.
696c215
e6ae043
* Fri Nov 7 2008 Linus Walleij <triad@df.lth.se> 0.3.4-1
e6ae043
- New upstream bugfix release.
e6ae043
- Bastiens patch is upstreamed, dropping that patch.
e6ae043
ad5bba8
* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-4
ad5bba8
- Update device list from CVS and fix the build
ad5bba8
82813e3
* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-3
82813e3
- Add support for more Nokia phones from their WMP10 drivers
82813e3
e7f5f4a
* Fri Oct 24 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-2
e7f5f4a
- Add support for the Nokia N82
e7f5f4a
daa7001
* Fri Sep 26 2008 Linus Walleij <triad@df.lth.se> 0.3.3-1
daa7001
- New upstream bugfix release.
daa7001
532f7df
* Sat Sep 20 2008 Linus Walleij <triad@df.lth.se> 0.3.2-1
532f7df
- New upstream version. (API and ABI compatible.) Fixes
532f7df
  bugs on Creative devices.
532f7df
f6d6bf3
* Tue Aug 26 2008 Linus Walleij <triad@df.lth.se> 0.3.1-1
f6d6bf3
- New upstream version. (API and ABI compatible.)
f6d6bf3
5772530
* Thu Aug 7 2008 Linus Walleij <triad@df.lth.se> 0.3.0-1
5772530
- Upgrade to 0.3.0. This has to happen some way, perhaps the
5772530
  painful way: I upgrade to gnomad2 2.9.2 that use 0.3.0 and
5772530
  then I write patches to Rhythmbox and Amarok to use 0.3.0
5772530
  and also send these upstream.
5772530
e80a45f
* Fri Jul 11 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-3
e80a45f
- Loose PAM console permissions, also assume that we can ship
e80a45f
  documentation again since Doxygen has been updated. Fedora
e80a45f
  HALd rules for the portable_audio_player capability in
e80a45f
  20-acl-management.fdi will change permissions on the device
e80a45f
  node for each plugged-in device.
e80a45f
d9d25b3
* Fri May 23 2008 Adam Jackson <ajax@redhat.com> 0.2.6.1-2
d9d25b3
- libmtp-0.2.6.1-simpler-rules.patch: Simplify udev rules for faster bootup.
d9d25b3
102217a
* Sat Mar 8 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-1
102217a
- New upstream bugfix release.
102217a
deaffed
* Sun Mar 2 2008 Linus Walleij <triad@df.lth.se> 0.2.6-1
deaffed
- New upstream release.
deaffed
6699f9c
* Sat Feb 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-2
6699f9c
- Rebuild for GCC 4.3.
6699f9c
ad9c3d4
* Wed Jan 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-1
ad9c3d4
- New upstream release.
ad9c3d4
9476cc2
* Thu Nov 22 2007 Linus Walleij <triad@df.lth.se> 0.2.4-1
9476cc2
- New upstream release.
9476cc2
eff172d
* Thu Oct 25 2007 Linus Walleij <triad@df.lth.se> 0.2.3-1
eff172d
- New upstream release.
eff172d
- New soname libmtp.so.7 so all apps using libmtp have to
eff172d
  be recompiled, have fun.
eff172d
- If it works out we'll try to reserve a spot to backport
eff172d
  this fixed version to F8 and F7 in a controlled manner.
eff172d
e8d2650
* Wed Oct 24 2007 Linus Walleij <triad@df.lth.se> 0.2.2-2
e8d2650
- Flat out KILL the Doxygen HTML docs to resolve multiarch conflicts.
e8d2650
  Either upstream (that's me!) needs to work around the HTML files being 
e8d2650
  different each time OR Doxygen must stop generating anchors that
e8d2650
  hash the system time, creating different files with each generation.
e8d2650
  Pre-generating the docs is deemed silly. (Someone will disagree.)
e8d2650
3379919
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1
3379919
- New upstream release.
3379919
712131d
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.1-2
712131d
- License field update from LGPL to LGPLv2+
712131d
75f9b74
* Tue Aug 7 2007 Linus Walleij <triad@df.lth.se> 0.2.1-1
75f9b74
- Upstream bugfix release.
75f9b74
32a1f40
* Sat Aug 4 2007 Linus Walleij <triad@df.lth.se> 0.2.0-1
32a1f40
- New upstream release.
32a1f40
- Fixes (hopefully) the issues found by Harald.
32a1f40
- Dependent apps will need to recompile and patch some minor code.
32a1f40
8188950
* Mon Jul 30 2007 Harald Hoyer <harald@redhat.com> - 0.1.5-2
8188950
- changed udev rules for new kernel and udev versions
8188950
69da348
* Mon Mar 26 2007 Linus Walleij <triad@df.lth.se> 0.1.5-1
69da348
- New upstream release.
69da348
- Candidate for FC5, FC6 backport.
69da348
- Hopefully API/ABI compatible, testing in devel tree.
69da348
4f775fa
* Wed Mar 7 2007 Linus Walleij <triad@df.lth.se> 0.1.4-1
4f775fa
- New upstream release.
4f775fa
- Candidate for FC5, FC6 backport.
4f775fa
- Hopefully API/ABI compatible, testing in devel tree.
4f775fa
0ff3871
* Wed Jan 17 2007 Linus Walleij <triad@df.lth.se> 0.1.3-1
0ff3871
- New upstream release.
0ff3871
- Candidate for FC5, FC6 backport.
0ff3871
e03d7b8
* Thu Dec 7 2006 Linus Walleij <triad@df.lth.se> 0.1.0-1
e03d7b8
- New upstream release.
e03d7b8
- Start providing HAL rules.
e03d7b8
7ce0d59
* Fri Oct 20 2006 Linus Walleij <triad@df.lth.se> 0.0.21-1
7ce0d59
- New upstream release.
7ce0d59
fec00e9
* Tue Sep 26 2006 Linus Walleij <triad@df.lth.se> 0.0.20-1
fec00e9
- New upstream release.
fec00e9
- Updated after review by Parag AN, Kevin Fenzi and Ralf Corsepius.
fec00e9
- Fixed pkgconfig bug upstream after being detected by Ralf...
fec00e9
fec00e9
* Sun Aug 27 2006 Linus Walleij <triad@df.lth.se> 0.0.15-1
fec00e9
- New upstream release.
fec00e9
fec00e9
* Wed Aug 23 2006 Linus Walleij <triad@df.lth.se> 0.0.13-1
fec00e9
- First RPM'ed