]>
Commit | Line | Data |
---|---|---|
f61a8911 SP |
1 | Summary: Implementation of Microsoft's Media Transfer Protocol (MTP) |
2 | Name: libmtp | |
3 | Version: 0.0.4 | |
88a78d76 | 4 | Release: 1.1 |
f61a8911 | 5 | License: GPL v2 |
0fb838cd | 6 | Group: Libraries |
f61a8911 SP |
7 | Source0: http://dl.sourceforge.net/libmtp/%{name}-%{version}.tar.gz |
8 | # Source0-md5: ed1ebef445055488e7c18fd5b728bc78 | |
9 | URL: http://libmtp.sourceforge.net/ | |
10 | BuildRequires: libtool | |
11 | BuildRequires: pkgconfig | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | libmtp is an implementation of Microsoft's Media Transfer Protocol | |
16 | (MTP) in the form of a library suitable primarily for POSIX compliant | |
17 | operating systems. | |
18 | ||
19 | %package devel | |
79fba0a4 | 20 | Summary: Header files for mtp library |
f61a8911 SP |
21 | Group: Development/Libraries |
22 | Requires: %{name} = %{version}-%{release} | |
23 | ||
24 | %description devel | |
79fba0a4 SP |
25 | This is the package containing the header files for mtp library. |
26 | ||
27 | %package static | |
28 | Summary: Static mtp library | |
29 | Group: Development/Libraries | |
30 | Requires: %{name}-devel = %{version}-%{release} | |
31 | ||
32 | %description static | |
33 | Static mtp library. | |
f61a8911 SP |
34 | |
35 | %prep | |
36 | %setup -q | |
37 | ||
38 | %build | |
39 | ||
88a78d76 | 40 | cp -f /usr/share/automake/config.sub . |
f61a8911 SP |
41 | %configure |
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %post -p /sbin/ldconfig | |
54 | %postun -p /sbin/ldconfig | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc AUTHORS ChangeLog README TODO | |
59 | %attr(755,root,root) %{_libdir}/libmtp.so.*.*.* | |
60 | %attr(755,root,root) %{_bindir}/* | |
61 | ||
62 | %files devel | |
63 | %defattr(644,root,root,755) | |
64 | %attr(755,root,root) %{_libdir}/libmtp.so | |
f61a8911 | 65 | %{_libdir}/libmtp.la |
f61a8911 SP |
66 | %{_includedir}/* |
67 | %{_pkgconfigdir}/*.pc | |
79fba0a4 SP |
68 | |
69 | %files static | |
70 | %defattr(644,root,root,755) | |
71 | %{_libdir}/libmtp.a |