source: projects/specs/branches/6/lib/libm/libmtp/libmtp-vl.spec @ 2087

Revision 2087, 9.4 KB checked in by inagaki, 14 years ago (diff)

updated: MySQL, libmtp, taglib
NEW: taglib-extras

Line 
1Name:           libmtp
2Summary:        A software library for MTP media players
3Summary(ja):    MTP メディアプレイヤーのためのソフトウェアライブラリ
4Version:        1.0.3
5Release:        1%{?_dist_release}
6
7Group:          System Environment/Libraries
8License:        LGPLv2+
9URL:            http://libmtp.sourceforge.net/
10
11Source0:        http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
12Patch0:         libmtp-0.2.6.1-simpler-rules.patch
13
14BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
15BuildRequires:  libusb-devel
16BuildRequires:  doxygen
17Requires:       udev
18
19%description
20This package provides a software library for communicating with MTP
21(Media Transfer Protocol) media players, typically audio players, video
22players etc.
23
24%description -l ja
25このパッケージは典型的な音声プレイヤーや動画プレイヤーなどの
26MTP (Media Transfer Protocol) メディアプレイヤーのための
27ソフトウェアライブラリを提供します.
28
29%package hal
30Summary: Music player information for HAL
31Group: Applications/Multimedia
32Requires: %{name} = %{version}-%{release}
33Requires: hal-info
34
35%description hal
36This package provides information about detecting MTP devices using HAL.
37
38%package examples
39Summary: Example programs for libmtp
40Summary(ja): libmtp のプログラム例集
41Group: Applications/Multimedia
42Requires: %{name} = %{version}-%{release}
43
44%description examples
45This package provides example programs for communicating with MTP
46devices.
47
48%description -l ja examples
49このパッケージは MTP デバイスを用いて通信するためのプログラム例集を提供します.
50
51%package devel
52Summary: Development files for libmtp
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
55Requires: pkgconfig
56Requires: libusb-devel
57
58%description devel
59This package provides development files for the libmtp
60library for MTP media players.
61
62%description -l ja devel
63このパッケージは MTP メディアプレイヤーのための libmtp ライブラリに対する
64開発ファイル群を提供します.
65
66%prep
67%setup -q
68%patch0 -p1 -b .rules
69
70%build
71%configure --disable-static --program-prefix=mtp-
72make %{?_smp_mflags}
73# Remove permissions from udev rules, but register for ACL management
74examples/hotplug -a"SYMLINK+=\"libmtp-%k\" ENV{ACL_MANAGE}=\"0\" TAG+=\"udev-acl\"" > libmtp.rules
75
76%install
77rm -rf $RPM_BUILD_ROOT
78make DESTDIR=$RPM_BUILD_ROOT install
79# Remove libtool archive remnant
80rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
81# Replace links with relative links
82rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-delfile
83rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-getfile
84rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-newfolder
85rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendfile
86rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendtr
87pushd $RPM_BUILD_ROOT%{_bindir}
88ln -sf mtp-connect mtp-delfile
89ln -sf mtp-connect mtp-getfile
90ln -sf mtp-connect mtp-newfolder
91ln -sf mtp-connect mtp-sendfile
92ln -sf mtp-connect mtp-sendtr
93popd
94# Install udev rules file.
95mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
96install -p -m 644 libmtp.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libmtp.rules
97mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop
98install -p -m 644 libmtp.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
99# Copy documentation to a good place
100install -p -m 644 AUTHORS ChangeLog COPYING INSTALL README TODO \
101$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
102# Touch generated files to make them always have the same time stamp.
103touch -r configure.ac \
104      $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/* \
105      $RPM_BUILD_ROOT%{_includedir}/*.h \
106      $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc \
107      $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
108# Remove the Doxygen HTML documentation, this get different
109# each time it is generated and thus creates multiarch conflicts.
110# I don't want to pre-generate it but will instead wait for upstream
111# to find a suitable solution that will always bring the same files,
112# or that Doxygen is fixed not to do this.
113rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
114
115
116%clean
117rm -rf $RPM_BUILD_ROOT
118
119%post -p /sbin/ldconfig
120%postun -p /sbin/ldconfig
121
122%files
123%defattr(-, root,root,-)
124%{_libdir}/*.so.*
125%config(noreplace) %{_sysconfdir}/udev/rules.d/*
126
127%files hal
128%defattr(-, root,root,-)
129%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
130
131%files examples
132%defattr(-,root,root,-)
133%{_bindir}/*
134
135%files devel
136%defattr(-,root,root,-)
137%{_libdir}/*.so
138%dir %{_docdir}/%{name}-%{version}
139%{_docdir}/%{name}-%{version}/*
140%{_includedir}/*.h
141%{_libdir}/pkgconfig/*.pc
142
143
144%changelog
145* Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-1
146- updated to 1.0.3
147- Split out hal sub-package
148
149* Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.3.7-2
150- rebuilt with rpm-4.8.1 for pkg-config
151
152* Tue Jun 16 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.3.7-1
153- new upstream release
154
155* Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.3.5-1
156- initial build based on Fedora package
157
158* Sun Dec 21 2008 Linus Walleij <triad@df.lth.se> 0.3.5-1
159- New upstream bugfix release.
160- Nuke documentation again. Multilib no like.
161
162* Fri Nov 7 2008 Linus Walleij <triad@df.lth.se> 0.3.4-1
163- New upstream bugfix release.
164- Bastiens patch is upstreamed, dropping that patch.
165
166* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-4
167- Update device list from CVS and fix the build
168
169* Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-3
170- Add support for more Nokia phones from their WMP10 drivers
171
172* Fri Oct 24 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-2
173- Add support for the Nokia N82
174
175* Fri Sep 26 2008 Linus Walleij <triad@df.lth.se> 0.3.3-1
176- New upstream bugfix release.
177
178* Sat Sep 20 2008 Linus Walleij <triad@df.lth.se> 0.3.2-1
179- New upstream version. (API and ABI compatible.) Fixes
180  bugs on Creative devices.
181
182* Tue Aug 26 2008 Linus Walleij <triad@df.lth.se> 0.3.1-1
183- New upstream version. (API and ABI compatible.)
184
185* Thu Aug 7 2008 Linus Walleij <triad@df.lth.se> 0.3.0-1
186- Upgrade to 0.3.0. This has to happen some way, perhaps the
187  painful way: I upgrade to gnomad2 2.9.2 that use 0.3.0 and
188  then I write patches to Rhythmbox and Amarok to use 0.3.0
189  and also send these upstream.
190
191* Fri Jul 11 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-3
192- Loose PAM console permissions, also assume that we can ship
193  documentation again since Doxygen has been updated. Fedora
194  HALd rules for the portable_audio_player capability in
195  20-acl-management.fdi will change permissions on the device
196  node for each plugged-in device.
197
198* Fri May 23 2008 Adam Jackson <ajax@redhat.com> 0.2.6.1-2
199- libmtp-0.2.6.1-simpler-rules.patch: Simplify udev rules for faster bootup.
200
201* Sat Mar 8 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-1
202- New upstream bugfix release.
203
204* Sun Mar 2 2008 Linus Walleij <triad@df.lth.se> 0.2.6-1
205- New upstream release.
206
207* Sat Feb 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-2
208- Rebuild for GCC 4.3.
209
210* Wed Jan 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-1
211- New upstream release.
212
213* Thu Nov 22 2007 Linus Walleij <triad@df.lth.se> 0.2.4-1
214- New upstream release.
215
216* Thu Oct 25 2007 Linus Walleij <triad@df.lth.se> 0.2.3-1
217- New upstream release.
218- New soname libmtp.so.7 so all apps using libmtp have to
219  be recompiled, have fun.
220- If it works out we'll try to reserve a spot to backport
221  this fixed version to F8 and F7 in a controlled manner.
222
223* Wed Oct 24 2007 Linus Walleij <triad@df.lth.se> 0.2.2-2
224- Flat out KILL the Doxygen HTML docs to resolve multiarch conflicts.
225  Either upstream (that's me!) needs to work around the HTML files being
226  different each time OR Doxygen must stop generating anchors that
227  hash the system time, creating different files with each generation.
228  Pre-generating the docs is deemed silly. (Someone will disagree.)
229
230* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1
231- New upstream release.
232
233* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.1-2
234- License field update from LGPL to LGPLv2+
235
236* Tue Aug 7 2007 Linus Walleij <triad@df.lth.se> 0.2.1-1
237- Upstream bugfix release.
238
239* Sat Aug 4 2007 Linus Walleij <triad@df.lth.se> 0.2.0-1
240- New upstream release.
241- Fixes (hopefully) the issues found by Harald.
242- Dependent apps will need to recompile and patch some minor code.
243
244* Mon Jul 30 2007 Harald Hoyer <harald@redhat.com> - 0.1.5-2
245- changed udev rules for new kernel and udev versions
246
247* Mon Mar 26 2007 Linus Walleij <triad@df.lth.se> 0.1.5-1
248- New upstream release.
249- Candidate for FC5, FC6 backport.
250- Hopefully API/ABI compatible, testing in devel tree.
251
252* Wed Mar 7 2007 Linus Walleij <triad@df.lth.se> 0.1.4-1
253- New upstream release.
254- Candidate for FC5, FC6 backport.
255- Hopefully API/ABI compatible, testing in devel tree.
256
257* Wed Jan 17 2007 Linus Walleij <triad@df.lth.se> 0.1.3-1
258- New upstream release.
259- Candidate for FC5, FC6 backport.
260
261* Thu Dec 7 2006 Linus Walleij <triad@df.lth.se> 0.1.0-1
262- New upstream release.
263- Start providing HAL rules.
264
265* Fri Oct 20 2006 Linus Walleij <triad@df.lth.se> 0.0.21-1
266- New upstream release.
267
268* Tue Sep 26 2006 Linus Walleij <triad@df.lth.se> 0.0.20-1
269- New upstream release.
270- Updated after review by Parag AN, Kevin Fenzi and Ralf Corsepius.
271- Fixed pkgconfig bug upstream after being detected by Ralf...
272
273* Sun Aug 27 2006 Linus Walleij <triad@df.lth.se> 0.0.15-1
274- New upstream release.
275
276* Wed Aug 23 2006 Linus Walleij <triad@df.lth.se> 0.0.13-1
277- First RPM'ed
Note: See TracBrowser for help on using the repository browser.