- Added url as source. Please see http://en.opensuse.org/SourceUrls OBS-URL: https://build.opensuse.org/request/show/170858 OBS-URL: https://build.opensuse.org/package/show/hardware/libusb-1_0?expand=0&rev=33
82 lines
2.2 KiB
RPMSpec
82 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package libusb-1_0
|
|
#
|
|
# Copyright (c) 2013 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: libusb-1_0
|
|
Version: 1.0.9
|
|
Release: 0
|
|
Summary: USB Library
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
%define _name libusb
|
|
Url: http://www.libusb.org/
|
|
Source: http://downloads.sourceforge.net/project/%{_name}/%{_name}-1.0/%{_name}-%{version}/%{_name}-%{version}.tar.bz2
|
|
Source1: baselibs.conf
|
|
BuildRequires: pkg-config
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
|
|
|
|
%description
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
%package -n libusb-1_0-0
|
|
Summary: USB Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libusb-1_0-0
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
%package devel
|
|
Summary: USB Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libusb-1_0-0 = %{version}
|
|
|
|
%description devel
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
%prep
|
|
%setup -q -n %{_name}-%{version}
|
|
|
|
%build
|
|
%configure\
|
|
--with-pic\
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -n libusb-1_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libusb-1_0-0 -p /sbin/ldconfig
|
|
|
|
%files -n libusb-1_0-0
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING NEWS README THANKS TODO
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc PORTING
|
|
%{_includedir}/libusb-1.0
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|