libgusb/libgusb.spec

111 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:56:28 -04:00
Name: libgusb
2024-01-08 08:38:32 +00:00
Version: 0.4.8
Release: 3
2019-09-30 10:56:28 -04:00
Summary: GObject-based library for libusb1
2019-11-06 19:38:43 +08:00
License: LGPLv2+
2019-09-30 10:56:28 -04:00
URL: https://github.com/hughsie/libgusb
2023-07-22 15:54:42 +08:00
Source0: https://github.com/hughsie/libgusb/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires: vala meson libusb1-devel gtk-doc gobject-introspection-devel glib2-devel umockdev-devel gi-docgen json-glib-devel
# for test
BuildRequires: hwdata
2019-09-30 10:56:28 -04:00
%description
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.This makes it easy
to integrate low level USB transfers with your high-level
application or system daemon.
%package devel
Summary: Development files and Header files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for %{name}.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%meson -Dvapi=true -Dtests=true
%meson_build
%install
%meson_install
%ldconfig_scriptlets
2022-03-26 07:10:51 +00:00
%check
%meson_test
2019-09-30 10:56:28 -04:00
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_libdir}/girepository-1.0/GUsb-1.0.typelib
%{_libdir}/libgusb.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/gusbcmd
%{_libdir}/libgusb.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/gusb-1/gusb/*.h
%{_includedir}/gusb-1/gusb.h
%{_datadir}/gir-1.0/GUsb-1.0.gir
%{_datadir}/vala/vapi/*
%files help
%defattr(-,root,root)
%doc NEWS README.md
2023-07-22 15:54:42 +08:00
%{_datadir}/doc/libgusb/*
%exclude %{_datadir}/doc/libgusb/AUTHORS
%exclude %{_datadir}/doc/libgusb/COPYING
2019-09-30 10:56:28 -04:00
%changelog
* Mon Oct 14 2024 zhangpan <zhangpan103@h-partners.com> - 0.4.8-3
- fix duplicate packaged files for help subpackages
* Thu Mar 14 2024 panchenbo <panchenbo@kylinsec.com.cn> - 0.4.8-2
- add BuildRequires json-glib-devel and hwdata
2024-01-08 08:38:32 +00:00
* Mon Jan 8 2024 zhangpan <zhangpan103@h-partners.com> - 0.4.8-1
- update to 0.4.8
2023-07-22 15:54:42 +08:00
* Sat Jul 22 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 0.4.6-1
- update to 0.4.6
2022-07-01 17:19:02 +08:00
* Fri Jul 01 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.3.10-1
- Upgrade to 0.3.10
2022-03-26 07:10:51 +00:00
* Sat Mar 26 2022 wangkerong <wangkerong@h-partners.com> - 0.3.8-2
- enable test case
* Fri Dec 03 2021 wangkerong <wangkerong@huawei.com> - 0.3.8-1
- update to 0.3.8
2021-01-27 10:53:34 +08:00
* Wed Jan 27 2021 hanhui <hanhui15@huawei.com> - 0.3.5-1
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: update to 0.3.5
2020-07-24 16:00:48 +08:00
* Wed Jul 22 2020 zhouhaibo <zhouhaibo@huawei.com> - 0.3.4-1
2020-07-24 16:04:15 +08:00
- Package update
2020-07-24 16:00:48 +08:00
2019-11-06 19:38:43 +08:00
* Wed Oct 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.0-5
- Type:bugfix
- Id:NA
- SUG:NA
- DESC: Modify the license
2019-09-30 10:56:28 -04:00
* Wed Sep 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.0-4
2019-11-06 19:38:43 +08:00
- Type:enhancement
- Id:NA
- SUG:NA
- DESC: Add a new subpackage of help
* Thu Aug 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.0-3
- Package init