2008-05-26 18:51:13 +00:00
|
|
|
Summary: A library which allows userspace access to USB devices
|
|
|
|
Name: libusb1
|
2010-05-17 12:24:58 +00:00
|
|
|
Version: 1.0.8
|
2011-02-08 12:34:39 +00:00
|
|
|
Release: 7%{?dist}
|
2008-05-26 18:51:13 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
URL: http://libusb.wiki.sourceforge.net/Libusb1.0
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
2010-09-14 14:45:49 +00:00
|
|
|
Patch0: libusb1-error-access-log-message.patch
|
|
|
|
|
2008-05-26 18:51:13 +00:00
|
|
|
%description
|
|
|
|
This package provides a way for applications to access USB devices. Note that
|
|
|
|
this library is not compatible with the original libusb-0.1 series.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libusb
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2010-01-22 09:28:09 +00:00
|
|
|
Requires: %{name}-devel-doc = %{version}-%{release}
|
2008-05-26 18:51:13 +00:00
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
2010-01-22 09:28:09 +00:00
|
|
|
This package contains the header files and libraries needed to develop
|
|
|
|
applications that use libusb1.
|
|
|
|
|
|
|
|
%package devel-doc
|
|
|
|
Summary: Development files for libusb
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
This package contains documentation needed to develop applications that
|
|
|
|
use libusb1.
|
2008-05-26 18:51:13 +00:00
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: Static development files for libusb
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
%description static
|
|
|
|
This package contains static libraries to develop applications that use libusb1.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libusb-%{version}
|
2010-09-14 14:45:49 +00:00
|
|
|
%patch0 -p1 -b error-access-log-message
|
2008-05-26 18:51:13 +00:00
|
|
|
|
|
|
|
%build
|
2011-01-25 13:44:04 +00:00
|
|
|
%configure --libdir=/%{_lib}
|
2008-05-26 18:51:13 +00:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
pushd doc
|
|
|
|
make docs
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2011-01-25 13:44:04 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
|
2008-05-26 18:51:13 +00:00
|
|
|
|
2011-01-26 13:07:38 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
|
|
|
mv %{buildroot}/%{_lib}/pkgconfig/* %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
|
2008-05-26 18:51:13 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING README NEWS ChangeLog
|
2011-01-25 13:44:04 +00:00
|
|
|
/%{_lib}/*.so.*
|
2008-05-26 18:51:13 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
2011-01-25 13:44:04 +00:00
|
|
|
/%{_lib}/*.so
|
2011-01-26 13:07:38 +00:00
|
|
|
%{_libdir}/pkgconfig/libusb-1.0.pc
|
2008-05-26 18:51:13 +00:00
|
|
|
|
2010-01-22 09:28:09 +00:00
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/html examples/*.c
|
|
|
|
|
2008-05-26 18:51:13 +00:00
|
|
|
%files static
|
|
|
|
%defattr(-,root,root)
|
2011-01-25 13:44:04 +00:00
|
|
|
/%{_lib}/*.a
|
2008-05-26 18:51:13 +00:00
|
|
|
|
|
|
|
%changelog
|
2011-02-08 12:34:39 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-26 13:07:38 +00:00
|
|
|
* Wed Jan 26 2011 Jan Vcelak <jvcelak@redhat.com> 1.0.8-6
|
|
|
|
- package config file has to be in /usr/lib/pkgconfig
|
|
|
|
|
2011-01-25 13:44:04 +00:00
|
|
|
* Tue Jan 25 2011 Jan Vcelak <jvcelak@redhat.com> 1.0.8-5
|
|
|
|
- move libraries from /usr/lib to /lib (#519716)
|
|
|
|
|
2010-11-07 15:05:56 +00:00
|
|
|
* Sun Nov 07 2010 Dan Horák <dan[at]danny.cz> - 1.0.8-4
|
|
|
|
- drop the ExcludeArch as it's causing too many troubles
|
|
|
|
|
2010-09-29 21:43:20 +00:00
|
|
|
* Wed Sep 29 2010 jkeating - 1.0.8-3
|
|
|
|
- Rebuilt for gcc bug 634757
|
|
|
|
|
2010-09-14 14:45:49 +00:00
|
|
|
* Tue Sep 14 2010 Jan Vcelak <jvcelak@redhat.com> 1.0.8-2
|
|
|
|
- USB access error messages are now handled by standard logging mechanism
|
|
|
|
instead of printing to stderr (#628356)
|
|
|
|
|
2010-05-17 12:24:58 +00:00
|
|
|
* Mon May 17 2010 Jindrich Novy <jnovy@redhat.com> 1.0.8-1
|
|
|
|
- update to 1.0.8 (#592901)
|
|
|
|
|
2010-01-22 09:28:09 +00:00
|
|
|
* Fri Jan 22 2010 Jindrich Novy <jnovy@redhat.com> 1.0.6-2
|
|
|
|
- put all doxygen and other docs to separate noarch subpackage to avoid
|
|
|
|
multiarch conflicts (#507980)
|
|
|
|
|
2009-12-02 18:45:19 +00:00
|
|
|
* Wed Dec 02 2009 Jindrich Novy <jnovy@redhat.com> 1.0.6-1
|
|
|
|
- update to 1.0.6
|
|
|
|
|
2009-09-28 12:08:43 +00:00
|
|
|
* Mon Sep 28 2009 Jindrich Novy <jnovy@redhat.com> 1.0.3-1
|
|
|
|
- update to 1.0.3
|
|
|
|
|
2009-07-25 08:50:22 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-15 05:34:28 +00:00
|
|
|
* Mon Jun 15 2009 Jindrich Novy <jnovy@redhat.com> 1.0.2-1
|
|
|
|
- update to 1.0.2
|
|
|
|
|
|
|
|
* Wed May 13 2009 Jindrich Novy <jnovy@redhat.com> 1.0.1-1
|
2009-05-13 05:19:56 +00:00
|
|
|
- update to 1.0.1
|
|
|
|
|
2009-02-25 19:41:49 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-15 10:14:58 +00:00
|
|
|
* Mon Dec 15 2008 - Bastien Nocera <bnocera@redhat.com> - 1.0.0-1
|
|
|
|
- Update to 1.0.0
|
|
|
|
|
2008-11-21 17:30:58 +00:00
|
|
|
* Fri Nov 21 2008 - Bastien Nocera <bnocera@redhat.com> - 0.9.4-1
|
|
|
|
- Update to 0.9.4
|
|
|
|
|
2008-09-23 11:26:47 +00:00
|
|
|
* Tue Sep 23 2008 Jindrich Novy <jnovy@redhat.com> 0.9.3-0.1
|
|
|
|
- update to 0.9.3
|
|
|
|
|
2008-07-06 15:30:53 +00:00
|
|
|
* Sun Jul 06 2008 - Bastien Nocera <bnocera@redhat.com> - 0.9.1
|
|
|
|
- Update to 0.9.1
|
|
|
|
|
2008-05-26 18:51:13 +00:00
|
|
|
* Mon May 26 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.4
|
|
|
|
- update to official beta
|
|
|
|
|
|
|
|
* Thu May 23 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.3.gitbef33bb
|
|
|
|
- update comment on how the tarball was created
|
|
|
|
- use abbreviated git hash within package name to avoid conflicts
|
|
|
|
- add to %%description that libusb1 is incompatible with libsub-0.1
|
|
|
|
|
|
|
|
* Thu May 22 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.2.gitbef33bb
|
|
|
|
- add info on how the snapshot tarball was created
|
|
|
|
|
|
|
|
* Wed May 21 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.1.gitbef33bb
|
|
|
|
- use proper version to denote it is a git snapshot
|
|
|
|
|
|
|
|
* Thu May 15 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.1
|
|
|
|
- initial packaging
|