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