]>
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 |
827572a1 | 4 | Version: 0.2.6.1 |
76865808 | 5 | Release: 1 |
f61a8911 | 6 | License: GPL v2 |
0fb838cd | 7 | Group: Libraries |
f61a8911 | 8 | Source0: http://dl.sourceforge.net/libmtp/%{name}-%{version}.tar.gz |
827572a1 | 9 | # Source0-md5: 02770a7b4bfb91cd9e1bd26eaa84770b |
36614c0e | 10 | Source1: %{name}-udev.rules |
f61a8911 | 11 | URL: http://libmtp.sourceforge.net/ |
26a1d833 | 12 | BuildRequires: automake |
c4533f7b | 13 | BuildRequires: libusb-devel >= 0.1.11-3 |
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} | |
4a0c877a | 31 | Requires: libusb-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 | |
f61a8911 SP |
63 | %prep |
64 | %setup -q | |
65 | ||
66 | %build | |
88a78d76 | 67 | cp -f /usr/share/automake/config.sub . |
f61a8911 SP |
68 | %configure |
69 | %{__make} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
36614c0e | 77 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d |
78 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/udev/rules.d/80-libmtp.rules | |
79 | ||
f61a8911 SP |
80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc AUTHORS ChangeLog README TODO | |
4a0c877a | 89 | %attr(755,root,root) %{_libdir}/libmtp.so.*.*.* |
d0a7e6f3 | 90 | %attr(755,root,root) %ghost %{_libdir}/libmtp.so.7 |
36614c0e | 91 | %{_sysconfdir}/udev/rules.d/*.rules |
f61a8911 SP |
92 | |
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
4a0c877a | 95 | %doc doc/html/* |
f61a8911 | 96 | %attr(755,root,root) %{_libdir}/libmtp.so |
f61a8911 | 97 | %{_libdir}/libmtp.la |
d0a7e6f3 JB |
98 | %{_includedir}/libmtp.h |
99 | %{_pkgconfigdir}/libmtp.pc | |
79fba0a4 SP |
100 | |
101 | %files static | |
102 | %defattr(644,root,root,755) | |
103 | %{_libdir}/libmtp.a | |
36614c0e | 104 | |
105 | %files progs | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_bindir}/* |