Blame midipix-rpm-config.spec

5cf2f7
# To ensure this is always installable even when _vendor is different
5cf2f7
%global dist_vendor midipix
5cf2f7
5cf2f7
Name:		midipix-rpm-config
5cf2f7
Version:	0
5cf2f7
Release:	0%{?dist}
5cf2f7
Summary:	Midipix specific rpm configuration files
5cf2f7
# From GROUPS
5cf2f7
Group:		System Environment/Base
5cf2f7
# License identifer from: https://fedoraproject.org/wiki/Licensing:Main#Software_License_List
5cf2f7
License:	GPLv2+
5cf2f7
URL:		https://midipix.org
5cf2f7
Source0:	%{name}-%{version}.tar.gz
5cf2f7
8db5b1
BuildRequires:  rpm >= 4.15.1
8db5b1
Requires:	rpm >= 4.15.1
5cf2f7
# Generic Provides for alternatives to this package,
5cf2f7
# to make it easy to replace this with a different vendor config
5cf2f7
# One of these names should be required by the rpm-build package.
5cf2f7
Provides:	system-rpm-config = %{version}-%{release}
5cf2f7
Provides:	distribution-rpm-config = %{version}-%{release}
5cf2f7
5cf2f7
5cf2f7
BuildArch:	noarch
5cf2f7
5cf2f7
%description
5cf2f7
This package provides the base Midipix-specific configuration
5cf2f7
for RPM so that packages produced by RPM in the Midipix environment
5cf2f7
are built consistently.
5cf2f7
5cf2f7
5cf2f7
%prep
5cf2f7
%autosetup
5cf2f7
5cf2f7
5cf2f7
%build
5cf2f7
# Nothing to build
5cf2f7
5cf2f7
%install
5cf2f7
# Install main vendor files
5cf2f7
mkdir -p %{buildroot}%{_rpmconfigdir}/%{_dist_vendor}
5cf2f7
install -tpm 0644 %{buildroot}%{_rpmconfigdir}/%{_dist_vendor} %{_dist_vendor}/*
5cf2f7
5cf2f7
# Install other macros
5cf2f7
mkdir -p %{buildroot}%{_rpmmacrodir}
5cf2f7
install -tpm 0644 %{buildroot}%{_rpmmacrodir} macros.d/*
5cf2f7
5cf2f7
# Install dependency generators
5cf2f7
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs
5cf2f7
install -tpm 0644 %{buildroot}%{_rpmconfigdir}/fileattrs fileattrs/*.attr
5cf2f7
5cf2f7
%files
5cf2f7
%license COPYING
5cf2f7
%doc README.md
5cf2f7
%{_rpmconfigdir}/%{_dist_vendor}/
5cf2f7
%{_rpmconfigdir}/fileattrs/*.attr
5cf2f7
%{_rpmmacrodir}/macros.*
5cf2f7
5cf2f7
5cf2f7
%changelog