38e3c2
%if 0%{?fedora} || 0%{?rhel} >= 9
38e3c2
%bcond_without qrtr
38e3c2
%else
38e3c2
%bcond_with qrtr
38e3c2
%endif
38e3c2
08a8d2
Name: libqmi
38e3c2
Version: 1.32.2
38e3c2
Release: 3%{?dist}
08a8d2
Summary: Support library to use the Qualcomm MSM Interface (QMI) protocol
08a8d2
License: LGPLv2+
08a8d2
URL: http://freedesktop.org/software/libqmi
38e3c2
Source: https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/archive/%{version}/%{name}-%{version}.tar.bz2
38e3c2
Patch0: 0001-Disable-docs-check.patch
08a8d2
38e3c2
BuildRequires: meson >= 0.53
08a8d2
BuildRequires: gcc
38e3c2
BuildRequires: glib2-devel >= 2.56
63e829
BuildRequires: gobject-introspection-devel
08a8d2
BuildRequires: gtk-doc
63e829
BuildRequires: pkgconfig(gudev-1.0) >= 147
08a8d2
BuildRequires: libmbim-devel >= 1.18.0
38e3c2
%if %{with qrtr}
38e3c2
BuildRequires: libqrtr-glib-devel
38e3c2
%endif
63e829
BuildRequires: python3
38e3c2
BuildRequires: help2man
08a8d2
08a8d2
%description
08a8d2
This package contains the libraries that make it easier to use QMI functionality
08a8d2
from applications that use glib.
08a8d2
08a8d2
08a8d2
%package devel
08a8d2
Summary: Header files for adding QMI support to applications that use glib
08a8d2
Requires: %{name}%{?_isa} = %{version}-%{release}
38e3c2
Requires: glib2-devel%{?_isa}
08a8d2
Requires: pkgconfig
08a8d2
08a8d2
%description devel
08a8d2
This package contains the header and pkg-config files for development
08a8d2
applications using QMI functionality from applications that use glib.
08a8d2
63e829
08a8d2
%package utils
08a8d2
Summary: Utilities to use the QMI protocol from the command line
08a8d2
Requires: %{name}%{?_isa} = %{version}-%{release}
08a8d2
License: GPLv2+
08a8d2
08a8d2
%description utils
08a8d2
This package contains the utilities that make it easier to use QMI functionality
08a8d2
from the command line.
08a8d2
08a8d2
08a8d2
%prep
de9367
%autosetup -p1
63e829
08a8d2
08a8d2
%build
38e3c2
# Let's avoid BuildRequiring bash-completion because it changes behavior
38e3c2
# of shell, at least until the .pc file gets into the -devel subpackage.
38e3c2
# We'll just install the bash-completion file ourselves.
38e3c2
%meson -Dgtk_doc=true -Dbash_completion=false \
38e3c2
%if %{with qrtr}
38e3c2
	-Dqrtr=true
38e3c2
%else
38e3c2
	-Dqrtr=false
38e3c2
%endif
38e3c2
%meson_build
38e3c2
%ninja_build -C %{_vpath_builddir} libqmi-glib-doc
08a8d2
08a8d2
08a8d2
%install
38e3c2
%meson_install
38e3c2
find %{buildroot}%{_datadir}/gtk-doc |xargs touch --reference meson.build
63e829
find %{buildroot} -type f -name "*.la" -delete
38e3c2
mkdir -p %{buildroot}%{_datadir}/bash-completion
38e3c2
cp -a src/qmicli/qmicli %{buildroot}%{_datadir}/bash-completion
38e3c2
38e3c2
38e3c2
%check
38e3c2
%meson_test
08a8d2
08a8d2
63e829
%ldconfig_scriptlets
08a8d2
08a8d2
08a8d2
%files
63e829
%license COPYING.LIB
38e3c2
%doc NEWS AUTHORS README.md
08a8d2
%{_libdir}/libqmi-glib.so.*
63e829
%{_libdir}/girepository-1.0/Qmi-1.0.typelib
63e829
08a8d2
08a8d2
%files devel
63e829
%{_includedir}/libqmi-glib/
08a8d2
%{_libdir}/pkgconfig/qmi-glib.pc
08a8d2
%{_libdir}/libqmi-glib.so
63e829
%{_datadir}/gtk-doc/html/libqmi-glib/
63e829
%{_datadir}/gir-1.0/Qmi-1.0.gir
63e829
08a8d2
08a8d2
%files utils
63e829
%license COPYING
08a8d2
%{_bindir}/qmicli
08a8d2
%{_bindir}/qmi-network
08a8d2
%{_bindir}/qmi-firmware-update
63e829
%{_datadir}/bash-completion
08a8d2
%{_libexecdir}/qmi-proxy
63e829
%{_mandir}/man1/*
08a8d2
08a8d2
08a8d2
%changelog
38e3c2
* Mon Dec 12 2022 Lubomir Rintel <lkundrak@v3.sk> - 1.32.2-3
38e3c2
- Update to 1.32.2
38e3c2
- Build without QRTR
38e3c2
63e829
* Fri Oct 1 2021 Ana Cabral <acabral@redhat.com> - 1.30.2-1
63e829
- Upgrade to 1.30.2
63e829
de9367
* Mon Jul 19 2021 Thomas Haller <thaller@redhat.com> - 1.24.0-3
de9367
- fix crash in qmi_endpoint_is_open() (rh #1976888)
de9367
de9367
* Mon Jul 19 2021 Thomas Haller <thaller@redhat.com> - 1.24.0-2
de9367
- fix crash and detect QMI port over smdpkt subsystem (rh #1976886)
de9367
f564c3
* Wed Oct 16 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.24.0-1
f564c3
- Update to 1.24.0
f564c3
08a8d2
* Mon May 06 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.22.4-1
08a8d2
- Update to 1.22.4
08a8d2
08a8d2
* Fri Jun 29 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.20.0-4
08a8d2
- Change to Python 3 as a build dependency
08a8d2
08a8d2
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.20.0-3
08a8d2
- Update Python 2 dependency declarations to new packaging standards
08a8d2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
08a8d2
08a8d2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-2
08a8d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
08a8d2
08a8d2
* Mon Jan 22 2018 Lubomir Rintel <lkundrak@v3.sk> - 1.20.0-1
08a8d2
- Update to 1.18.0
08a8d2
08a8d2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-2
08a8d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
08a8d2
08a8d2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-1
08a8d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
08a8d2
08a8d2
* Wed Mar 22 2017 Lubomir Rintel <lkundrak@v3.sk> - 1.18.0-1
08a8d2
- Update to 1.18.0
08a8d2
08a8d2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.2-2
08a8d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
08a8d2
08a8d2
* Tue Nov 15 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.16.2-1
08a8d2
- Update to 1.16.2
08a8d2
08a8d2
* Tue Oct 04 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.16.0-2
08a8d2
- Enable hardening
08a8d2
08a8d2
* Fri Jul 08 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.16.0-1
08a8d2
- Update to 1.16.0
08a8d2
08a8d2
* Tue May 03 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.14.2-1
08a8d2
- Update to 1.14.2
08a8d2
08a8d2
* Mon Mar 21 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.14.0-1
08a8d2
- Update to 1.14.0 release
08a8d2
08a8d2
* Tue Mar 01 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 1.12.6-3
08a8d2
- Fix FTBFS with GCC 6 (#1307733)
08a8d2
08a8d2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.6-2
08a8d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
08a8d2
08a8d2
* Tue Aug 18 2015 Lubomir Rintel <lkundrak@v3.sk> - 1.12.6-1
08a8d2
- Update to 1.12.6 release
08a8d2
08a8d2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.4-3
08a8d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
08a8d2
08a8d2
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.12.4-2
08a8d2
- Rebuilt for Fedora 23 Change
08a8d2
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
08a8d2
08a8d2
* Wed Feb 11 2015 Lubomir Rintel <lkundrak@v3.sk> - 1.12.4-1
08a8d2
- Update to 1.12.4 release
08a8d2
08a8d2
* Tue Feb 10 2015 Lubomir Rintel <lkundrak@v3.sk> - 1.12.2-1
08a8d2
- Clean up the spec file a bit
08a8d2
- Update to 1.12.2 release
08a8d2
08a8d2
* Thu Jan 15 2015 Dan Williams <dcbw@redhat.com> - 1.12.0-1
08a8d2
- Update to 1.12.0 release
08a8d2
08a8d2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-2
08a8d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
08a8d2
08a8d2
* Tue Aug  5 2014 Dan Williams <dcbw@redhat.com> - 1.10.2
08a8d2
- Update to 1.10.2 release
08a8d2
08a8d2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
08a8d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
08a8d2
08a8d2
* Sat Feb  1 2014 poma <poma@gmail.com> - 1.8.0-1
08a8d2
- Update to 1.8.0 release
08a8d2
08a8d2
* Fri Sep  6 2013 Dan Williams <dcbw@redhat.com> - 1.6.0-1
08a8d2
- Update to 1.6.0 release
08a8d2
08a8d2
* Fri Jun  7 2013 Dan Williams <dcbw@redhat.com> - 1.4.0-1
08a8d2
- Update to 1.4.0 release
08a8d2
08a8d2
* Fri May 10 2013 Dan Williams <dcbw@redhat.com> - 1.3.0-1.git20130510
08a8d2
- Initial Fedora release
08a8d2