]> git.pld-linux.org Git - packages/libmtp.git/blob - libmtp.spec
config.sub is fresh enough for quite some time now
[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.18
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libmtp/%{name}-%{version}.tar.gz
13 # Source0-md5:  7915496daa3f4ea3e095f0161f83d4d4
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 BuildRequires:  rpmbuild(macros) >= 1.527
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
88 %build
89 %configure \
90         %{__enable_disable apidocs 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.110623 seconds and 3 git commands to generate.