Initial import (#1482202)
This commit is contained in:
parent
a9cad36f20
commit
253b9590bf
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/c-dvar-1.tar.gz
|
||||
/c-list-3.tar.gz
|
||||
/c-rbtree-3.tar.gz
|
||||
/c-sundry-3b5f04b5af54dea68d832546833d6d460d03aefc.tar.gz
|
||||
/dbus-broker-4.tar.gz
|
||||
131
dbus-broker.spec
Normal file
131
dbus-broker.spec
Normal file
@ -0,0 +1,131 @@
|
||||
%global c_dvar_version 1
|
||||
%global c_list_version 3
|
||||
%global c_rbtree_version 3
|
||||
%global c_sundry_commit 3b5f04b5af54dea68d832546833d6d460d03aefc
|
||||
|
||||
Name: dbus-broker
|
||||
Version: 4
|
||||
Release: 1%{?dist}
|
||||
Summary: Linux D-Bus Message Broker
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/bus1/dbus-broker
|
||||
Source0: https://github.com/bus1/dbus-broker/archive/v%{version}/dbus-broker-%{version}.tar.gz
|
||||
Source1: https://github.com/c-util/c-dvar/archive/v%{c_dvar_version}/c-dvar-%{c_dvar_version}.tar.gz
|
||||
Source2: https://github.com/c-util/c-list/archive/v%{c_list_version}/c-list-%{c_list_version}.tar.gz
|
||||
Source3: https://github.com/c-util/c-rbtree/archive/v%{c_rbtree_version}/c-rbtree-%{c_rbtree_version}.tar.gz
|
||||
Source4: https://github.com/c-util/c-sundry/archive/%{c_sundry_commit}/c-sundry-%{c_sundry_commit}.tar.gz
|
||||
Provides: bundled(c-dvar) = %{c_dvar_version}
|
||||
Provides: bundled(c-list) = %{c_list_version}
|
||||
Provides: bundled(c-rbtree) = %{c_rbtree_version}
|
||||
%{?systemd_requires}
|
||||
BuildRequires: pkgconfig(audit)
|
||||
BuildRequires: pkgconfig(expat)
|
||||
BuildRequires: pkgconfig(dbus-1)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(libselinux)
|
||||
BuildRequires: pkgconfig(libsystemd)
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: gcc
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: meson
|
||||
BuildRequires: python2-docutils
|
||||
BuildRequires: selinux-policy-devel
|
||||
Requires(post): selinux-policy
|
||||
Requires(post): policycoreutils
|
||||
Requires(post): policycoreutils-python-utils
|
||||
Requires: dbus
|
||||
|
||||
%description
|
||||
dbus-broker is an implementation of a message bus as defined by the D-Bus
|
||||
specification. Its aim is to provide high performance and reliability, while
|
||||
keeping compatibility to the D-Bus reference implementation. It is exclusively
|
||||
written for Linux systems, and makes use of many modern features provided by
|
||||
recent Linux kernel releases.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%setup -q -T -D -b 1
|
||||
%setup -q -T -D -b 2
|
||||
%setup -q -T -D -b 3
|
||||
%setup -q -T -D -b 4
|
||||
cd subprojects
|
||||
rm * -r
|
||||
ln -s ../../c-dvar-%{c_dvar_version} c-dvar
|
||||
ln -s ../../c-list-%{c_list_version} c-list
|
||||
ln -s ../../c-rbtree-%{c_rbtree_version} c-rbtree
|
||||
ln -s ../../c-sundry-%{c_sundry_commit} c-sundry
|
||||
cd -
|
||||
rm -rf %{_vpath_builddir}/docs
|
||||
mkdir -p %{_vpath_builddir}/docs
|
||||
rm -rf %{_vpath_builddir}/selinux
|
||||
mkdir -p %{_vpath_builddir}/selinux
|
||||
cp %{_vpath_srcdir}/selinux/dbus-broker.{te,fc} %{_vpath_builddir}/selinux/
|
||||
|
||||
%build
|
||||
%meson -Dselinux=true -Daudit=true
|
||||
%meson_build
|
||||
rst2man %{_vpath_srcdir}/docs/dbus-broker-launch.rst %{_vpath_builddir}/docs/dbus-broker-launch.1
|
||||
rst2man %{_vpath_srcdir}/docs/dbus-broker.rst %{_vpath_builddir}/docs/dbus-broker.1
|
||||
cd %{_vpath_builddir}/selinux
|
||||
make NAME=targeted -f /usr/share/selinux/devel/Makefile
|
||||
cd -
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
install -d %{buildroot}%{_mandir}/man1
|
||||
install -p -m 644 %{_vpath_builddir}/docs/dbus-broker-launch.1 %{buildroot}%{_mandir}/man1/dbus-broker-launch.1
|
||||
install -p -m 644 %{_vpath_builddir}/docs/dbus-broker.1 %{buildroot}%{_mandir}/man1/dbus-broker.1
|
||||
install -d %{buildroot}%{_datadir}/selinux/targeted
|
||||
install -p -m 644 %{_vpath_builddir}/selinux/dbus-broker.pp %{buildroot}%{_datadir}/selinux/targeted/dbus-broker.pp
|
||||
|
||||
%check
|
||||
%meson_test
|
||||
|
||||
%pre
|
||||
%selinux_relabel_pre -s targeted
|
||||
|
||||
%post
|
||||
%selinux_modules_install -s targeted %{_datadir}/selinux/targeted/dbus-broker.pp
|
||||
%systemd_post dbus-broker.service
|
||||
|
||||
%preun
|
||||
%systemd_preun dbus-broker.service
|
||||
|
||||
%postun
|
||||
%systemd_postun dbus-broker.service
|
||||
if [ $1 -eq 0 ] ; then
|
||||
%selinux_modules_uninstall -s targeted dbus-broker
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
%selinux_relabel_post -s targeted
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%license LICENSE
|
||||
%{_bindir}/dbus-broker
|
||||
%{_bindir}/dbus-broker-launch
|
||||
%{_datadir}/selinux/*/dbus-broker.pp
|
||||
%{_mandir}/man1/dbus-broker.1*
|
||||
%{_mandir}/man1/dbus-broker-launch.1*
|
||||
%{_unitdir}/dbus-broker.service
|
||||
%{_userunitdir}/dbus-broker.service
|
||||
|
||||
%changelog
|
||||
* Fri Sep 08 2017 Tom Gundersen <teg@jklm.no> - 4-1
|
||||
- Use audit for SELinux logging
|
||||
- Support full search-paths for service files
|
||||
- Log policy failures
|
||||
|
||||
* Fri Aug 18 2017 Tom Gundersen <teg@jklm.no> - 3-1
|
||||
- Add manpages
|
||||
|
||||
* Wed Aug 16 2017 Tom Gundersen <teg@jklm.no> - 2-2
|
||||
- Add license to package
|
||||
|
||||
* Wed Aug 16 2017 Tom Gundersen <teg@jklm.no> - 2-1
|
||||
- Add SELinux support
|
||||
|
||||
* Sun Aug 13 2017 Tom Gundersen <teg@jklm.no> - 1-1
|
||||
- Initial RPM release
|
||||
|
||||
5
sources
Normal file
5
sources
Normal file
@ -0,0 +1,5 @@
|
||||
SHA512 (c-dvar-1.tar.gz) = 9da61eb7337894767fcb7e71ab89c52d3cbbea1d8ae73e99541a5f7360c8b3d6b24c2fdbc5a17cab4c175684048e00fca44cd06f35540b497e58dc13bee6e845
|
||||
SHA512 (c-list-3.tar.gz) = fe18055262cc8025dd12f879a13fbb58164dbd6f212e23ae5e05ff39fd097b3fa3ae4599b0b8122800bfd88f19a633d7b7922d3689464fdd7826f7642e474be9
|
||||
SHA512 (c-rbtree-3.tar.gz) = c4fcf3a9441f9fbe0e93155a9eaf10e53a23b40082e98f6196efb697dbc8c59859c7f8cfa103bf8aed8a8885e0728fc072acf4b853810b7068bd245067fb04d1
|
||||
SHA512 (c-sundry-3b5f04b5af54dea68d832546833d6d460d03aefc.tar.gz) = 406c31e198187bff4791af3c4902fa2631e1b29d0837679012278176e599ceca0f3d8379fdb8647f049a5c582375f796ec062007243b577c0a3adbc2d03e0b00
|
||||
SHA512 (dbus-broker-4.tar.gz) = d4c9974e730d0b6374edb2afb6f928f35e3912f7d5d7d908429581e235ebc013dbab1bd0f0c446547d2a960e762868e2d98ab1cd3ff5e1169240f3e6886236d8
|
||||
Loading…
Reference in New Issue
Block a user