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