deaffed
# SPEC file for libmtp, primary target is the Fedora
fec00e9
# RPM repository.
fec00e9
fec00e9
Name:           libmtp
8424fa6
Version:        1.0.3
64d98f6
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
64d98f6
Requires:	hal-info
fec00e9
BuildRequires:  libusb-devel
fec00e9
BuildRequires:  doxygen
fec00e9
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
fec00e9
fec00e9
%build
fec00e9
%configure --disable-static --program-prefix=mtp-
fec00e9
make %{?_smp_mflags}
1f052f5
# Remove permissions from udev rules, but register for ACL management
1f052f5
examples/hotplug -a"SYMLINK+=\"libmtp-%k\", ENV{ACL_MANAGE}=\"1\"" > 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
4668021
# Replace links with relative links
4668021
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-delfile
4668021
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-getfile
4668021
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-newfolder
4668021
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendfile
4668021
rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendtr
4668021
pushd $RPM_BUILD_ROOT%{_bindir}
4668021
ln -sf mtp-connect mtp-delfile
4668021
ln -sf mtp-connect mtp-getfile
4668021
ln -sf mtp-connect mtp-newfolder
4668021
ln -sf mtp-connect mtp-sendfile
4668021
ln -sf mtp-connect mtp-sendtr
4668021
popd
fec00e9
# Install udev rules file.
6b5e6d9
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d
6b5e6d9
install -p -m 644 libmtp.rules $RPM_BUILD_ROOT/lib/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
beb20ee
# Remove the Doxygen HTML documentation, this get different
beb20ee
# each time it is generated and thus creates multiarch conflicts.
beb20ee
# I don't want to pre-generate it but will instead wait for upstream
beb20ee
# to find a suitable solution that will always bring the same files,
beb20ee
# or that Doxygen is fixed not to do this.
beb20ee
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
beb20ee
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.*
6b5e6d9
/lib/udev/rules.d/*
6b5e6d9
%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
4668021
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
64d98f6
* Tue May 25 2010 Linus Walleij <triad@df.lth.se> 1.0.3-2
64d98f6
- Replace hal-filesystem dependence with hal-info
64d98f6
  We can remove this altogether once all apps are cleansed
64d98f6
  from HAL.
64d98f6
8424fa6
* Sun May 23 2010 Linus Walleij <triad@df.lth.se> 1.0.3-1
8424fa6
- New upstream version, bug fixes.
8424fa6
9b2de2e
* Wed Feb 2 2010 Linus Walleij <triad@df.lth.se> 1.0.2-1
9b2de2e
- New upstream version, lots of bug fixes.
9b2de2e
daf4d49
* Wed Jan 20 2010 Bastien Nocera <bnocera@redhat.com> 1.0.1-3
daf4d49
- Require hal-filesystem, instead of HAL
daf4d49
1f052f5
* Tue Dec 1 2009 Linus Walleij <triad@df.lth.se> 1.0.1-2
1f052f5
- Two patches from Dan Nicholson to fix up the udev rules a bit.
1f052f5
dcf5101
* Sat Sep 12 2009 Linus Walleij <triad@df.lth.se> 1.0.1-1
dcf5101
- New upstream release. No interface changes!
dcf5101
4668021
* Tue Aug 4 2009 Linus Walleij <triad@df.lth.se> 1.0.0-1
4668021
- New upstream release. Dependent packages need to be rebuilt against this.
4668021
12f0170
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-2
12f0170
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
12f0170
8f51a04
* Tue Mar 17 2009 Linus Walleij <triad@df.lth.se> 0.3.7-1
8f51a04
- New upstream bugfix release.
8f51a04
60940d0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
60940d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
60940d0
1f4fddb
* Thu Jan 22 2009 Linus Walleij <triad@df.lth.se> 0.3.6-1
1f4fddb
- New upstream bugfix release.
1f4fddb
beb20ee
* Sun Dec 21 2008 Linus Walleij <triad@df.lth.se> 0.3.5-1
beb20ee
- New upstream bugfix release.
beb20ee
- Nuke documentation again. Multilib no like.
beb20ee
c53cf52
* Fri Nov 7 2008 Linus Walleij <triad@df.lth.se> 0.3.4-1
c53cf52
- New upstream bugfix release.
c53cf52
- Bastiens patch is upstreamed, dropping that patch.
c53cf52
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