Initial version for Fedora package review
This commit is contained in:
parent
dad67cb4bf
commit
227d61951e
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/libgusb-0.1.0.tar.xz
|
59
libgusb.spec
Normal file
59
libgusb.spec
Normal file
@ -0,0 +1,59 @@
|
||||
Summary: GLib wrapper around libusb1
|
||||
Name: libgusb
|
||||
Version: 0.1.0
|
||||
Release: 1%{?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
|
||||
|
||||
%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 \
|
||||
--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.1
|
||||
%{_libdir}/libgusb.so.1.0.0
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/gusb-1
|
||||
%{_libdir}/libgusb.so
|
||||
%{_libdir}/pkgconfig/gusb.pc
|
||||
%{_datadir}/gtk-doc/html/gusb
|
||||
|
||||
%changelog
|
||||
* Thu Sep 15 2011 Richard Hughes <richard@hughsie.com> 0.1.0-1
|
||||
- Initial version for Fedora package review
|
Loading…
Reference in New Issue
Block a user