File blender-rpm-macros-openSUSE_Leap_42.3.spec of Package blender-rpm-macros

%define blender_api 2.76

Name:      blender-rpm-macros
Version:   0
Release:   1%{?dist}
License:   CC0-1.0
Summary:   Blender RPM macros
URL:       https://www.blender.org/
Source:    macros.blender
Group:     Development/Sources
BuildArch: noarch
BuildRoot: %{_builddir}/%{name}-root
BuildRequires: blender >= %{blender_api}
BuildRequires: blender <= %{blender_api}z
%description
RPM macros to support cross-distribution .spec files for blender addons

%prep

%build
sed -e "s:@BLENDER_API@:%{blender_api}:g" "%{SOURCE0}" > macros.blender

%install
install -d "%{buildroot}/%{_prefix}/lib/rpm/macros.d"
install -t "%{buildroot}/%{_prefix}/lib/rpm/macros.d" -m 0644 macros.blender

%files
%defattr(-,root,root)
%dir %{_prefix}/lib/rpm/macros.d
%{_prefix}/lib/rpm/macros.d/macros.blender

%changelog
* Mon May 30 2016 Daniel Scharrer <daniel@constexpr.org> - 0-1
- Initial version
openSUSE Build Service is sponsored by