Blame SPECS/libqmi.spec

08a8d2
%global _hardened_build 1
08a8d2
08a8d2
Name: libqmi
08a8d2
Summary: Support library to use the Qualcomm MSM Interface (QMI) protocol
f564c3
Version: 1.24.0
de9367
Release: 3%{?dist}
08a8d2
License: LGPLv2+
08a8d2
URL: http://freedesktop.org/software/libqmi
de9367
08a8d2
Source: http://freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz
de9367
Patch0001: 0001-detect-smdpkt-rh1976886.patch
de9367
Patch0002: 0002-crash-qmi-device-rh1976888.patch
08a8d2
08a8d2
BuildRequires: gcc
08a8d2
BuildRequires: glib2-devel >= 2.32.0
08a8d2
BuildRequires: python3-devel
f564c3
BuildRequires: pkgconfig(gudev-1.0) >= 147
08a8d2
BuildRequires: gtk-doc
08a8d2
BuildRequires: libmbim-devel >= 1.18.0
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
Group: Development/Libraries
08a8d2
Requires: %{name}%{?_isa} = %{version}-%{release}
08a8d2
Requires: glib2-devel
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
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
08a8d2
pathfix.py -i %{__python3} -pn build-aux/qmi-codegen/*.py \
08a8d2
                               build-aux/qmi-codegen/qmi-codegen
08a8d2
08a8d2
%build
08a8d2
%configure --disable-static --enable-gtk-doc --enable-mbim-qmux
08a8d2
08a8d2
# Uses private copy of libtool:
08a8d2
# http://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
08a8d2
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
08a8d2
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
08a8d2
08a8d2
LD_LIBRARY_PATH="$PWD/src/libqmi-glib/.libs" make %{?_smp_mflags} V=1
08a8d2
08a8d2
%install
08a8d2
make install DESTDIR=$RPM_BUILD_ROOT
08a8d2
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
08a8d2
find %{buildroot}%{_datadir}/gtk-doc |xargs touch --reference configure.ac
08a8d2
08a8d2
08a8d2
%post	-p /sbin/ldconfig
08a8d2
%postun	-p /sbin/ldconfig
08a8d2
08a8d2
08a8d2
%files
08a8d2
%doc NEWS AUTHORS README
08a8d2
%license COPYING
08a8d2
%{_libdir}/libqmi-glib.so.*
08a8d2
%{_datadir}/bash-completion
08a8d2
08a8d2
%files devel
08a8d2
%dir %{_includedir}/libqmi-glib
08a8d2
%{_includedir}/libqmi-glib/*.h
08a8d2
%{_libdir}/pkgconfig/qmi-glib.pc
08a8d2
%{_libdir}/libqmi-glib.so
08a8d2
%dir %{_datadir}/gtk-doc/html/libqmi-glib
08a8d2
%{_datadir}/gtk-doc/html/libqmi-glib/*
08a8d2
08a8d2
%files utils
08a8d2
%{_bindir}/qmicli
08a8d2
%{_bindir}/qmi-network
08a8d2
%{_bindir}/qmi-firmware-update
08a8d2
%{_mandir}/man1/*
08a8d2
%{_libexecdir}/qmi-proxy
08a8d2
08a8d2
08a8d2
%changelog
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