]> git.pld-linux.org Git - packages/libmbim.git/blob - libmbim.spec
- updated to 1.18.2
[packages/libmbim.git] / libmbim.spec
1 # TODO: --enable-mbim-username=???
2 #
3 # Conditional build:
4 %bcond_without  apidocs         # do not build and package API docs
5
6 Summary:        GLib library for talking to WWAN modems and devices using MBIM protocol
7 Summary(pl.UTF-8):      Biblioteka GLib do komunikacji z modemami i urządzeniami WWAN z użyciem protokołu MBIM
8 Name:           libmbim
9 Version:        1.18.2
10 Release:        1
11 License:        LGPL v2
12 Group:          Libraries
13 Source0:        https://www.freedesktop.org/software/libmbim/%{name}-%{version}.tar.xz
14 # Source0-md5:  7f7da7fa4bf37e64e44822fa00d42d6b
15 URL:            https://www.freedesktop.org/wiki/Software/libmbim
16 BuildRequires:  autoconf >= 2.68
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  glib2-devel >= 1:2.36
19 BuildRequires:  gtk-doc >= 1.0
20 BuildRequires:  help2man
21 BuildRequires:  libtool >= 2:2.2
22 BuildRequires:  pkgconfig
23 BuildRequires:  rpmbuild(macros) >= 1.673
24 BuildRequires:  udev-glib-devel >= 1:147
25 Requires:       glib2 >= 1:2.36
26 Requires:       udev-glib >= 1:147
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 libmbim is a GLib library for talking to WWAN modems and devices which
31 speak the Mobile Interface Broadband Model (MBIM) protocol.
32
33 %description -l pl.UTF-8
34 libmbim to biblioteka GLib do komunikacji z modemami i urządzeniami
35 WWAN, obsługującymi protokół MBIM (Mobile Interface Broadband Model).
36
37 %package devel
38 Summary:        Header files for libmbim library
39 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libmbim
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       glib2-devel >= 1:2.36
43
44 %description devel
45 Header files for libmbim library.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki libmbim.
49
50 %package static
51 Summary:        Static libmbim library
52 Summary(pl.UTF-8):      Statyczna biblioteka libmbim
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static libmbim library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka libmbim.
61
62 %package apidocs
63 Summary:        libmbim API documentation
64 Summary(pl.UTF-8):      Dokumentacja API biblioteki libmbim
65 Group:          Documentation
66 Requires:       gtk-doc-common
67 %if "%{_rpmversion}" >= "5"
68 BuildArch:      noarch
69 %endif
70
71 %description apidocs
72 API documentation for libmbim library.
73
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libmbim.
76
77 %package -n bash-completion-libmbim
78 Summary:        Bash completion for libmbim commands
79 Summary(pl.UTF-8):      Bashowe dopełnianie składni poleceń libmbim
80 Group:          Applications/Shells
81 Requires:       %{name} = %{version}-%{release}
82 Requires:       bash-completion >= 2.0
83
84 %description -n bash-completion-libmbim
85 Bash completion for libmbim commands (mbimcli).
86
87 %description -n bash-completion-libmbim -l pl.UTF-8
88 Bashowe dopełnianie składni poleceń libmbim (mbimcli).
89
90 %prep
91 %setup -q
92
93 %build
94 %{__libtoolize}
95 %{__aclocal} -I m4
96 %{__autoconf}
97 %{__autoheader}
98 %{__automake}
99 %configure \
100         %{__enable_disable apidocs gtk-doc} \
101         --disable-silent-rules \
102         --with-html-dir=%{_gtkdocdir}
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post   -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
118
119 %files
120 %defattr(644,root,root,755)
121 %doc AUTHORS NEWS README
122 %attr(755,root,root) %{_bindir}/mbim-network
123 %attr(755,root,root) %{_bindir}/mbimcli
124 %attr(755,root,root) %{_libexecdir}/mbim-proxy
125 %attr(755,root,root) %{_libdir}/libmbim-glib.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libmbim-glib.so.4
127 %{_mandir}/man1/mbim-network.1*
128 %{_mandir}/man1/mbimcli.1*
129
130 %files devel
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/libmbim-glib.so
133 %{_includedir}/libmbim-glib
134 %{_pkgconfigdir}/mbim-glib.pc
135
136 %files static
137 %defattr(644,root,root,755)
138 %{_libdir}/libmbim-glib.a
139
140 %if %{with apidocs}
141 %files apidocs
142 %defattr(644,root,root,755)
143 %{_gtkdocdir}/libmbim-glib
144 %endif
145
146 %files -n bash-completion-libmbim
147 %defattr(644,root,root,755)
148 %{bash_compdir}/mbimcli
This page took 0.080113 seconds and 3 git commands to generate.