|
@@ -1,26 +1,28 @@
|
|
|
|
+%bcond_with docs
|
|
|
|
+
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
Name: libgusb
|
|
Name: libgusb
|
|
-Version: 0.2.7
|
|
|
|
-Release: 1%{?_dist_release}
|
|
|
|
Summary: GObject wrapper for libusb1
|
|
Summary: GObject wrapper for libusb1
|
|
Summary(ja): libusb1 用 GObject ラッパー
|
|
Summary(ja): libusb1 用 GObject ラッパー
|
|
|
|
+Version: 0.4.9
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+Group: system
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: Takemikaduchi
|
|
|
|
|
|
-Group: System Environment/Libraries
|
|
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
-URL: https://gitorious.org/gusb/
|
|
|
|
-Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
|
|
|
|
|
|
+URL: https://github.com/hughsie/libgusb
|
|
|
|
+Source0: https://github.com/hughsie/libgusb/releases/download/%{version}/libgusb-%{version}.tar.xz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildRequires: meson
|
|
BuildRequires: glib2-devel >= 2.32.0
|
|
BuildRequires: glib2-devel >= 2.32.0
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
+BuildRequires: json-glib-devel
|
|
BuildRequires: libusb1-devel >= 1.0.19
|
|
BuildRequires: libusb1-devel >= 1.0.19
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
|
-Distribution: Vine Linux
|
|
|
|
-Packager: Takemikaduchi
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%description
|
|
%description
|
|
GUsb is a GObject wrapper for libusb1 that makes it easy to do
|
|
GUsb is a GObject wrapper for libusb1 that makes it easy to do
|
|
asynchronous control, bulk and interrupt transfers with proper
|
|
asynchronous control, bulk and interrupt transfers with proper
|
|
@@ -36,7 +38,7 @@ low hanging fruit if you're interested.
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Summary: Development files for %{name}
|
|
Summary(ja): %{name} の開発ファイル
|
|
Summary(ja): %{name} の開発ファイル
|
|
-Group: Development/Libraries
|
|
|
|
|
|
+Group: programming
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: glib2-devel
|
|
Requires: glib2-devel
|
|
|
|
|
|
@@ -45,22 +47,24 @@ The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
+%if %{with docs}
|
|
%package doc
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Summary: Documentation for %{name}
|
|
Summary(ja): %{name} 用のドキュメント
|
|
Summary(ja): %{name} 用のドキュメント
|
|
-Group: Documentation
|
|
|
|
|
|
+Group: documentation
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
%description doc
|
|
%description doc
|
|
This package contains documentation for %{name}.
|
|
This package contains documentation for %{name}.
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
# compat32
|
|
# compat32
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: GObject wrapper for libusb1
|
|
Summary: GObject wrapper for libusb1
|
|
Summary(ja): libusb1 用 GObject ラッパー
|
|
Summary(ja): libusb1 用 GObject ラッパー
|
|
-Group: System Environment/Libraries
|
|
|
|
|
|
+Group: system,legacy
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
%description -n compat32-%{name}
|
|
@@ -77,7 +81,7 @@ low hanging fruit if you're interested.
|
|
%package -n compat32-%{name}-devel
|
|
%package -n compat32-%{name}-devel
|
|
Summary: Development files for %{name}
|
|
Summary: Development files for %{name}
|
|
Summary(ja): %{name} の開発ファイル
|
|
Summary(ja): %{name} の開発ファイル
|
|
-Group: Development/Libraries
|
|
|
|
|
|
+Group: programming,legacy
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: compat32-glib2-devel
|
|
Requires: compat32-glib2-devel
|
|
@@ -89,51 +93,51 @@ The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
-%prep
|
|
|
|
-%setup -q
|
|
|
|
|
|
+%debug_package
|
|
|
|
|
|
-%build
|
|
|
|
-%configure --disable-static --disable-vala
|
|
|
|
-make %{?_smp_mflags}
|
|
|
|
-
|
|
|
|
-%check
|
|
|
|
-
|
|
|
|
-%install
|
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
|
|
+%prep
|
|
|
|
+%setup -q
|
|
|
|
|
|
-%clean
|
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
+%build
|
|
|
|
+%meson \
|
|
|
|
+ -Dvapi=false \
|
|
|
|
+ -Dtests=false \
|
|
|
|
+ -Dumockdev=disabled \
|
|
|
|
+%if %{with docs}
|
|
|
|
+ -Ddocs=true
|
|
|
|
+%else
|
|
|
|
+ -Ddocs=false
|
|
|
|
+%endif
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
|
|
+%meson_build
|
|
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
-%if %{build_compat32}
|
|
|
|
-%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
-%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
-%endif
|
|
|
|
|
|
+%install
|
|
|
|
+%meson_install
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc AUTHORS ChangeLog COPYING MAINTAINERS NEWS README
|
|
|
|
|
|
+%license COPYING
|
|
|
|
+%doc AUTHORS NEWS README.md
|
|
%{_libdir}/%{name}.so.*
|
|
%{_libdir}/%{name}.so.*
|
|
%{_libdir}/girepository-1.0/GUsb-1.0.typelib
|
|
%{_libdir}/girepository-1.0/GUsb-1.0.typelib
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%{_includedir}/gusb-1
|
|
|
|
|
|
+%{_bindir}/gusbcmd
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/gusb.pc
|
|
%{_libdir}/pkgconfig/gusb.pc
|
|
|
|
+%{_includedir}/gusb-1
|
|
%{_datadir}/gir-1.0/GUsb-1.0.gir
|
|
%{_datadir}/gir-1.0/GUsb-1.0.gir
|
|
|
|
|
|
|
|
+%if %{with docs}
|
|
%files doc
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_datadir}/gtk-doc/html/gusb
|
|
%{_datadir}/gtk-doc/html/gusb
|
|
|
|
+%endif
|
|
|
|
|
|
# compat32
|
|
# compat32
|
|
%if %{build_compat32}
|
|
%if %{build_compat32}
|
|
@@ -149,6 +153,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Aug 12 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.9-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.7-1
|
|
* Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.7-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|