]> git.pld-linux.org Git - packages/libusb.git/blobdiff - libusb.spec
- x32 rebuild
[packages/libusb.git] / libusb.spec
index 7886d82463a5069d6869d026333f78d4e4aac135..67fcc53eed6cb3c9356e836b1d5e706cfef6eb79 100644 (file)
@@ -1,31 +1,35 @@
 #
 # Conditional build:
-%bcond_without doc     # don't build documentation
-%bcond_with    tests   # perform "make check"
+%bcond_without doc             # don't build documentation
+%bcond_with    tests           # perform "make check"
+%bcond_without static_libs     # static library
+%bcond_without udev            # udev for device enumeration and hotplug support
 
 Summary:       Application access to USB devices
 Summary(es.UTF-8):     libusb - Biblioteca USB
 Summary(pl.UTF-8):     Dostęp z poziomu aplikacji do urządzeń USB
 Summary(pt_BR.UTF-8):  libusb - Biblioteca para acesso a devices USB
 Name:          libusb
-Version:       1.0.9
-Release:       1
+Version:       1.0.19
+Release:       2
 License:       LGPL v2.1+
 Group:         Libraries
-#Source0:      http://downloads.sourceforge.net/libusb/%{name}-%{version}.tar.bz2
-Source0:       http://dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2
-# Source0-md5: 7f5a02375ad960d4e33a6dae7d63cfcb
-URL:           http://www.libusb.org/wiki/libusb-1.0
+Source0:       http://downloads.sourceforge.net/libusb/%{name}-%{version}.tar.bz2
+# Source0-md5: f9e2bb5879968467e5ca756cb4e1fa7e
+URL:           http://libusb.info/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake >= 1.6
+BuildRequires: glibc-devel >= 6:2.9
+BuildRequires: libtool >= 2:2
+%{?with_udev:BuildRequires:    udev-devel}
 %if %{with doc}
 BuildRequires: docbook-dtd41-sgml
 BuildRequires: docbook-style-dsssl
 BuildRequires: doxygen
 BuildRequires: openjade
 %endif
-BuildRequires: libtool >= 2:1.5
 Obsoletes:     libusb0.1
+Obsoletes:     libusbx < 1.0.18
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -47,7 +51,9 @@ Summary(pl.UTF-8):    Pliki nagłówkowe biblioteki libusb
 Summary(pt_BR.UTF-8):  Arquivos de desenvolvimento da libusb
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+%{?with_udev:Requires: udev-devel}
 Obsoletes:     libusb0.1-devel
+Obsoletes:     libusbx-devel < 1.0.18
 
 %description devel
 This package contains header files and other resources you can use to
@@ -70,6 +76,7 @@ Summary(pl.UTF-8):    Statyczne biblioteki do obsługi USB
 Summary(pt_BR.UTF-8):  Arquivos de desenvolvimento da libusb - biblioteca estática
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
+Obsoletes:     libusbx-static < 1.0.18
 
 %description static
 This is package with static libusb libraries.
@@ -84,9 +91,7 @@ Statyczne biblioteki libusb.
 Bibliotecas de desenvolvimento para libusb - estático.
 
 %prep
-%setup -qc
-mv libusb-*/* .
-touch ChangeLog # for snapshot build
+%setup -q
 
 %build
 %{__libtoolize}
@@ -95,7 +100,9 @@ touch ChangeLog # for snapshot build
 %{__autoheader}
 %{__automake}
 %configure \
-       --disable-silent-rules
+       --disable-silent-rules \
+       %{!?with_static_libs:--disable-static} \
+       %{!?with_udev:--disable-udev}
 
 %{__make}
 
@@ -117,7 +124,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README THANKS TODO
+%doc AUTHORS ChangeLog NEWS README TODO
 %attr(755,root,root) %{_libdir}/libusb-1.0.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libusb-1.0.so.0
 
This page took 0.080981 seconds and 4 git commands to generate.