]> git.pld-linux.org Git - packages/libmtp.git/blob - libmtp.spec
up to 1.1.13
[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.13
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libmtp/%{name}-%{version}.tar.gz
13 # Source0-md5:  6d557bf2671cf9db496b3b90a5f9622b
14 URL:            http://libmtp.sourceforge.net/
15 BuildRequires:  automake
16 %{?with_apidocs:BuildRequires:  doxygen}
17 BuildRequires:  libgcrypt-devel
18 BuildRequires:  libusb-devel >= 1.0.0
19 BuildRequires:  pkgconfig
20 Requires:       libusb >= 1.0.0
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
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.
32
33 %package devel
34 Summary:        Header files for mtp library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki mtp
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       libgcrypt-devel
39 Requires:       libusb-devel >= 1.0.0
40
41 %description devel
42 This is the package containing the header files for mtp library.
43
44 %description devel -l pl.UTF-8
45 Ten pakiet zawiera pliki nagłówkowe biblioteki mtp.
46
47 %package static
48 Summary:        Static mtp library
49 Summary(pl.UTF-8):      Statyczna biblioteka mtp
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static mtp library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka mtp.
58
59 %package progs
60 Summary:        Utilities from mtp library
61 Summary(pl.UTF-8):      Narzędzia biblioteki mtp
62 Group:          Applications/Multimedia
63 Requires:       %{name} = %{version}-%{release}
64
65 %description progs
66 This is the package containing utilities from mtp library.
67
68 %description progs -l pl.UTF-8
69 Ten pakiet zawiera narzędzia z biblioteki mtp.
70
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
84 %prep
85 %setup -q
86
87 %build
88 cp -f /usr/share/automake/config.sub .
89 %configure \
90         %{?with_apidocs:--enable-doxygen} \
91         --with-udev=/lib/udev \
92         --with-udev-group=audio \
93         --with-udev-mode=0660
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 %{__make} install \
99         htmldocdir=%{_docdir}/%{name}-devel-%{version} \
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
111 %attr(755,root,root) %{_libdir}/libmtp.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libmtp.so.9
113
114 %files devel
115 %defattr(644,root,root,755)
116 %if %{with apidocs}
117 %doc %{_docdir}/%{name}-devel-%{version}
118 %endif
119 %attr(755,root,root) %{_libdir}/libmtp.so
120 %{_libdir}/libmtp.la
121 %{_includedir}/libmtp.h
122 %{_pkgconfigdir}/libmtp.pc
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libmtp.a
127
128 %files progs
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_bindir}/mtp-*
131
132 %files -n udev-libmtp
133 %defattr(644,root,root,755)
134 %attr(755,root,root) /lib/udev/mtp-probe
135 /lib/udev/hwdb.d/69-libmtp.hwdb
136 /lib/udev/rules.d/69-libmtp.rules
This page took 0.054229 seconds and 3 git commands to generate.