2006-09-27 18:15:02 +00:00
|
|
|
# SPEC file for libmtp, primary target is the Fedora Extras
|
|
|
|
# RPM repository.
|
|
|
|
|
|
|
|
Name: libmtp
|
2007-10-25 18:59:44 +00:00
|
|
|
Version: 0.2.3
|
|
|
|
Release: 1%{?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
|
|
|
|
Source1: libmtp.perms
|
|
|
|
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
|
|
|
|
Requires: pam
|
2006-12-07 21:45:35 +00:00
|
|
|
Requires: hal
|
2006-09-27 18:15:02 +00:00
|
|
|
BuildRequires: libusb-devel
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
|
|
|
%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
|
|
|
|
%configure --disable-static --program-prefix=mtp-
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
# Remove permissions from symlink in udev script, we use
|
|
|
|
# PAM to fix the permissions instead.
|
|
|
|
examples/hotplug -a"SYMLINK+=\"libmtp-%k\"" > libmtp.rules
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
# Remove libtool archive remnant
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
|
|
|
|
# Install udev rules file.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
|
|
|
|
install -p -m 644 libmtp.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libmtp.rules
|
2006-12-07 21:45:35 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop
|
|
|
|
install -p -m 644 libmtp.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
|
2006-09-27 18:15:02 +00:00
|
|
|
# Install device permissions
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/security/console.perms.d/
|
|
|
|
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.perms.d/60-libmtp.perms
|
|
|
|
# Copy documentation to a good place
|
|
|
|
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%{_docdir}/%{name}-%{version}/html/* \
|
|
|
|
$RPM_BUILD_ROOT%{_includedir}/*.h \
|
|
|
|
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
|
|
|
|
# Remove the Doxygen HTML documentation, this get different
|
|
|
|
# each time it is generated and thus creates multiarch conflicts.
|
|
|
|
# I don't want to pre-generate it but will instead wait for upstream
|
|
|
|
# to find a suitable solution that will always bring the same files,
|
|
|
|
# or that Doxygen is fixed not to do this.
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
|
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,-)
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
|
|
|
|
%config(noreplace) %{_sysconfdir}/security/console.perms.d/*
|
2006-12-07 21:45:35 +00:00
|
|
|
%config(noreplace) %{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
|
2006-09-27 18:15:02 +00:00
|
|
|
%files examples
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%dir %{_docdir}/%{name}-%{version}
|
|
|
|
%{_docdir}/%{name}-%{version}/*
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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.
|
|
|
|
Either upstream (that's me!) needs to work around the HTML files being
|
|
|
|
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
|