libgusb/libgusb.spec
Ismail Dönmez 610bf6893a Accepting request 100522 from home:vuntz
New package, which is needed for colord and other things; needed in Factory (I can maintain it)

OBS-URL: https://build.opensuse.org/request/show/100522
OBS-URL: https://build.opensuse.org/package/show/hardware/libgusb?expand=0&rev=1
2012-01-18 08:53:29 +00:00

86 lines
2.5 KiB
RPMSpec

#
# spec file for package libgusb
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libgusb
Version: 0.1.3
Release: 0
License: LGPL-2.1+
Summary: GObject-based library for libusb1
Url: https://gitorious.org/gusb/
Group: System/Libraries
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
BuildRequires: xz
BuildRequires: pkgconfig(glib-2.0) >= 2.28.0
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(libusb-1.0) >= 1.0.0
%description
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
%package -n libgusb2
Summary: GObject-based library for libusb1
Group: System/Libraries
%description -n libgusb2
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
%package devel
Summary: GObject-based library for libusb1 -- Development Files
Group: Development/Libraries/C and C++
Requires: libgusb2 = %{version}
%description devel
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
%prep
%setup -q
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%post -n libgusb2 -p /sbin/ldconfig
%postun -n libgusb2 -p /sbin/ldconfig
%files -n libgusb2
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
%{_libdir}/libgusb.so.?
%{_libdir}/libgusb.so.?.0.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/gusb-1/
%{_libdir}/libgusb.so
%{_libdir}/pkgconfig/gusb.pc
%doc %{_datadir}/gtk-doc/html/gusb/
%changelog