Blame SPECS/libqmi.spec

aeb81e
%global _hardened_build 1
aeb81e
aeb81e
Name: libqmi
aeb81e
Summary: Support library to use the Qualcomm MSM Interface (QMI) protocol
c75313
Version: 1.22.4
aeb81e
Release: 4%{?dist}
aeb81e
Group: Development/Libraries
aeb81e
License: LGPLv2+
aeb81e
URL: http://freedesktop.org/software/libqmi
aeb81e
Source: http://freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz
aeb81e
aeb81e
BuildRequires: gcc
aeb81e
BuildRequires: glib2-devel >= 2.32.0
aeb81e
BuildRequires: libgudev-devel >= 147
aeb81e
BuildRequires: python3-devel
aeb81e
BuildRequires: gtk-doc
c75313
BuildRequires: libmbim-devel >= 1.18.0
aeb81e
aeb81e
%description
aeb81e
This package contains the libraries that make it easier to use QMI functionality
aeb81e
from applications that use glib.
aeb81e
aeb81e
aeb81e
%package devel
aeb81e
Summary: Header files for adding QMI support to applications that use glib
aeb81e
Group: Development/Libraries
aeb81e
Requires: %{name}%{?_isa} = %{version}-%{release}
aeb81e
Requires: glib2-devel
aeb81e
Requires: pkgconfig
aeb81e
aeb81e
%description devel
aeb81e
This package contains the header and pkg-config files for development
aeb81e
applications using QMI functionality from applications that use glib.
aeb81e
aeb81e
%package utils
aeb81e
Summary: Utilities to use the QMI protocol from the command line
aeb81e
Requires: %{name}%{?_isa} = %{version}-%{release}
aeb81e
License: GPLv2+
aeb81e
aeb81e
%description utils
aeb81e
This package contains the utilities that make it easier to use QMI functionality
aeb81e
from the command line.
aeb81e
aeb81e
aeb81e
%prep
aeb81e
%setup -q
aeb81e
pathfix.py -i %{__python3} -pn build-aux/qmi-codegen/*.py \
aeb81e
                               build-aux/qmi-codegen/qmi-codegen
aeb81e
aeb81e
%build
aeb81e
%configure --disable-static --enable-gtk-doc --enable-mbim-qmux
aeb81e
aeb81e
# Uses private copy of libtool:
aeb81e
# http://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
aeb81e
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
aeb81e
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
aeb81e
aeb81e
LD_LIBRARY_PATH="$PWD/src/libqmi-glib/.libs" make %{?_smp_mflags} V=1
aeb81e
aeb81e
%install
aeb81e
make install DESTDIR=$RPM_BUILD_ROOT
aeb81e
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
aeb81e
find %{buildroot}%{_datadir}/gtk-doc |xargs touch --reference configure.ac
aeb81e
aeb81e
aeb81e
%post	-p /sbin/ldconfig
aeb81e
%postun	-p /sbin/ldconfig
aeb81e
aeb81e
aeb81e
%files
aeb81e
%doc NEWS AUTHORS README
aeb81e
%license COPYING
aeb81e
%{_libdir}/libqmi-glib.so.*
aeb81e
%{_datadir}/bash-completion
aeb81e
aeb81e
%files devel
aeb81e
%dir %{_includedir}/libqmi-glib
aeb81e
%{_includedir}/libqmi-glib/*.h
aeb81e
%{_libdir}/pkgconfig/qmi-glib.pc
aeb81e
%{_libdir}/libqmi-glib.so
aeb81e
%dir %{_datadir}/gtk-doc/html/libqmi-glib
aeb81e
%{_datadir}/gtk-doc/html/libqmi-glib/*
aeb81e
aeb81e
%files utils
aeb81e
%{_bindir}/qmicli
aeb81e
%{_bindir}/qmi-network
aeb81e
%{_bindir}/qmi-firmware-update
aeb81e
%{_mandir}/man1/*
aeb81e
%{_libexecdir}/qmi-proxy
aeb81e
aeb81e
aeb81e
%changelog
c75313
* Mon May 06 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.22.4-1
c75313
- Update to 1.22.4
c75313
aeb81e
* Fri Jun 29 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.20.0-4
aeb81e
- Change to Python 3 as a build dependency
aeb81e
aeb81e
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.20.0-3
aeb81e
- Update Python 2 dependency declarations to new packaging standards
aeb81e
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
aeb81e
aeb81e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-2
aeb81e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
aeb81e
aeb81e
* Mon Jan 22 2018 Lubomir Rintel <lkundrak@v3.sk> - 1.20.0-1
aeb81e
- Update to 1.18.0
aeb81e
aeb81e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-2
aeb81e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
aeb81e
aeb81e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-1
aeb81e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
aeb81e
aeb81e
* Wed Mar 22 2017 Lubomir Rintel <lkundrak@v3.sk> - 1.18.0-1
aeb81e
- Update to 1.18.0
aeb81e
aeb81e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.2-2
aeb81e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aeb81e
aeb81e
* Tue Nov 15 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.16.2-1
aeb81e
- Update to 1.16.2
aeb81e
aeb81e
* Tue Oct 04 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.16.0-2
aeb81e
- Enable hardening
aeb81e
aeb81e
* Fri Jul 08 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.16.0-1
aeb81e
- Update to 1.16.0
aeb81e
aeb81e
* Tue May 03 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.14.2-1
aeb81e
- Update to 1.14.2
aeb81e
aeb81e
* Mon Mar 21 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.14.0-1
aeb81e
- Update to 1.14.0 release
aeb81e
aeb81e
* Tue Mar 01 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 1.12.6-3
aeb81e
- Fix FTBFS with GCC 6 (#1307733)
aeb81e
aeb81e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.6-2
aeb81e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
aeb81e
aeb81e
* Tue Aug 18 2015 Lubomir Rintel <lkundrak@v3.sk> - 1.12.6-1
aeb81e
- Update to 1.12.6 release
aeb81e
aeb81e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.4-3
aeb81e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
aeb81e
aeb81e
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.12.4-2
aeb81e
- Rebuilt for Fedora 23 Change
aeb81e
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
aeb81e
aeb81e
* Wed Feb 11 2015 Lubomir Rintel <lkundrak@v3.sk> - 1.12.4-1
aeb81e
- Update to 1.12.4 release
aeb81e
aeb81e
* Tue Feb 10 2015 Lubomir Rintel <lkundrak@v3.sk> - 1.12.2-1
aeb81e
- Clean up the spec file a bit
aeb81e
- Update to 1.12.2 release
aeb81e
aeb81e
* Thu Jan 15 2015 Dan Williams <dcbw@redhat.com> - 1.12.0-1
aeb81e
- Update to 1.12.0 release
aeb81e
aeb81e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-2
aeb81e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
aeb81e
aeb81e
* Tue Aug  5 2014 Dan Williams <dcbw@redhat.com> - 1.10.2
aeb81e
- Update to 1.10.2 release
aeb81e
aeb81e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
aeb81e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
aeb81e
aeb81e
* Sat Feb  1 2014 poma <poma@gmail.com> - 1.8.0-1
aeb81e
- Update to 1.8.0 release
aeb81e
aeb81e
* Fri Sep  6 2013 Dan Williams <dcbw@redhat.com> - 1.6.0-1
aeb81e
- Update to 1.6.0 release
aeb81e
aeb81e
* Fri Jun  7 2013 Dan Williams <dcbw@redhat.com> - 1.4.0-1
aeb81e
- Update to 1.4.0 release
aeb81e
aeb81e
* Fri May 10 2013 Dan Williams <dcbw@redhat.com> - 1.3.0-1.git20130510
aeb81e
- Initial Fedora release
aeb81e