deaffe
# SPEC file for libmtp, primary target is the Fedora
fec00e
# RPM repository.
fec00e
fec00e
Name:           libmtp
21b07c
Version:        1.0.3
f20fe0
Release:        2%{?dist}
fec00e
Summary:        A software library for MTP media players
fec00e
URL:            http://libmtp.sourceforge.net/
fec00e
fec00e
Group:          System Environment/Libraries
fec00e
Source0:        http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
fec00e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
712131
License:        LGPLv2+
fec00e
Requires:       udev
f20fe0
Requires:	hal-info
fec00e
BuildRequires:  libusb-devel
fec00e
BuildRequires:  doxygen
fec00e
fec00e
%description
fec00e
This package provides a software library for communicating with MTP
fec00e
(Media Transfer Protocol) media players, typically audio players, video
fec00e
players etc.
fec00e
fec00e
%package examples
fec00e
Summary:        Example programs for libmtp
fec00e
Group:          Applications/Multimedia
fec00e
Requires:       %{name} = %{version}-%{release}
fec00e
fec00e
%description examples
fec00e
This package provides example programs for communicating with MTP
fec00e
devices.
fec00e
fec00e
%package devel
fec00e
Summary:        Development files for libmtp
fec00e
Group:          System Environment/Libraries
fec00e
Requires:       %{name} = %{version}-%{release}
fec00e
Requires:       pkgconfig
fec00e
Requires:       libusb-devel
fec00e
fec00e
%description devel
fec00e
This package provides development files for the libmtp
fec00e
library for MTP media players.
fec00e
fec00e
%prep
fec00e
%setup -q
fec00e
fec00e
%build
fec00e
%configure --disable-static --program-prefix=mtp-
fec00e
make %{?_smp_mflags}
1f052f
# Remove permissions from udev rules, but register for ACL management
1f052f
examples/hotplug -a"SYMLINK+=\"libmtp-%k\", ENV{ACL_MANAGE}=\"1\"" > libmtp.rules
fec00e
fec00e
%install
fec00e
rm -rf $RPM_BUILD_ROOT
fec00e
make DESTDIR=$RPM_BUILD_ROOT install
fec00e
# Remove libtool archive remnant
fec00e
rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
466802
# Replace links with relative links
466802
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-delfile
466802
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-getfile
466802
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-newfolder
466802
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendfile
466802
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendtr
466802
pushd $RPM_BUILD_ROOT%{_bindir}
466802
ln -sf mtp-connect mtp-delfile
466802
ln -sf mtp-connect mtp-getfile
466802
ln -sf mtp-connect mtp-newfolder
466802
ln -sf mtp-connect mtp-sendfile
466802
ln -sf mtp-connect mtp-sendtr
466802
popd
fec00e
# Install udev rules file.
6b5e6d
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d
6b5e6d
install -p -m 644 libmtp.rules $RPM_BUILD_ROOT/lib/udev/rules.d/60-libmtp.rules
e03d7b
mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop
e03d7b
install -p -m 644 libmtp.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
fec00e
# Copy documentation to a good place
fec00e
install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
fec00e
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
d6047b
# Touch generated files to make them always have the same time stamp.
d6047b
touch -r configure.ac \
d6047b
      $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/* \
d6047b
      $RPM_BUILD_ROOT%{_includedir}/*.h \
d6047b
      $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc \
d6047b
      $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
beb20e
# Remove the Doxygen HTML documentation, this get different
beb20e
# each time it is generated and thus creates multiarch conflicts.
beb20e
# I don't want to pre-generate it but will instead wait for upstream
beb20e
# to find a suitable solution that will always bring the same files,
beb20e
# or that Doxygen is fixed not to do this.
beb20e
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
beb20e
fec00e
fec00e
%clean
fec00e
rm -rf $RPM_BUILD_ROOT
fec00e
fec00e
%post -p /sbin/ldconfig
fec00e
%postun -p /sbin/ldconfig
fec00e
fec00e
%files
fec00e
%defattr(-, root,root,-)
fec00e
%{_libdir}/*.so.*
6b5e6d
/lib/udev/rules.d/*
6b5e6d
%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
466802
fec00e
%files examples
fec00e
%defattr(-,root,root,-)
fec00e
%{_bindir}/*
fec00e
fec00e
%files devel
fec00e
%defattr(-,root,root,-)
fec00e
%{_libdir}/*.so
fec00e
%dir %{_docdir}/%{name}-%{version}
fec00e
%{_docdir}/%{name}-%{version}/*
fec00e
%{_includedir}/*.h
fec00e
%{_libdir}/pkgconfig/*.pc
fec00e
fec00e
fec00e
%changelog
f20fe0
* Tue May 25 2010 Linus Walleij <triad@df.lth.se> 1.0.3-2
f20fe0
- Replace hal-filesystem dependence with hal-info
f20fe0
  We can remove this altogether once all apps are cleansed
f20fe0
  from HAL.
f20fe0
21b07c
* Sun May 23 2010 Linus Walleij <triad@df.lth.se> 1.0.3-1
21b07c
- New upstream version, bug fixes.
21b07c
9b2de2
* Wed Feb 2 2010 Linus Walleij <triad@df.lth.se> 1.0.2-1
9b2de2
- New upstream version, lots of bug fixes.
9b2de2
daf4d4
* Wed Jan 20 2010 Bastien Nocera <bnocera@redhat.com> 1.0.1-3
daf4d4
- Require hal-filesystem, instead of HAL
daf4d4
1f052f
* Tue Dec 1 2009 Linus Walleij <triad@df.lth.se> 1.0.1-2
1f052f
- Two patches from Dan Nicholson to fix up the udev rules a bit.
1f052f
dcf510
* Sat Sep 12 2009 Linus Walleij <triad@df.lth.se> 1.0.1-1
dcf510
- New upstream release. No interface changes!
dcf510
466802
* Tue Aug 4 2009 Linus Walleij <triad@df.lth.se> 1.0.0-1
466802
- New upstream release. Dependent packages need to be rebuilt against this.
466802
12f017
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-2
12f017
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
12f017
8f51a0
* Tue Mar 17 2009 Linus Walleij <triad@df.lth.se> 0.3.7-1
8f51a0
- New upstream bugfix release.
8f51a0
60940d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
60940d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
60940d
1f4fdd
* Thu Jan 22 2009 Linus Walleij <triad@df.lth.se> 0.3.6-1
1f4fdd
- New upstream bugfix release.
1f4fdd
beb20e
* Sun Dec 21 2008 Linus Walleij <triad@df.lth.se> 0.3.5-1
beb20e
- New upstream bugfix release.
beb20e
- Nuke documentation again. Multilib no like.
beb20e
c53cf5
* Fri Nov 7 2008 Linus Walleij <triad@df.lth.se> 0.3.4-1
c53cf5
- New upstream bugfix release.
c53cf5
- Bastiens patch is upstreamed, dropping that patch.
c53cf5
ad5bba
* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-4
ad5bba
- Update device list from CVS and fix the build
ad5bba
82813e
* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-3
82813e
- Add support for more Nokia phones from their WMP10 drivers
82813e
e7f5f4
* Fri Oct 24 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-2
e7f5f4
- Add support for the Nokia N82
e7f5f4
daa700
* Fri Sep 26 2008 Linus Walleij <triad@df.lth.se> 0.3.3-1
daa700
- New upstream bugfix release.
daa700
532f7d
* Sat Sep 20 2008 Linus Walleij <triad@df.lth.se> 0.3.2-1
532f7d
- New upstream version. (API and ABI compatible.) Fixes
532f7d
  bugs on Creative devices.
532f7d
f6d6bf
* Tue Aug 26 2008 Linus Walleij <triad@df.lth.se> 0.3.1-1
f6d6bf
- New upstream version. (API and ABI compatible.)
f6d6bf
577253
* Thu Aug 7 2008 Linus Walleij <triad@df.lth.se> 0.3.0-1
577253
- Upgrade to 0.3.0. This has to happen some way, perhaps the
577253
  painful way: I upgrade to gnomad2 2.9.2 that use 0.3.0 and
577253
  then I write patches to Rhythmbox and Amarok to use 0.3.0
577253
  and also send these upstream.
577253
e80a45
* Fri Jul 11 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-3
e80a45
- Loose PAM console permissions, also assume that we can ship
e80a45
  documentation again since Doxygen has been updated. Fedora
e80a45
  HALd rules for the portable_audio_player capability in
e80a45
  20-acl-management.fdi will change permissions on the device
e80a45
  node for each plugged-in device.
e80a45
d9d25b
* Fri May 23 2008 Adam Jackson <ajax@redhat.com> 0.2.6.1-2
d9d25b
- libmtp-0.2.6.1-simpler-rules.patch: Simplify udev rules for faster bootup.
d9d25b
102217
* Sat Mar 8 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-1
102217
- New upstream bugfix release.
102217
deaffe
* Sun Mar 2 2008 Linus Walleij <triad@df.lth.se> 0.2.6-1
deaffe
- New upstream release.
deaffe
6699f9
* Sat Feb 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-2
6699f9
- Rebuild for GCC 4.3.
6699f9
ad9c3d
* Wed Jan 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-1
ad9c3d
- New upstream release.
ad9c3d
9476cc
* Thu Nov 22 2007 Linus Walleij <triad@df.lth.se> 0.2.4-1
9476cc
- New upstream release.
9476cc
eff172
* Thu Oct 25 2007 Linus Walleij <triad@df.lth.se> 0.2.3-1
eff172
- New upstream release.
eff172
- New soname libmtp.so.7 so all apps using libmtp have to
eff172
  be recompiled, have fun.
eff172
- If it works out we'll try to reserve a spot to backport
eff172
  this fixed version to F8 and F7 in a controlled manner.
eff172
e8d265
* Wed Oct 24 2007 Linus Walleij <triad@df.lth.se> 0.2.2-2
e8d265
- Flat out KILL the Doxygen HTML docs to resolve multiarch conflicts.
e8d265
  Either upstream (that's me!) needs to work around the HTML files being 
e8d265
  different each time OR Doxygen must stop generating anchors that
e8d265
  hash the system time, creating different files with each generation.
e8d265
  Pre-generating the docs is deemed silly. (Someone will disagree.)
e8d265
337991
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1
337991
- New upstream release.
337991
712131
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.1-2
712131
- License field update from LGPL to LGPLv2+
712131
75f9b7
* Tue Aug 7 2007 Linus Walleij <triad@df.lth.se> 0.2.1-1
75f9b7
- Upstream bugfix release.
75f9b7
32a1f4
* Sat Aug 4 2007 Linus Walleij <triad@df.lth.se> 0.2.0-1
32a1f4
- New upstream release.
32a1f4
- Fixes (hopefully) the issues found by Harald.
32a1f4
- Dependent apps will need to recompile and patch some minor code.
32a1f4
818895
* Mon Jul 30 2007 Harald Hoyer <harald@redhat.com> - 0.1.5-2
818895
- changed udev rules for new kernel and udev versions
818895
69da34
* Mon Mar 26 2007 Linus Walleij <triad@df.lth.se> 0.1.5-1
69da34
- New upstream release.
69da34
- Candidate for FC5, FC6 backport.
69da34
- Hopefully API/ABI compatible, testing in devel tree.
69da34
4f775f
* Wed Mar 7 2007 Linus Walleij <triad@df.lth.se> 0.1.4-1
4f775f
- New upstream release.
4f775f
- Candidate for FC5, FC6 backport.
4f775f
- Hopefully API/ABI compatible, testing in devel tree.
4f775f
0ff387
* Wed Jan 17 2007 Linus Walleij <triad@df.lth.se> 0.1.3-1
0ff387
- New upstream release.
0ff387
- Candidate for FC5, FC6 backport.
0ff387
e03d7b
* Thu Dec 7 2006 Linus Walleij <triad@df.lth.se> 0.1.0-1
e03d7b
- New upstream release.
e03d7b
- Start providing HAL rules.
e03d7b
7ce0d5
* Fri Oct 20 2006 Linus Walleij <triad@df.lth.se> 0.0.21-1
7ce0d5
- New upstream release.
7ce0d5
fec00e
* Tue Sep 26 2006 Linus Walleij <triad@df.lth.se> 0.0.20-1
fec00e
- New upstream release.
fec00e
- Updated after review by Parag AN, Kevin Fenzi and Ralf Corsepius.
fec00e
- Fixed pkgconfig bug upstream after being detected by Ralf...
fec00e
fec00e
* Sun Aug 27 2006 Linus Walleij <triad@df.lth.se> 0.0.15-1
fec00e
- New upstream release.
fec00e
fec00e
* Wed Aug 23 2006 Linus Walleij <triad@df.lth.se> 0.0.13-1
fec00e
- First RPM'ed