]> git.pld-linux.org Git - packages/libmtp.git/blob - libmtp.spec
- updated to 1.1.21
[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.21
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        https://downloads.sourceforge.net/libmtp/%{name}-%{version}.tar.gz
13 # Source0-md5:  532b445b22d01cc5c4b0683dd5ed894e
14 URL:            https://libmtp.sourceforge.net/
15 %{?with_apidocs:BuildRequires:  doxygen}
16 BuildRequires:  libgcrypt-devel
17 BuildRequires:  libusb-devel >= 1.0.0
18 BuildRequires:  pkgconfig
19 BuildRequires:  rpmbuild(macros) >= 1.527
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 %configure \
89         %{__enable_disable apidocs doxygen} \
90         --with-udev=/lib/udev \
91         --with-udev-group=audio \
92         --with-udev-mode=0660
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 %{__make} install \
98         htmldocdir=%{_docdir}/%{name}-devel-%{version} \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %files
108 %defattr(644,root,root,755)
109 %doc AUTHORS ChangeLog README TODO
110 %attr(755,root,root) %{_libdir}/libmtp.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libmtp.so.9
112
113 %files devel
114 %defattr(644,root,root,755)
115 %if %{with apidocs}
116 %doc %{_docdir}/%{name}-devel-%{version}
117 %endif
118 %attr(755,root,root) %{_libdir}/libmtp.so
119 %{_libdir}/libmtp.la
120 %{_includedir}/libmtp.h
121 %{_pkgconfigdir}/libmtp.pc
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libmtp.a
126
127 %files progs
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_bindir}/mtp-*
130
131 %files -n udev-libmtp
132 %defattr(644,root,root,755)
133 %attr(755,root,root) /lib/udev/mtp-probe
134 /lib/udev/hwdb.d/69-libmtp.hwdb
135 /lib/udev/rules.d/69-libmtp.rules
This page took 0.106568 seconds and 4 git commands to generate.