Blob Blame Raw
# While we are in package playing with packaging principles, why about having
# this solved in redhat-rpm-config too?  (Also for RHELs which are alive, or
# EPELs otherwise).
%{!?_licensedir:%global license %doc}

%global macrosdir       %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)

%global rrcdir          %_libexecdir

Summary: Multilib packaging helpers
Name: multilib-rpm-config
Version: 1
Release: 3%{?dist}
License: GPLv2+

Source0: multilib-fix
Source2: README
Source3: COPYING

BuildArch: noarch

# Most probably we want to move everything here?
Requires: redhat-rpm-config

Set of tools (shell scripts, RPM macro files) to help with multilib packaging

%setup -c -T
install -m 644 %{SOURCE2} %{SOURCE3} .

%global ml_fix %rrcdir/multilib-fix
sed -e 's|@ML_FIX@|%ml_fix|g' \
    %{SOURCE1} > macros.multilib

mkdir -p %{buildroot}%{rrcdir}
mkdir -p %{buildroot}%{macrosdir}
install -m 644 -p macros.multilib %{buildroot}/%{macrosdir}
install -m 755 -p %{SOURCE0} %{buildroot}/%{ml_fix}

%license COPYING

* Thu Jun 09 2016 Pavel Raiskup <> - 1-3
- package separately from redhat-rpm-config

* Fri Nov 27 2015 Pavel Raiskup <> - 1-2
- fix licensing in Sources
- allow undefined %%namespace

* Wed Nov 18 2015 Pavel Raiskup <> - 1-1
- initial packaging