Clean up the spec file a bit
Make rpmlint and Package Wrangler happy. Dropped redundant BRs and macros, chopped off rpaths.
This commit is contained in:
parent
e111608fb6
commit
35c10ce95e
38
libqmi.spec
38
libqmi.spec
@ -1,28 +1,15 @@
|
|||||||
|
|
||||||
%global glib2_version 2.32.0
|
|
||||||
|
|
||||||
%global realversion 1.12.0
|
|
||||||
|
|
||||||
Name: libqmi
|
Name: libqmi
|
||||||
Summary: Support library to use the Qualcomm MSM Interface (QMI) protocol
|
Summary: Support library to use the Qualcomm MSM Interface (QMI) protocol
|
||||||
Version: %{?realversion}
|
Version: 1.12.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://freedesktop.org/software/libqmi
|
URL: http://freedesktop.org/software/libqmi
|
||||||
|
Source: http://freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
#
|
BuildRequires: glib2-devel >= 2.32.0
|
||||||
# Source from http://freedesktop.org/software/libqmi/
|
|
||||||
#
|
|
||||||
Source: %{name}-%{realversion}.tar.xz
|
|
||||||
|
|
||||||
BuildRequires: glib2-devel >= %{glib2_version}
|
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: automake autoconf intltool libtool
|
|
||||||
BuildRequires: python >= 2.7
|
BuildRequires: python >= 2.7
|
||||||
|
|
||||||
Requires: glib2 >= %{glib2_version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the libraries that make it easier to use QMI functionality
|
This package contains the libraries that make it easier to use QMI functionality
|
||||||
from applications that use glib.
|
from applications that use glib.
|
||||||
@ -50,11 +37,17 @@ from the command line.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{realversion}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
# Uses private copy of libtool:
|
||||||
|
# http://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
|
||||||
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
@ -64,12 +57,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%post devel -p /sbin/ldconfig
|
|
||||||
%postun devel -p /sbin/ldconfig
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING NEWS AUTHORS README
|
%doc NEWS AUTHORS README
|
||||||
|
%license COPYING
|
||||||
%{_libdir}/libqmi-glib.so.*
|
%{_libdir}/libqmi-glib.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -88,6 +79,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 10 2015 Lubomir Rintel <lkundrak@v3.sk>
|
||||||
|
- Clean up the spec file a bit
|
||||||
|
|
||||||
* Thu Jan 15 2015 Dan Williams <dcbw@redhat.com> - 1.12.0-1
|
* Thu Jan 15 2015 Dan Williams <dcbw@redhat.com> - 1.12.0-1
|
||||||
- Update to 1.12.0 release
|
- Update to 1.12.0 release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user