File dbusmap.spec of Package dbusmap
#
# spec file for package dbusmap
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dbusmap
Version: 0~git20191122
Release: 0
Summary: A simple utility for enumerating D-Bus endpoints, an nmap for D-Bus
License: GPL-2.0-only
Group: Development/Tools/Debuggers
URL: https://github.com/taviso/dbusmap
Source: %{name}-%{version}.tar.xz
Source1: https://gitlab.com/procps-ng/procps/-/archive/v3.3.17/procps-v3.3.17.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libxml-2.0)
Provides: bundled(libprocps) = 3.3.17
%description
A utility for enumerating D-Bus endpoints, kind of like an nmap(1) for D-Bus.
%prep
%setup -qa1
%build
export CFLAGS="%optflags"
# build libprocps 3.3.x
pushd procps-v3.3.17
./autogen.sh
sysroot="$PWD/usr"
./configure --prefix="$sysroot" --disable-nls --without-ncurses --enable-static --disable-shared
%make_build
make install
popd
# build dbusmap
export PKG_CONFIG_PATH="$sysroot/lib/pkgconfig"
%make_build CFLAGS="%optflags"
%install
install -Dm 0755 dbus-map %{buildroot}%{_bindir}/dbus-map
%files
%license LICENSE
%doc README.md
%{_bindir}/dbus-map
%changelog