]> git.pld-linux.org Git - packages/libgusb.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 3 Nov 2011 17:26:04 +0000 (17:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libgusb-link.patch -> 1.1
    libgusb.spec -> 1.1

libgusb-link.patch [new file with mode: 0644]
libgusb.spec [new file with mode: 0644]

diff --git a/libgusb-link.patch b/libgusb-link.patch
new file mode 100644 (file)
index 0000000..08de5ab
--- /dev/null
@@ -0,0 +1,11 @@
+--- libgusb-0.1.1/gusb/Makefile.am.orig        2011-10-10 16:24:46.000000000 +0200
++++ libgusb-0.1.1/gusb/Makefile.am     2011-11-03 17:23:07.785966750 +0100
+@@ -38,7 +38,7 @@
+ libgusb_la_LIBADD =                                           \
+       $(GLIB_LIBS)                                            \
+-      $(GUDEV_LIBS)
++      $(GUDEV_LIBS) $(USB_LIBS)
+ libgusb_la_LDFLAGS =                                          \
+       -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)    \
diff --git a/libgusb.spec b/libgusb.spec
new file mode 100644 (file)
index 0000000..04765d2
--- /dev/null
@@ -0,0 +1,131 @@
+#
+# Conditional build:
+%bcond_without apidocs         # do not build and package API docs
+#
+Summary:       GUsb - GObject wrapper for libusb1 library
+Summary(pl.UTF-8):     GUsb - obudowanie GObject biblioteki libusb1
+Name:          libgusb
+Version:       0.1.1
+Release:       1
+License:       LGPL v2.1+
+Group:         Libraries
+Source0:       http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
+# Source0-md5: f2724bf1d958c8c9f55c3cfb1bd0efc4
+Patch0:                %{name}-link.patch
+BuildRequires: autoconf >= 2.63
+BuildRequires: automake >= 1:1.11
+BuildRequires: gtk-doc >= 1.9
+BuildRequires: glib2-devel >= 1:2.28.0
+BuildRequires: libtool >= 2:2.2
+BuildRequires: libusb-devel >= 1.0.0
+BuildRequires: pkgconfig
+BuildRequires: tar >= 1:1.22
+BuildRequires: udev-glib-devel
+BuildRequires: xz
+Requires:      glib2 >= 1:2.28.0
+Requires:      libusb >= 1.0.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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. This makes it easy to
+integrate low level USB transfers with your high-level application or
+system daemon.
+
+%description -l pl.UTF-8
+GUsb to obudowanie GObject biblioteki libusb1, ułatwiające
+asynchroniczne sterowanie oraz przesyłanie danych (typu bulk jak i
+z użyciem przerwań) z właściwym przerywaniem i integracją w głównej
+pętli. Ułatwia to integrowanie niskopoziomowego przesyłania danych po
+USB w wysokopoziomowej aplikacji lub demonie systemowym.
+
+%package devel
+Summary:       Header files for GUsb library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki GUsb
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      glib2-devel >= 1:2.28.0
+Requires:      libusb-devel >= 1.0.0
+Requires:      udev-glib-devel
+
+%description devel
+Header files for GUsb library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki GUsb.
+
+%package static
+Summary:       Static GUsb library
+Summary(pl.UTF-8):     Statyczna biblioteka GUsb
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static GUsb library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka GUsb.
+
+%package apidocs
+Summary:       GUsb API documentation
+Summary(pl.UTF-8):     Dokumentacja API biblioteki GUsb
+Group:         Documentation
+
+%description apidocs
+API and internal documentation for GUsb library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki GUsb.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-silent-rules \
+       --with-html-dir=%{_gtkdocdir}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgusb.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS MAINTAINERS NEWS README TODO
+%attr(755,root,root) %{_libdir}/libgusb.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgusb.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgusb.so
+%{_includedir}/gusb-1
+%{_pkgconfigdir}/gusb.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgusb.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/gusb
+%endif
This page took 0.170421 seconds and 4 git commands to generate.