diff --git a/fpc-srpm-macros.spec b/fpc-srpm-macros.spec new file mode 100644 index 0000000..a45666b --- /dev/null +++ b/fpc-srpm-macros.spec @@ -0,0 +1,37 @@ +Name: fpc-srpm-macros +Version: 1.0 +Release: 1%{?dist} +Summary: RPM macros needed by packages built with Free Pascal Compiler + +License: MIT +URL: http://pkgs.fedoraproject.org/cgit/rpms/fpc-src-macros.git +Source0: macros.fpc-srpm +BuildArch: noarch + + +%description +This package contains RPM macros needed by packages built with the +Free Pascal Compiler. For example, it makes available a macro that +lists all architectures where fpc is available. + +%prep +# nothing to do + + +%build +# nothing to do + + +%install +mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d +install -p -m 0644 -t %{buildroot}/%{_rpmconfigdir}/macros.d %{SOURCE0} + + +%files +%{_rpmconfigdir}/macros.d/* + + + +%changelog +* Mon Mar 14 2016 Mattia Verga - 1.0-1 +- Initial creation with supported architectures diff --git a/macros.fpc-srpm b/macros.fpc-srpm new file mode 100644 index 0000000..c4c4c6f --- /dev/null +++ b/macros.fpc-srpm @@ -0,0 +1,3 @@ +%fpc_arches %{ix86} %{arm} x86_64 +# fpc_arches lists the architectures where the Free Pascal Compiler is +# available in Fedora.