112 lines
3.3 KiB
RPMSpec
112 lines
3.3 KiB
RPMSpec
Summary: GLib wrapper around libusb1
|
|
Name: libgusb
|
|
Version: 0.1.6
|
|
Release: 5%{?dist}
|
|
License: LGPLv2+
|
|
URL: https://gitorious.org/gusb/
|
|
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: glib2-devel >= 2.16.1
|
|
BuildRequires: libtool
|
|
BuildRequires: libgudev1-devel
|
|
BuildRequires: libusb1-devel
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: vala-devel
|
|
BuildRequires: vala-tools
|
|
|
|
%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 devel
|
|
Summary: Libraries and headers for gusb
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
GLib headers and libraries for gusb.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static \
|
|
--enable-vala=yes \
|
|
--enable-introspection=yes \
|
|
--disable-gtk-doc \
|
|
--enable-gudev \
|
|
--disable-dependency-tracking
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libgusb.la
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README AUTHORS NEWS COPYING
|
|
%{_libdir}/libgusb.so.?
|
|
%{_libdir}/libgusb.so.?.0.*
|
|
%{_libdir}/girepository-1.0/GUsb-1.0.typelib
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/gusb-1
|
|
%{_libdir}/libgusb.so
|
|
%{_libdir}/pkgconfig/gusb.pc
|
|
%{_datadir}/gtk-doc/html/gusb
|
|
%{_datadir}/gir-1.0/GUsb-1.0.gir
|
|
%{_datadir}/vala/vapi/gusb.vapi
|
|
|
|
%changelog
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.6-4
|
|
- Rebuilt for gobject-introspection 1.41.4
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Tue Feb 06 2013 Richard Hughes <richard@hughsie.com> 0.1.6-1
|
|
- New upstream version
|
|
- Do not use deprecated GLib functionality
|
|
- Unref the GMainloop after it has been run, not when just quit
|
|
|
|
* Tue Feb 05 2013 Richard Hughes <richard@hughsie.com> 0.1.5-1
|
|
- New upstream version
|
|
|
|
* Tue Nov 06 2012 Richard Hughes <richard@hughsie.com> 0.1.4-1
|
|
- New upstream version
|
|
- Add GObject Introspection support
|
|
- Add Vala bindings
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Dec 05 2011 Richard Hughes <richard@hughsie.com> 0.1.3-1
|
|
- New upstream version
|
|
- Add a missing error enum value
|
|
|
|
* Fri Nov 11 2011 Richard Hughes <richard@hughsie.com> 0.1.2-1
|
|
- New upstream version
|
|
- Ignore EBUSY when trying to detach a detached kernel driver
|
|
|
|
* Tue Nov 01 2011 Richard Hughes <richard@hughsie.com> 0.1.1-1
|
|
- New upstream version
|
|
|
|
* Thu Sep 15 2011 Richard Hughes <richard@hughsie.com> 0.1.0-1
|
|
- Initial version for Fedora package review
|