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