]>
Commit | Line | Data |
---|---|---|
f61a8911 | 1 | Summary: Implementation of Microsoft's Media Transfer Protocol (MTP) |
3d4e56df | 2 | Summary(pl.UTF-8): Implementacja protokołu MTP (Media Transfer Protocol) Microsoftu |
f61a8911 | 3 | Name: libmtp |
f803142a | 4 | Version: 1.1.3 |
d3201b8e | 5 | Release: 1 |
212f0d8a | 6 | License: LGPL v2+ |
0fb838cd | 7 | Group: Libraries |
87e7d68a | 8 | Source0: http://downloads.sourceforge.net/libmtp/%{name}-%{version}.tar.gz |
f803142a | 9 | # Source0-md5: 11529eedaf0e1fc00cdd6119eec525f0 |
f61a8911 | 10 | URL: http://libmtp.sourceforge.net/ |
26a1d833 | 11 | BuildRequires: automake |
0a234ff8 | 12 | BuildRequires: doxygen |
52748ed1 | 13 | BuildRequires: libusb-compat-devel |
f61a8911 SP |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | libmtp is an implementation of Microsoft's Media Transfer Protocol | |
18 | (MTP) in the form of a library suitable primarily for POSIX compliant | |
19 | operating systems. | |
20 | ||
315bf174 JR |
21 | %description -l pl.UTF-8 |
22 | libmtp to implementacja protokołu przesyłania mediów MTP (Media | |
23 | Transfer Protocol) Microsoftu w postaci biblioteki nadającej się | |
24 | przede wszystkim dla systemów operacyjnych zgodnych z POSIX. | |
26a1d833 | 25 | |
f61a8911 | 26 | %package devel |
79fba0a4 | 27 | Summary: Header files for mtp library |
3d4e56df | 28 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mtp |
f61a8911 SP |
29 | Group: Development/Libraries |
30 | Requires: %{name} = %{version}-%{release} | |
52748ed1 | 31 | Requires: libusb-compat-devel |
f61a8911 SP |
32 | |
33 | %description devel | |
79fba0a4 SP |
34 | This is the package containing the header files for mtp library. |
35 | ||
315bf174 JR |
36 | %description devel -l pl.UTF-8 |
37 | Ten pakiet zawiera pliki nagłówkowe biblioteki mtp. | |
26a1d833 | 38 | |
79fba0a4 SP |
39 | %package static |
40 | Summary: Static mtp library | |
3d4e56df | 41 | Summary(pl.UTF-8): Statyczna biblioteka mtp |
79fba0a4 SP |
42 | Group: Development/Libraries |
43 | Requires: %{name}-devel = %{version}-%{release} | |
44 | ||
45 | %description static | |
46 | Static mtp library. | |
f61a8911 | 47 | |
315bf174 | 48 | %description static -l pl.UTF-8 |
26a1d833 JB |
49 | Statyczna biblioteka mtp. |
50 | ||
36614c0e | 51 | %package progs |
52 | Summary: Utilities from mtp library | |
3d4e56df | 53 | Summary(pl.UTF-8): Narzędzia biblioteki mtp |
36614c0e | 54 | Group: Applications/Multimedia |
55 | Requires: %{name} = %{version}-%{release} | |
56 | ||
57 | %description progs | |
58 | This is the package containing utilities from mtp library. | |
59 | ||
315bf174 JR |
60 | %description progs -l pl.UTF-8 |
61 | Ten pakiet zawiera narzędzia z biblioteki mtp. | |
36614c0e | 62 | |
212f0d8a JB |
63 | %package -n udev-libmtp |
64 | Summary: UDEV rules for libmtp devices | |
65 | Summary(pl.UTF-8): Reguły UDEV dla urządzeń libmtp | |
66 | Group: Applications/System | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | Requires: udev-core | |
69 | ||
70 | %description -n udev-libmtp | |
71 | UDEV rules for libmtp devices. | |
72 | ||
73 | %description -n udev-libmtp -l pl.UTF-8 | |
74 | Reguły UDEV dla urządzeń libmtp. | |
75 | ||
f61a8911 SP |
76 | %prep |
77 | %setup -q | |
78 | ||
79 | %build | |
88a78d76 | 80 | cp -f /usr/share/automake/config.sub . |
0a234ff8 JB |
81 | %configure \ |
82 | --enable-doxygen \ | |
83 | --with-udev-group=audio \ | |
84 | --with-udev-mode=0660 | |
f61a8911 SP |
85 | %{__make} |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
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.*.*.* |
0a234ff8 | 103 | %attr(755,root,root) %ghost %{_libdir}/libmtp.so.9 |
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 |
c05dbc98 | 124 | /lib/udev/rules.d/69-libmtp.rules |