# %%global will not work here, lazy evaluation needed. %define target_pkg %(t=%{name}; echo ${t#lpf-}) Name: lpf-mscore-fonts Version: 2.2 Release: 1%{?dist} Summary: Bootstrap package building mscore-fonts using lpf License: MIT URL: https://github.com/leamas/lpf Group: Development/Tools BuildArch: noarch Source0: mscore-fonts.spec.in Source1: Licen.TXT Source2: 61-mscore-arial.conf Source3: 61-mscore-andale.conf Source4: 61-mscore-comic.conf Source5: 61-mscore-courier.conf Source6: 61-mscore-georgia.conf Source7: 61-mscore-impact.conf Source8: 61-mscore-times.conf Source9: 61-mscore-trebuchet.conf Source10: 61-mscore-verdana.conf Source11: 61-mscore-webdings.conf BuildRequires: desktop-file-utils BuildRequires: lpf Requires: lpf %description Bootstrap package allowing the lpf system to build the mscore-fonts non-redistributable package. %prep %setup -cT %build %install # lpf-setup-pkg [-e eula] [sources...] /usr/share/lpf/scripts/lpf-setup-pkg -e %{SOURCE1} %{buildroot} %{SOURCE0} \ %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \ %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %post %lpf_post %postun %lpf_postun %lpf_triggerpostun %files %{_datadir}/applications/%{name}.desktop %{_datadir}/lpf/packages/%{target_pkg} %attr(775,pkg-build,pkg-build) /var/lib/lpf/packages/%{target_pkg} %changelog * Fri Feb 14 2014 Alec Leamas - 2.2-1 - New target spec: new description, lower priority. * Mon Feb 10 2014 Alec Leamas - 2.2-1 - Initial release