|
@@ -1,13 +1,17 @@
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
Summary: A library which allows userspace access to USB devices
|
|
|
Summary(ja): USB デバイスにユーザスペースからアクセスするためのライブラリ
|
|
|
Name: libusb1
|
|
|
Version: 1.0.19
|
|
|
-Release: 1%{?_dist_release}
|
|
|
-Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2
|
|
|
-License: LGPLv2+
|
|
|
+Release: 2%{?_dist_release}
|
|
|
Group: System Environment/Libraries
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+License: LGPLv2+
|
|
|
URL: http://libusb.wiki.sourceforge.net/Libusb1.0
|
|
|
+
|
|
|
+Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2
|
|
|
+
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
ExcludeArch: s390 s390x
|
|
|
BuildRequires: eudev-libudev-devel
|
|
|
BuildRequires: doxygen
|
|
@@ -22,7 +26,7 @@ this library is not compatible with the original libusb-0.1 series.
|
|
|
|
|
|
%package devel
|
|
|
Summary: Development files for libusb
|
|
|
-Summary(ja): libusb の開発ファイル
|
|
|
+Summary(ja): libusb の開発用ファイル
|
|
|
Group: Development/Libraries
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: pkgconfig
|
|
@@ -48,6 +52,40 @@ This package contains static libraries to develop applications that use libusb1.
|
|
|
このパッケージは libusb1 を使うアプリケーションを開発するための
|
|
|
静的ライブラリを含んでいます。
|
|
|
|
|
|
+
|
|
|
+# compat32
|
|
|
+%package -n compat32-%{name}
|
|
|
+Summary: A library which allows userspace access to USB devices
|
|
|
+Summary(ja): USB デバイスにユーザスペースからアクセスするためのライブラリ
|
|
|
+Group: System Environment/Libraries
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+Requires: compat32-eudev-libudev
|
|
|
+
|
|
|
+%description -n compat32-%{name}
|
|
|
+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.
|
|
|
+
|
|
|
+%description -n compat32-%{name} -l ja
|
|
|
+このパッケージはアプリケーションが USB デバイスにアクセスする方法を提供します。
|
|
|
+このライブラリはオリジナルの libusb-0.1 シリーズと互換性がないことに注意してください。
|
|
|
+
|
|
|
+%package -n compat32-%{name}-devel
|
|
|
+Summary: Development files for libusb
|
|
|
+Summary(ja): libusb の開発用ファイル
|
|
|
+Group: Development/Libraries
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
+Requires: compat32-%{name} = %{version}-%{release}
|
|
|
+Requires: compat32-pkgconfig
|
|
|
+
|
|
|
+%description -n compat32-%{name}-devel
|
|
|
+This package contains the header files, libraries and documentation needed to
|
|
|
+develop applications that use libusb1.
|
|
|
+
|
|
|
+%description -n compat32-%{name}-devel -l ja
|
|
|
+このパッケージは libusb1 を使うアプリケーションを開発するために
|
|
|
+必要なヘッダファイル、ライブラリ、ドキュメントを含んでいます。
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n libusb-%{version}
|
|
|
|
|
@@ -69,24 +107,45 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%post -p /sbin/ldconfig
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
+%if %{build_compat32}
|
|
|
+%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
+%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
%doc AUTHORS COPYING README NEWS ChangeLog
|
|
|
-%{_libdir}/*.so.*
|
|
|
+%{_libdir}/libusb-1.0.so.*
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root)
|
|
|
%doc doc/html examples/*.c
|
|
|
+%{_includedir}/libusb-1.0
|
|
|
+%{_libdir}/libusb-1.0.so
|
|
|
%{_libdir}/pkgconfig/libusb-1.0.pc
|
|
|
-%{_includedir}/*
|
|
|
-%{_libdir}/*.so
|
|
|
|
|
|
%files static
|
|
|
%defattr(-,root,root)
|
|
|
-%{_libdir}/*.a
|
|
|
+%{_libdir}/libusb-1.0.a
|
|
|
+
|
|
|
+# compat32
|
|
|
+%if %{build_compat32}
|
|
|
+%files -n compat32-%{name}
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/libusb-1.0.so.*
|
|
|
+
|
|
|
+%files -n compat32-%{name}-devel
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/libusb-1.0.so
|
|
|
+%{_libdir}/pkgconfig/libusb-1.0.pc
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.19-2
|
|
|
+- added compat32 subpackages
|
|
|
+
|
|
|
* Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.19-1
|
|
|
- new upstream release
|
|
|
- add BuildRequires: eudev-libudev-devel
|