]> git.pld-linux.org Git - SPECS.git/blob - libqrtr-glib.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libqrtr-glib.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_without  static_libs     # static library
5 #
6 Summary:        Library to use and monitor the QRTR bus
7 Summary(pl.UTF-8):      Biblioteka do korzystania i monitorowania szyny QRTR
8 Name:           libqrtr-glib
9 Version:        1.0.0
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        https://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz
14 # Source0-md5:  c831b1478d430e2b587e84ae13ffea02
15 URL:            https://www.freedesktop.org/software/libqmi/libqrtr-glib/latest/
16 BuildRequires:  glib2-devel >= 1:2.48
17 BuildRequires:  gobject-introspection-devel >= 0.9.6
18 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.0}
19 BuildRequires:  linux-libc-headers >= 7:4.7
20 BuildRequires:  pkgconfig
21 BuildRequires:  rpm-build >= 4.6
22 BuildRequires:  rpmbuild(macros) >= 1.98
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  xz
25 Requires:       glib2 >= 1:2.48
26 Conflicts:      libqmi < 1.28.0
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 libqrtr-glib is a glib-based library to use and manage the QRTR
31 (Qualcomm IPC Router) bus.
32
33 %description -l pl.UTF-8
34 libqrtr-glib to oparta na glibie biblioteka do korzystania i
35 zarządzania szyną QRTR (Qualcomm IPC Router).
36
37 %package devel
38 Summary:        Header files for libqrtr-glib library
39 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libqrtr-glib
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       glib2-devel >= 1:2.48
43 Conflicts:      libqmi-devel < 1.28.0
44
45 %description devel
46 Header files for libqrtr-glib library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libqrtr-glib.
50
51 %package static
52 Summary:        Static libqrtr-glib library
53 Summary(pl.UTF-8):      Statyczna biblioteka libqrtr-glib
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 Static libqrtr-glib library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libqrtr-glib.
62
63 %package apidocs
64 Summary:        API documentation for libqrtr-glib library
65 Summary(pl.UTF-8):      Dokumentacja API biblioteki libqrtr-glib
66 Group:          Documentation
67 BuildArch:      noarch
68
69 %description apidocs
70 API documentation for libqrtr-glib library.
71
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki libqrtr-glib.
74
75 %prep
76 %setup -q
77
78 %build
79 %configure \
80         --enable-gtk-doc%{!?with_apidocs:=no} \
81         --disable-silent-rules \
82         %{!?with_static_libs:--disable-static} \
83         --with-html-dir=%{_gtkdocdir}
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 # obsoleted by pkg-config
93 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libqrtr-glib.la
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %files
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog NEWS README
104 %attr(755,root,root) %{_libdir}/libqrtr-glib.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libqrtr-glib.so.0
106 %{_libdir}/girepository-1.0/Qrtr-1.0.typelib
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libqrtr-glib.so
111 %{_datadir}/gir-1.0/Qrtr-1.0.gir
112 %{_includedir}/libqrtr-glib
113 %{_pkgconfigdir}/qrtr-glib.pc
114
115 %if %{with static_libs}
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/libqrtr-glib.a
119 %endif
120
121 %if %{with apidocs}
122 %files apidocs
123 %defattr(644,root,root,755)
124 %{_gtkdocdir}/libqrtr-glib
125 %endif
This page took 0.113085 seconds and 3 git commands to generate.