Promote `bluez`, `libicall`, and `libell` to core repo (#3408)

* Promote bluez, libicall, and libell to base repo

* lint files - remove hard-coded paths in bluez.spec

* update changelog

* lint using the spec-cleaner
This commit is contained in:
Dallas Delaney 2022-08-05 13:51:47 -07:00 committed by GitHub
parent 969c4e8058
commit 4d45cb7035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 117 additions and 115 deletions

View File

@ -1,53 +1,50 @@
Summary: Bluetooth utilities
Name: bluez
Version: 5.63
Release: 2%{?dist}
License: GPLv2+ AND LGPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
Name: bluez
Version: 5.63
Release: 1%{?dist}
Summary: Bluetooth utilities
License: GPLv2+ and LGPLv2+
URL: http://www.bluez.org/
Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
Source1: bluez.gitignore
URL: http://www.bluez.org/
Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
Source1: bluez.gitignore
# https://github.com/hadess/bluez/commits/obex-5.46
Patch1: 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
Patch1: 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
# https://github.com/hadess/bluez/commits/systemd-hardening
Patch2: 0001-build-Always-define-confdir-and-statedir.patch
Patch3: 0002-systemd-Add-PrivateTmp-and-NoNewPrivileges-options.patch
Patch4: 0003-systemd-Add-more-filesystem-lockdown.patch
Patch5: 0004-systemd-More-lockdown.patch
Patch2: 0001-build-Always-define-confdir-and-statedir.patch
Patch3: 0002-systemd-Add-PrivateTmp-and-NoNewPrivileges-options.patch
Patch4: 0003-systemd-Add-more-filesystem-lockdown.patch
Patch5: 0004-systemd-More-lockdown.patch
# Fix FTBFS with newer glib versions
Patch6: 0002-Use-g_memdup2-everywhere.patch
Patch6: 0002-Use-g_memdup2-everywhere.patch
# Fix initialization problems with Logitech MX Master mice
# https://bugzilla.redhat.com/show_bug.cgi?id=2019970
# https://github.com/bluez/bluez/issues/220
# Both patches have one rediff necessary to apply to 5.63
Patch7: 0001-hog-Fix-read-order-of-attributes-rediffed.patch
Patch8: 0002-hog-Add-input-queue-while-uhid-device-has-not-been-c-rediffed.patch
BuildRequires: dbus-devel >= 1.6
BuildRequires: glib2-devel
BuildRequires: libell-devel >= 0.37
BuildRequires: libical-devel
BuildRequires: make
BuildRequires: readline-devel
# For bluetooth mesh
BuildRequires: json-c-devel
# For cable pairing
BuildRequires: systemd-devel
Patch7: 0001-hog-Fix-read-order-of-attributes-rediffed.patch
Patch8: 0002-hog-Add-input-queue-while-uhid-device-has-not-been-c-rediffed.patch
BuildRequires: autoconf
BuildRequires: automake
# For printing
BuildRequires: cups-devel
BuildRequires: cups-devel
BuildRequires: dbus-devel >= 1.6
BuildRequires: glib2-devel
# For bluetooth mesh
BuildRequires: json-c-devel
BuildRequires: libell-devel >= 0.37
BuildRequires: libical-devel
# For autoreconf
BuildRequires: libtool automake autoconf
BuildRequires: libtool
BuildRequires: make
# For man pages
BuildRequires: python3-docutils
Requires: dbus >= 1.6
BuildRequires: python3-docutils
BuildRequires: readline-devel
# For cable pairing
BuildRequires: systemd-devel
Requires: dbus >= 1.6
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires(preun): systemd
%description
Utilities for use in Bluetooth applications:
@ -66,30 +63,30 @@ Utilities for use in Bluetooth applications:
The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
%package cups
Summary: CUPS printer backend for Bluetooth printers
Requires: bluez%{?_isa} = %{version}-%{release}
Requires: cups
Summary: CUPS printer backend for Bluetooth printers
Requires: bluez%{?_isa} = %{version}-%{release}
Requires: cups
%description cups
This package contains the CUPS backend
%package libs
Summary: Libraries for use in Bluetooth applications
Summary: Libraries for use in Bluetooth applications
%description libs
Libraries for use in Bluetooth applications.
%package libs-devel
Summary: Development libraries for Bluetooth applications
Requires: bluez-libs%{?_isa} = %{version}-%{release}
Summary: Development libraries for Bluetooth applications
Requires: bluez-libs%{?_isa} = %{version}-%{release}
%description libs-devel
bluez-libs-devel contains development libraries and headers for
use in Bluetooth applications.
%package hid2hci
Summary: Put HID proxying bluetooth HCI's into HCI mode
Requires: bluez%{?_isa} = %{version}-%{release}
Summary: Put HID proxying bluetooth HCI's into HCI mode
Requires: bluez%{?_isa} = %{version}-%{release}
%description hid2hci
Most allinone PC's and bluetooth keyboard / mouse sets which include a
@ -111,17 +108,17 @@ they are paired, this will require the use of a regular (wired) USB keyboard
and mouse.
%package mesh
Summary: Bluetooth mesh
Requires: bluez%{?_isa} = %{version}-%{release}
Requires: bluez-libs%{?_isa} = %{version}-%{release}
Summary: Bluetooth mesh
Requires: bluez%{?_isa} = %{version}-%{release}
Requires: bluez-libs%{?_isa} = %{version}-%{release}
%description mesh
Services for bluetooth mesh
%package obexd
Summary: Object Exchange daemon for sharing content
Requires: bluez%{?_isa} = %{version}-%{release}
Requires: bluez-libs%{?_isa} = %{version}-%{release}
Summary: Object Exchange daemon for sharing content
Requires: bluez%{?_isa} = %{version}-%{release}
Requires: bluez-libs%{?_isa} = %{version}-%{release}
%description obexd
Object Exchange daemon for sharing files, contacts etc over bluetooth
@ -137,44 +134,44 @@ autoreconf -vif
--with-systemdsystemunitdir=%{_unitdir} \
--with-systemduserunitdir=%{_userunitdir}
%{make_build}
%make_build
%install
%{make_install}
%make_install
# "make install" fails to install avinfo
# Red Hat Bugzilla bug #1699680
install -m0755 tools/avinfo $RPM_BUILD_ROOT%{_bindir}
install -m0755 tools/avinfo %{buildroot}%{_bindir}
# btmgmt is not installed by "make install", but it is useful for debugging
# some issues and to set the MAC address on HCIs which don't have their
# MAC address configured
install -m0755 tools/btmgmt $RPM_BUILD_ROOT%{_bindir}
# MAC address configured
install -m0755 tools/btmgmt %{buildroot}%{_bindir}
# Remove libtool archive
find $RPM_BUILD_ROOT -name '*.la' -delete
find %{buildroot} -type f -name "*.la" -delete -print
# Remove the cups backend from libdir, and install it in /usr/lib whatever the install
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
if test -d %{buildroot}%{_lib64dir}/cups ; then
install -D -m0755 %{buildroot}%{_lib64dir}/cups/backend/bluetooth %{buildroot}%{_cups_serverbin}/backend/bluetooth
rm -rf %{buildroot}%{_libdir}/cups
fi
rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/*.rules ${RPM_BUILD_ROOT}/usr/lib/udev/rules.d/*.rules
install -D -p -m0644 tools/hid2hci.rules ${RPM_BUILD_ROOT}/%{_udevrulesdir}/97-hid2hci.rules
rm -f %{buildroot}/%{_sysconfdir}/udev/*.rules %{buildroot}%{_libdir}/udev/rules.d/*.rules
install -D -p -m0644 tools/hid2hci.rules %{buildroot}/%{_udevrulesdir}/97-hid2hci.rules
install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth
install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth/mesh
install -d -m0755 %{buildroot}/%{_localstatedir}/lib/bluetooth
install -d -m0755 %{buildroot}/%{_localstatedir}/lib/bluetooth/mesh
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/bluetooth/
mkdir -p %{buildroot}/%{_libdir}/bluetooth/
#copy bluetooth config file and setup auto enable
install -D -p -m0644 src/main.conf ${RPM_BUILD_ROOT}/etc/bluetooth/main.conf
install -D -p -m0644 mesh/mesh-main.conf ${RPM_BUILD_ROOT}/etc/bluetooth/mesh-main.conf
sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' ${RPM_BUILD_ROOT}/%{_sysconfdir}/bluetooth/main.conf
install -D -p -m0644 src/main.conf %{buildroot}%{_sysconfdir}/bluetooth/main.conf
install -D -p -m0644 mesh/mesh-main.conf %{buildroot}%{_sysconfdir}/bluetooth/mesh-main.conf
sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' %{buildroot}/%{_sysconfdir}/bluetooth/main.conf
# Install the HCI emulator, useful for testing
install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
install emulator/btvirt %{buildroot}/%{_libexecdir}/bluetooth/
#check
#make check
@ -248,10 +245,10 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
%{_libexecdir}/bluetooth/btvirt
%files cups
%_cups_serverbin/backend/bluetooth
%{_cups_serverbin}/backend/bluetooth
%files hid2hci
/usr/lib/udev/hid2hci
%{_libdir}/udev/hid2hci
%{_mandir}/man1/hid2hci.1*
%{_udevrulesdir}/97-hid2hci.rules
@ -274,6 +271,10 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
%{_userunitdir}/obex.service
%changelog
* Wed Jul 13 2022 Dallas Delaney <dadelan@microsoft.com> - 5.63-2
- Promote to Mariner base repo
- Lint spec
* Thu Mar 03 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 5.63-1
- Update to version 5.63 using Fedora 36 spec (license: MIT) for guidance.
- License verified.
@ -778,6 +779,7 @@ Resolves: rhbz#1490911
* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> 4.69-3
- Comment out Requires: dbus-bluez-pin-helper for bootstrapping. Otherwise
it drags in the old blueman, built against python-2.6
* Fri Jul 23 2010 Bastien Nocera <bnocera@redhat.com> 4.69-2
- Don't allow installing bluez-compat on its own

View File

@ -1,13 +1,12 @@
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: Embedded Linux library
Name: libell
Version: 0.48
Release: 1%{?dist}
Summary: Embedded Linux library
Release: 2%{?dist}
License: LGPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://01.org/ell
Source0: https://www.kernel.org/pub/linux/libs/ell/ell-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: make
@ -18,16 +17,13 @@ standard library, and libdl (for dynamic linking). While ELL is designed to be
efficient and compact enough for use on embedded Linux platforms, it is not
limited to resource-constrained systems.
%package devel
Summary: Embedded Linux library development files
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Headers for developing against libell.
%prep
%setup -q -n ell-%{version}
@ -39,7 +35,7 @@ Headers for developing against libell.
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete
find %{buildroot} -type f -name "*.la" -delete -print
%ldconfig_scriptlets
@ -49,14 +45,16 @@ find %{buildroot} -type f -name "*.la" -delete
%doc AUTHORS ChangeLog
%{_libdir}/libell.so.*
%files devel
%{_includedir}/ell
%{_libdir}/libell.so
%{_libdir}/pkgconfig/ell.pc
%changelog
* Wed Jul 13 2022 Dallas Delaney <dadelan@microsoft.com> - 0.48-2
- Promote to Mariner base repo
- Lint spec
* Thu Mar 03 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.48-1
- Update to version 0.48.
- License verified.

View File

@ -1,57 +1,55 @@
Summary: Reference implementation of the iCalendar data type and serialization format
Name: libical
Version: 3.0.9
Release: 5%{?dist}
License: LGPLv2 OR MPLv2.0
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: Reference implementation of the iCalendar data type and serialization format
Name: libical
Version: 3.0.9
Release: 4%{?dist}
License: LGPLv2 or MPLv2.0
URL: https://libical.github.io/libical/
Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
URL: https://libical.github.io/libical/
Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: %{_bindir}/xsltproc
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(icu-uc)
BuildRequires: perl(Getopt::Std)
BuildRequires: perl(lib)
BuildRequires: python3
BuildRequires: python3-pip
BuildRequires: python3-gobject
BuildRequires: vala
BuildRequires: make
Requires: tzdata
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: pkg-config
BuildRequires: python3
BuildRequires: python3-gobject
BuildRequires: python3-pip
BuildRequires: vala
BuildRequires: perl(Getopt::Std)
BuildRequires: perl(lib)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(icu-uc)
BuildRequires: pkgconfig(libxml-2.0)
Requires: tzdata
%description
Reference implementation of the iCalendar data type and serialization format
used in dozens of calendaring and scheduling products.
%package devel
Summary: Development files for libical
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: Development files for libical
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The libical-devel package contains libraries and header files for developing
applications that use libical.
%package glib
Summary: GObject wrapper for libical library
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: GObject wrapper for libical library
Requires: %{name}%{?_isa} = %{version}-%{release}
%description glib
This package provides a GObject wrapper for libical library with support
of GObject Introspection.
%package glib-devel
Summary: Development files for building against %{name}-glib
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Requires: %{name}-glib%{?_isa} = %{version}-%{release}
Summary: Development files for building against %{name}-glib
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Requires: %{name}-glib%{?_isa} = %{version}-%{release}
%description glib-devel
Development files needed for building things which link against %{name}-glib.
@ -60,7 +58,7 @@ Development files needed for building things which link against %{name}-glib.
%autosetup -p1 -S gendiff
%build
%{cmake} \
%cmake \
-DUSE_INTEROPERABLE_VTIMEZONES:BOOL=true \
-DICAL_ALLOW_EMPTY_PROPERTIES:BOOL=true \
-DGOBJECT_INTROSPECTION:BOOL=true \
@ -125,6 +123,10 @@ make test ARGS="-V" -C %{_target_platform}
%{_datadir}/vala/vapi/libical-glib.vapi
%changelog
* Wed Jul 13 2022 Dallas Delaney <dadelan@microsoft.com> - 3.0.9-5
- Promote to Mariner base repo
- Lint spec
* Mon Mar 21 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.0.9-4
- Adding BR on '%%{_bindir}/xsltproc'.
- Disabled gtk doc generation to remove network dependency during build-time.