From 5cf2f707f6ab3901b72c3dc6872f66c206b9f585 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: May 06 2018 14:37:25 +0000 Subject: Initial packaging file --- diff --git a/midipix-rpm-config.spec b/midipix-rpm-config.spec new file mode 100644 index 0000000..b9e8be3 --- /dev/null +++ b/midipix-rpm-config.spec @@ -0,0 +1,60 @@ +# 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 +# From GROUPS +Group: System Environment/Base +# License identifer from: https://fedoraproject.org/wiki/Licensing:Main#Software_License_List +License: GPLv2+ +URL: https://midipix.org +Source0: %{name}-%{version}.tar.gz + +BuildRequires: rpm >= 4.14.0 +Requires: rpm >= 4.14.0 +# 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 + +%description +This package provides the base Midipix-specific configuration +for RPM so that packages produced by RPM in the Midipix environment +are built consistently. + + +%prep +%autosetup + + +%build +# Nothing to build + +%install +# Install main vendor files +mkdir -p %{buildroot}%{_rpmconfigdir}/%{_dist_vendor} +install -tpm 0644 %{buildroot}%{_rpmconfigdir}/%{_dist_vendor} %{_dist_vendor}/* + +# Install other macros +mkdir -p %{buildroot}%{_rpmmacrodir} +install -tpm 0644 %{buildroot}%{_rpmmacrodir} macros.d/* + +# Install dependency generators +mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs +install -tpm 0644 %{buildroot}%{_rpmconfigdir}/fileattrs fileattrs/*.attr + +%files +%license COPYING +%doc README.md +%{_rpmconfigdir}/%{_dist_vendor}/ +%{_rpmconfigdir}/fileattrs/*.attr +%{_rpmmacrodir}/macros.* + + +%changelog