Blob Blame History Raw
# To ensure this is always installable even when _vendor is different
%global dist_vendor midipix

Name:		midipix-rpm-config
Version:	0
Release:	0%{?dist}
Summary:	Midipix specific rpm configuration files
Group:		System Environment/Base
# License identifer from:
License:	GPLv2+
Source0:	%{name}-%{version}.tar.gz

BuildRequires:  rpm >= 4.15.1
Requires:	rpm >= 4.15.1
# Generic Provides for alternatives to this package,
# to make it easy to replace this with a different vendor config
# One of these names should be required by the rpm-build package.
Provides:	system-rpm-config = %{version}-%{release}
Provides:	distribution-rpm-config = %{version}-%{release}

BuildArch:	noarch

This package provides the base Midipix-specific configuration
for RPM so that packages produced by RPM in the Midipix environment
are built consistently.


# Nothing to build

# Install main vendor files
mkdir -p %{buildroot}%{_rpmconfigdir}/%{dist_vendor}
install -pm 0644 -t %{buildroot}%{_rpmconfigdir}/%{dist_vendor} %{dist_vendor}/*

# Install other macros
mkdir -p %{buildroot}%{_rpmmacrodir}
install -pm 0644 -t %{buildroot}%{_rpmmacrodir} macros.d/*

# Install dependency generators
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs
install -pm 0644 -t %{buildroot}%{_rpmconfigdir}/fileattrs fileattrs/*.attr

%license COPYING