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