]> git.pld-linux.org Git - packages/libmbim.git/blob - libmbim.spec
58d515aa69e04abfb94725cc1e9bc0342eb69f30
[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.12.4
10 Release:        2
11 License:        LGPL v2
12 Group:          Libraries
13 Source0:        https://www.freedesktop.org/software/libmbim/%{name}-%{version}.tar.xz
14 # Source0-md5:  4561bc490fcd439aa805c1692b25cb61
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.32.0
19 BuildRequires:  gtk-doc >= 1.0
20 BuildRequires:  help2man
21 BuildRequires:  libtool >= 2:2.2
22 BuildRequires:  pkgconfig
23 BuildRequires:  udev-glib-devel >= 1:147
24 Requires:       glib2 >= 1:2.32.0
25 Requires:       udev-glib >= 1:147
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 libmbim is a GLib library for talking to WWAN modems and devices which
30 speak the Mobile Interface Broadband Model (MBIM) protocol.
31
32 %description -l pl.UTF-8
33 libmbim to biblioteka GLib do komunikacji z modemami i urządzeniami
34 WWAN, obsługującymi protokół MBIM (Mobile Interface Broadband Model).
35
36 %package devel
37 Summary:        Header files for libmbim library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libmbim
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       glib2-devel >= 1:2.32.0
42
43 %description devel
44 Header files for libmbim library.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki libmbim.
48
49 %package static
50 Summary:        Static libmbim library
51 Summary(pl.UTF-8):      Statyczna biblioteka libmbim
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static libmbim library.
57
58 %description static -l pl.UTF-8
59 Statyczna biblioteka libmbim.
60
61 %package apidocs
62 Summary:        libmbim API documentation
63 Summary(pl.UTF-8):      Dokumentacja API biblioteki libmbim
64 Group:          Documentation
65 Requires:       gtk-doc-common
66 %if "%{_rpmversion}" >= "5"
67 BuildArch:      noarch
68 %endif
69
70 %description apidocs
71 API documentation for libmbim library.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki libmbim.
75
76 %prep
77 %setup -q
78
79 %build
80 %{__libtoolize}
81 %{__aclocal} -I m4
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         %{__enable_disable apidocs gtk-doc} \
87         --disable-silent-rules \
88         --with-html-dir=%{_gtkdocdir}
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS NEWS README
108 %attr(755,root,root) %{_bindir}/mbim-network
109 %attr(755,root,root) %{_bindir}/mbimcli
110 %attr(755,root,root) %{_libexecdir}/mbim-proxy
111 %attr(755,root,root) %{_libdir}/libmbim-glib.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libmbim-glib.so.4
113 %{_mandir}/man1/mbim-network.1*
114 %{_mandir}/man1/mbimcli.1*
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libmbim-glib.so
119 %{_includedir}/libmbim-glib
120 %{_pkgconfigdir}/mbim-glib.pc
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libmbim-glib.a
125
126 %if %{with apidocs}
127 %files apidocs
128 %defattr(644,root,root,755)
129 %{_gtkdocdir}/libmbim-glib
130 %endif
This page took 0.025651 seconds and 2 git commands to generate.