提交 f51f944f 编写于 作者: S Shinwell Hu

additional yaml

上级 02b4e9d3
Name: bluez
Summary: Bluetooth utilities
Version: 5.50
Release: 9
License: GPLv2+
URL: http://www.bluez.org/
Source0: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz
# The following sources all come from upstream
Source1: bluez.gitignore
Source2: 69-btattach-bcm.rules
Source3: btattach-bcm@.service
Source4: btattach-bcm-service.sh
Patch0001: 0001-build-Enable-BIND_NOW.patch
Patch0003: 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
Patch0004: 0001-build-Always-define-confdir-and-statedir.patch
Patch0005: 0002-systemd-Add-PrivateTmp-and-NoNewPrivileges-options.patch
Patch0006: 0003-systemd-Add-more-filesystem-lockdown.patch
Patch0007: 0004-systemd-More-lockdown.patch
Patch0008: 0001-policy-Add-logic-to-connect-a-Sink.patch
Patch0009: fix-CVE-2018-10910-1.patch
Patch0010: fix-CVE-2018-10910-2.patch
Patch0011: CVE-2020-0556-1.patch
Patch0012: CVE-2020-0556-2.patch
Patch0013: CVE-2020-0556-3.patch
Patch0014: CVE-2020-0556-4.patch
BuildRequires: dbus-devel >= 1.6
BuildRequires: git-core glib2-devel libical-devel readline-devel libell-devel
BuildRequires: json-c-devel systemd-devel cups-devel libtool automake autoconf
Requires: dbus >= 1.6 %{name}-libs = %{version}-%{release}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Provides: bluez-hid2hci bluez-obexd
Obsoletes: bluez-hid2hci bluez-obexd
%description
This package provides all utilities for use in Bluetooth applications.
The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
%package libs
Summary: Libraries for bluez
%description libs
Libraries forbluez.
%package devel
Summary: Development libraries for Bluetooth applications
Requires: %{name}-libs = %{version}-%{release}
Provides: bluez-libs-devel
Obsoletes: bluez-libs-devel
%description devel
This package provides development libraries and headers for Bluetooth related
applications.
%package help
Summary: Help manual for bluetooth application related utilities
%description help
This package provides help manual function for Bluetooth utilities separately.
%package cups
Summary: CUPS printer backend for Bluetooth printers
Requires: bluez%{?_isa} = %{version}-%{release}
Requires: cups
%description cups
This package contains the CUPS backend
%prep
%autosetup -S git
%build
libtoolize -f
autoreconf -f -i
%configure --enable-tools --enable-library --enable-deprecated \
--enable-sixaxis --enable-cups --enable-nfc --enable-mesh \
--with-systemdsystemunitdir=%{_unitdir} \
--with-systemduserunitdir=%{_userunitdir}
%make_build V=1
%install
%make_install
install -m0755 attrib/gatttool $RPM_BUILD_ROOT%{_bindir}
# Remove autocrap and libtool related redundant items
find $RPM_BUILD_ROOT -name '*.la' -delete
# Remove the cups backend from libdir, and install it in new default CUPS binary directory
if test -d ${RPM_BUILD_ROOT}/usr/lib64/cups ; then
install -D -m0755 ${RPM_BUILD_ROOT}/usr/lib64/cups/backend/bluetooth ${RPM_BUILD_ROOT}%_cups_serverbin/backend/bluetooth
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/cups
fi
rm -f ${RPM_BUILD_ROOT}/%{_udevrulesdir}/*.rules
install -D -p -m0644 tools/hid2hci.rules ${RPM_BUILD_ROOT}/%{_udevrulesdir}/97-hid2hci.rules
install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth
install -d $RPM_BUILD_ROOT/%{_libdir}/bluetooth/
# Copy bluetooth config file
install -D -p -m0644 src/main.conf ${RPM_BUILD_ROOT}/etc/bluetooth/main.conf
# Setup auto enable
sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' ${RPM_BUILD_ROOT}/%{_sysconfdir}/bluetooth/main.conf
# Serial port connected Broadcom HCIs scripts
install -D -p -m0644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_udevrulesdir}/
install -D -p -m0644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_unitdir}/
install -D -p -m0755 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
%preun
%systemd_preun bluetooth.service
%systemd_user_preun obex.service
%post
%systemd_post bluetooth.service
/sbin/udevadm trigger --subsystem-match=usb
%systemd_user_post obex.service
%postun
%systemd_postun_with_restart bluetooth.service
%ldconfig_scriptlets libs
%files
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc AUTHORS ChangeLog
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
%config %{_sysconfdir}/bluetooth/main.conf
%{_bindir}/*
%{_libexecdir}/bluetooth/bluetoothd
%{_libexecdir}/bluetooth/btattach-bcm-service.sh
# This is obexd relative file
%{_libexecdir}/bluetooth/obexd
%{_libdir}/bluetooth/
# This is hid2hci relative file
%{_exec_prefix}/lib/udev/hid2hci
%{_localstatedir}/lib/bluetooth
%{_datadir}/dbus-1/system-services/org.bluez.service
# This is obexd relative file
%{_datadir}/dbus-1/services/org.bluez.obex.service
%{_unitdir}/bluetooth.service
%{_unitdir}/btattach-bcm@.service
%{_udevrulesdir}/69-btattach-bcm.rules
# hid2hci relative files
%{_udevrulesdir}/97-hid2hci.rules
# obexd relative files
%{_userunitdir}/obex.service
%files libs
%{_libdir}/libbluetooth.so.*
%files help
%{_mandir}/man1/*
%{_mandir}/man8/*
%files devel
%doc doc/*txt
%{_libdir}/libbluetooth.so
%{_includedir}/bluetooth
%{_libdir}/pkgconfig/bluez.pc
%files cups
%_cups_serverbin/backend/bluetooth
%changelog
* Wed May 20 2020 songnannan <songnannan2@huawei.com> - 5.50-9
- delete the check temporarily
* Wed Apr 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.50-8
- Type:cves
- ID:CVE-2020-0556
- SUG:NA
- DESC:fix CVE-2020-0556
* Wed Mar 18 2020 chenzhen <chenzhen44@huawei.com> - 5.50-7
- Type:cves
- ID:CVE-2018-10910
- SUG:NA
- DESC:fix CVE-2018-10910
* Mon Feb 17 2020 hexiujun <hexiujun1@huawei.com> - 5.50-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:unpack libs subpackage
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.50-5
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: delete patches
* Tue Sep 17 2019 Alex Chao <zhaolei746@huawei.com> - 5.50-4
- Package init
---
version_control: github
src_repo: nodejs/http-parser
tag_prefix: ^v
seperator: .
src_repo: nodejs/http-parser
tag_prefix: "^v"
seperator: "."
last_query:
time_stamp: 2020-05-20 10:06:39.504198260 +00:00
raw_data: "a649acc096580a927c42562ec502cecb571f429d\trefs/tags/v0.1\n212f72137d493510cd11f8befef02aa8af35feb4\trefs/tags/v0.1^{}\nda47c13169071e494b5cbbbdf8e4cbd87b04920b\trefs/tags/v0.2\na8f7a3cd78a6727ca3778e3e9be2112d5965bab2\trefs/tags/v0.3\n32c0e1158361b5952bd0cfed2355e33639664bc4\trefs/tags/v1.0\n90a938304babb1bd0d79dd1460b40b218a634d66\trefs/tags/v2.0\n3fb4e061ec106077f5f1a1279c2dcd9c158e009b\trefs/tags/v2.0^{}\n1e15920f88dd356141c27d0c41ae02ac31ca11eb\trefs/tags/v2.1\n80819384450b5511a3d1c424dd92a5843c891364\trefs/tags/v2.1^{}\nfd609ab272f94bb58e65449b4faeaa4abe02b558\trefs/tags/v2.2\ncba704cb2d9f1df80994dd4a791a0fa6cce65720\trefs/tags/v2.2.1\n56f7ad0e2e5a80f79d214015c91e1f17d11d109f\trefs/tags/v2.3\n956c8a054a8d8e8fd8eaca6827aedfaf08911cab\trefs/tags/v2.4\n36f107fa2e62ca1f0fe7087e49f58624c45a24f1\trefs/tags/v2.4.1\n1b315808932486656cfa30e46932a93cbe231b42\trefs/tags/v2.4.2\n39c2c1e5733eb2cb7397a370cf50508ea1214bf7\trefs/tags/v2.5\n39c2c1e5733eb2cb7397a370cf50508ea1214bf7\trefs/tags/v2.5.0\nd8943465e559ca891fd957156fd83c8cfd44feb3\trefs/tags/v2.6.0\nbee4817ebea0eaa592143c7825f5c96f040c84e4\trefs/tags/v2.6.0^{}\n0e0f6263ab676dc67c054e9a575344d75f6d6f8e\trefs/tags/v2.6.1\n678a9e21f11e5ea93e5e17a2302390f88a6a8c46\trefs/tags/v2.6.1^{}\na1d4140b9357775207741290d3de91e3989cee28\trefs/tags/v2.6.2\n5651aea80472bf9a1f7d2718c78c0de08984aa1f\trefs/tags/v2.6.2^{}\n9b0d5b33ebdaacff1dadd06bad4e198b11ff880e\trefs/tags/v2.7.0\n291f3d629390e2ceea8b07c28acd2303416d898b\trefs/tags/v2.7.1\nfeae95a3a69f111bc1897b9048d9acbc290992f9\trefs/tags/v2.7.1^{}\nb9d5c2d5235be1631263b6be73b9ecac746535ef\trefs/tags/v2.8.0\ndd74753cf5cf8944438d6f49ddf46f9659993dfb\trefs/tags/v2.8.0^{}\n208a97b6a5e4f2cd291b88ba2b2d90eec8aef52e\trefs/tags/v2.8.1\n54f55a2f02a823e5f5c87abe853bb76d1170718d\trefs/tags/v2.8.1^{}\n73c01a86d7285be2b7f3af16679d358aa4fc70d3\trefs/tags/v2.9.0\n0d0a24e19eb5ba232d2ea8859aba2a7cc6c42bc4\trefs/tags/v2.9.0^{}\nc5c45636b85e7598223adede6ba2d8cb8fe03ebe\trefs/tags/v2.9.1\n5c17dad400e45c5a442a63f250fff2638d144682\trefs/tags/v2.9.2\na0c034c0c7698c08f8dc8c8d0257305f6280c27b\trefs/tags/v2.9.3\n2343fd6b5214b2ded2cdcf76de2bf60903bb90cd\trefs/tags/v2.9.4\n"
query_type: git-ls
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册