From 17be9ce97c7f0ccc6e13e609db286d77b481e2dd Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sep 12 2013 18:10:11 +0000 Subject: Initial import (#990272). --- diff --git a/.gitignore b/.gitignore index e69de29..0e15f71 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libmbim-1.5.0.20130815git.tar.xz diff --git a/libmbim.spec b/libmbim.spec new file mode 100644 index 0000000..1f4dd52 --- /dev/null +++ b/libmbim.spec @@ -0,0 +1,93 @@ +%global snapshot .20130815git +%global realversion 1.5.0 +%global _hardened_build 1 + +Name: libmbim +Summary: Support library for the Mobile Broadband Interface Model protocol +Version: %{?realversion} +Release: 1%{snapshot}%{?dist} +License: LGPLv2+ +URL: http://www.freedesktop.org/software/libmbim + +# If snapshot is defined, source will be a snapshot of git from the +# master branch on the given date. To re-generate the tarball: +# git://anongit.freedesktop.org/libmbim/libmbim +# cd libmbim +# git reset --hard +# ./autogen.sh +# make distcheck +# +Source: %{name}-%{realversion}%{snapshot}.tar.xz + +BuildRequires: glib2-devel +BuildRequires: pkgconfig +BuildRequires: automake autoconf intltool libtool +BuildRequires: python >= 2.7 +BuildRequires: pkgconfig(gudev-1.0) >= 147 + + +%description +This package contains the libraries that make it easier to use MBIM +functionality from applications that use glib. + + +%package devel +Summary: Header files for adding MBIM support to applications that use glib +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: glib2-devel%{?_isa} + +%description devel +This package contains the header and pkg-config files for developing +applications using MBIM functionality from applications that use glib. + +%package utils +Summary: Utilities to use the MBIM 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 MBIM +functionality from the command line. + + +%prep +# NOTE: the documentation is pre-generated and shipped in the dist tarball; +# it is not build during the RPM build but the pre-generated docs are simply +# installed as-is. +%setup -q -n %{name}-%{realversion} + +%build +%configure --disable-static +V=1 make %{?_smp_mflags} + +%install +make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT +%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la + +%check +make check + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + + +%files +%doc COPYING NEWS AUTHORS README +%{_libdir}/libmbim-glib.so.* + +%files devel +%{_includedir}/libmbim-glib/ +%{_libdir}/pkgconfig/mbim-glib.pc +%{_libdir}/libmbim-glib.so +%{_datadir}/gtk-doc/ + +%files utils +%{_bindir}/mbimcli +%{_bindir}/mbim-network + + +%changelog +* Thu Aug 15 2013 Dan Williams - 1.5.0-1.20130815git +- Initial Fedora release + diff --git a/sources b/sources index e69de29..3cb882d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8f1bff60ea483beb916b6c9a5c406ce9 libmbim-1.5.0.20130815git.tar.xz