Initial import (#923460)
This commit is contained in:
parent
8bf23c080e
commit
e10cfd18c3
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
/libqmi-1.3.0.git20130510.tar.xz
|
93
libqmi.spec
Normal file
93
libqmi.spec
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
|
||||||
|
%global glib2_version 2.32.0
|
||||||
|
|
||||||
|
%global snapshot .git20130510
|
||||||
|
%global realversion 1.3.0
|
||||||
|
|
||||||
|
Name: libqmi
|
||||||
|
Summary: Support library to use the Qualcomm MSM Interface (QMI) protocol
|
||||||
|
Version: %{?realversion}
|
||||||
|
Release: 1%{snapshot}%{?dist}
|
||||||
|
Group: Development/Libraries
|
||||||
|
License: LGPLv2+
|
||||||
|
URL: http://www.freedesktop.org/software/libqmi
|
||||||
|
|
||||||
|
# If snapshot is defined, source will be a snapshot of git from the
|
||||||
|
# master branch on the given date
|
||||||
|
Source: %{name}-%{realversion}%{snapshot}.tar.xz
|
||||||
|
|
||||||
|
BuildRequires: glib2-devel >= %{glib2_version}
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: automake autoconf intltool libtool
|
||||||
|
BuildRequires: python >= 2.7
|
||||||
|
|
||||||
|
Requires: glib2 >= %{glib2_version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package contains the libraries that make it easier to use QMI functionality
|
||||||
|
from applications that use glib.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Header files for adding QMI support to applications that use glib
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: glib2-devel
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the header and pkg-config files for development
|
||||||
|
applications using QMI functionality from applications that use glib.
|
||||||
|
|
||||||
|
%package utils
|
||||||
|
Summary: Utilities to use the QMI protocol from the command line
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
License: GPLv2+
|
||||||
|
|
||||||
|
%description utils
|
||||||
|
This package contains the utilities that make it easier to use QMI functionality
|
||||||
|
from the command line.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{realversion}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--with-tests=yes
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post devel -p /sbin/ldconfig
|
||||||
|
%postun devel -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc COPYING NEWS AUTHORS README
|
||||||
|
%{_libdir}/libqmi-glib.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%dir %{_includedir}/libqmi-glib
|
||||||
|
%{_includedir}/libqmi-glib/*.h
|
||||||
|
%{_libdir}/pkgconfig/qmi-glib.pc
|
||||||
|
%{_libdir}/libqmi-glib.so
|
||||||
|
%dir %{_datadir}/gtk-doc/html/libqmi-glib
|
||||||
|
%{_datadir}/gtk-doc/html/libqmi-glib/*
|
||||||
|
|
||||||
|
%files utils
|
||||||
|
%{_bindir}/qmicli
|
||||||
|
%{_bindir}/qmi-network
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri May 10 2013 Dan Williams <dcbw@redhat.com> - 1.3.0-1.git20130510
|
||||||
|
- Initial Fedora release
|
||||||
|
|
Loading…
Reference in New Issue
Block a user