]>
Commit | Line | Data |
---|---|---|
f7d114c2 ER |
1 | # TODO |
2 | # - perhaps MODE="660", GROUP="audio" in udev rules? | |
f61a8911 | 3 | Summary: Implementation of Microsoft's Media Transfer Protocol (MTP) |
3d4e56df | 4 | Summary(pl.UTF-8): Implementacja protokołu MTP (Media Transfer Protocol) Microsoftu |
f61a8911 | 5 | Name: libmtp |
87e7d68a | 6 | Version: 1.0.4 |
d3201b8e | 7 | Release: 1 |
212f0d8a | 8 | License: LGPL v2+ |
0fb838cd | 9 | Group: Libraries |
87e7d68a CM |
10 | Source0: http://downloads.sourceforge.net/libmtp/%{name}-%{version}.tar.gz |
11 | # Source0-md5: a9ae962c72cc46988409ce19d60c5850 | |
f61a8911 | 12 | URL: http://libmtp.sourceforge.net/ |
26a1d833 | 13 | BuildRequires: automake |
52748ed1 | 14 | BuildRequires: libusb-compat-devel |
f61a8911 SP |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | libmtp is an implementation of Microsoft's Media Transfer Protocol | |
19 | (MTP) in the form of a library suitable primarily for POSIX compliant | |
20 | operating systems. | |
21 | ||
315bf174 JR |
22 | %description -l pl.UTF-8 |
23 | libmtp to implementacja protokołu przesyłania mediów MTP (Media | |
24 | Transfer Protocol) Microsoftu w postaci biblioteki nadającej się | |
25 | przede wszystkim dla systemów operacyjnych zgodnych z POSIX. | |
26a1d833 | 26 | |
f61a8911 | 27 | %package devel |
79fba0a4 | 28 | Summary: Header files for mtp library |
3d4e56df | 29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mtp |
f61a8911 SP |
30 | Group: Development/Libraries |
31 | Requires: %{name} = %{version}-%{release} | |
52748ed1 | 32 | Requires: libusb-compat-devel |
f61a8911 SP |
33 | |
34 | %description devel | |
79fba0a4 SP |
35 | This is the package containing the header files for mtp library. |
36 | ||
315bf174 JR |
37 | %description devel -l pl.UTF-8 |
38 | Ten pakiet zawiera pliki nagłówkowe biblioteki mtp. | |
26a1d833 | 39 | |
79fba0a4 SP |
40 | %package static |
41 | Summary: Static mtp library | |
3d4e56df | 42 | Summary(pl.UTF-8): Statyczna biblioteka mtp |
79fba0a4 SP |
43 | Group: Development/Libraries |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static mtp library. | |
f61a8911 | 48 | |
315bf174 | 49 | %description static -l pl.UTF-8 |
26a1d833 JB |
50 | Statyczna biblioteka mtp. |
51 | ||
36614c0e | 52 | %package progs |
53 | Summary: Utilities from mtp library | |
3d4e56df | 54 | Summary(pl.UTF-8): Narzędzia biblioteki mtp |
36614c0e | 55 | Group: Applications/Multimedia |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description progs | |
59 | This is the package containing utilities from mtp library. | |
60 | ||
315bf174 JR |
61 | %description progs -l pl.UTF-8 |
62 | Ten pakiet zawiera narzędzia z biblioteki mtp. | |
36614c0e | 63 | |
212f0d8a JB |
64 | %package -n udev-libmtp |
65 | Summary: UDEV rules for libmtp devices | |
66 | Summary(pl.UTF-8): Reguły UDEV dla urządzeń libmtp | |
67 | Group: Applications/System | |
68 | Requires: %{name} = %{version}-%{release} | |
69 | Requires: udev-core | |
70 | ||
71 | %description -n udev-libmtp | |
72 | UDEV rules for libmtp devices. | |
73 | ||
74 | %description -n udev-libmtp -l pl.UTF-8 | |
75 | Reguły UDEV dla urządzeń libmtp. | |
76 | ||
f61a8911 SP |
77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
88a78d76 | 81 | cp -f /usr/share/automake/config.sub . |
f61a8911 SP |
82 | %configure |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
212f0d8a | 91 | mv -f $RPM_BUILD_ROOT/lib/udev/rules.d/{libmtp,80-libmtp}.rules |
36614c0e | 92 | |
f61a8911 SP |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
101 | %doc AUTHORS ChangeLog README TODO | |
4a0c877a | 102 | %attr(755,root,root) %{_libdir}/libmtp.so.*.*.* |
bd1ed890 | 103 | %attr(755,root,root) %ghost %{_libdir}/libmtp.so.8 |
f61a8911 SP |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
4a0c877a | 107 | %doc doc/html/* |
f61a8911 | 108 | %attr(755,root,root) %{_libdir}/libmtp.so |
f61a8911 | 109 | %{_libdir}/libmtp.la |
d0a7e6f3 JB |
110 | %{_includedir}/libmtp.h |
111 | %{_pkgconfigdir}/libmtp.pc | |
79fba0a4 SP |
112 | |
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libmtp.a | |
36614c0e | 116 | |
117 | %files progs | |
118 | %defattr(644,root,root,755) | |
212f0d8a JB |
119 | %attr(755,root,root) %{_bindir}/mtp-* |
120 | ||
121 | %files -n udev-libmtp | |
122 | %defattr(644,root,root,755) | |
457346e9 | 123 | %attr(755,root,root) /lib/udev/mtp-probe |
212f0d8a | 124 | /lib/udev/rules.d/80-libmtp.rules |