%global spectemplatedir %{_sysconfdir}/rpmdevtools/ %global ftcgtemplatedir %{_datadir}/fontconfig/templates/ %global rpmmacrodir %{_sysconfdir}/rpm/ Name: fontpackages Version: 1.44 Release: %mkrel 10 Summary: Common directory and macro definitions used by font packages Group: Development/X11 # Mostly means the scriptlets inserted via this package do not change the # license of the packages they're inserted in License: LGPLv3+ URL: http://fedoraproject.org/wiki/fontpackages Source0: http://fedorahosted.org/releases/f/o/%{name}/%{name}-%{version}.tar.xz # (tv) kill useless scriptlets (we use file triggers): Patch0: kill-post.diff BuildArch: noarch %description This package contains the basic directory layout, spec templates, rpm macros and other materials used to create font packages. %package filesystem Summary: Directories used by font packages License: Public Domain Group: Development/X11 %description filesystem This package contains the basic directory layout used by font packages, including the correct permissions for the directories. %package devel Summary: Templates and macros used to create font packages Group: Development/X11 Requires: rpmdevtools, %{name}-filesystem = %{version}-%{release} Requires: fontconfig %description devel This package contains spec templates, rpm macros and other materials used to create font packages. %package tools Summary: Tools used to check fonts and font packages Requires: fontconfig, fontforge Requires: curl, make, mutt Requires: rpmlint %description tools This package contains tools used to check fonts and font packages %prep %setup -q %apply_patches # (tv) prevent packaging /etc/rpm/macros.fonts.0000 rm -f rpm/macros.fonts.0000 %build for file in bin/repo-font-audit bin/compare-repo-font-audit ; do sed -i "s|^DATADIR\([[:space:]]*\)\?=\(.*\)$|DATADIR=%{_datadir}/%{name}|g" \ $file done %install # Pull macros out of macros.fonts and emulate them during install for dir in fontbasedir fontconfig_masterdir \ fontconfig_confdir fontconfig_templatedir ; do export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" \ rpm/macros.fonts | %{__awk} '{ print $2 }')) done install -m 0755 -d %{buildroot}${_fontbasedir} \ %{buildroot}${_fontconfig_masterdir} \ %{buildroot}${_fontconfig_confdir} \ %{buildroot}${_fontconfig_templatedir} \ %{buildroot}%{spectemplatedir} \ %{buildroot}%{rpmmacrodir} \ %{buildroot}%{_datadir}/fontconfig/templates \ %{buildroot}/%_datadir/%{name} \ %{buildroot}%{_bindir} install -m 0644 -p spec-templates/*.spec %{buildroot}%{spectemplatedir} install -m 0644 -p fontconfig-templates/* %{buildroot}%{ftcgtemplatedir} install -m 0644 -p rpm/macros* %{buildroot}%{rpmmacrodir} install -m 0644 -p private/repo-font-audit.mk %{buildroot}/%{_datadir}/%{name} install -m 0755 -p private/core-fonts-report \ private/font-links-report \ private/fonts-report \ private/process-fc-query \ private/test-info %{buildroot}/%{_datadir}/%{name} install -m 0755 -p bin/* %{buildroot}%{_bindir} cat <<EOF > %{name}-%{version}.files %defattr(0644,root,root,0755) %dir ${_fontbasedir} %dir ${_fontconfig_masterdir} %dir ${_fontconfig_confdir} %dir ${_fontconfig_templatedir} EOF %files filesystem -f %{name}-%{version}.files %defattr(0644,root,root,0755) %dir %{_datadir}/fontconfig %files devel %defattr(0644,root,root,0755) %doc license.txt readme.txt %config(noreplace) %{spectemplatedir}/*.spec %config(noreplace) %{rpmmacrodir}/macros* %dir %{ftcgtemplatedir} %{ftcgtemplatedir}/*conf %{ftcgtemplatedir}/*txt %files tools %defattr(0644,root,root,0755) %doc license.txt readme.txt %dir %{_datadir}/%{name} %{_datadir}/%{name}/repo-font-audit.mk %defattr(0755,root,root,0755) %{_datadir}/%{name}/core-fonts-report %{_datadir}/%{name}/font-links-report %{_datadir}/%{name}/fonts-report %{_datadir}/%{name}/process-fc-query %{_datadir}/%{name}/test-info %{_bindir}/* %changelog * Wed Oct 15 2014 umeabot <umeabot> 1.44-10.mga5 + Revision: 739182 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.44-9.mga5 + Revision: 679256 - Mageia 5 Mass Rebuild * Sat Nov 02 2013 tv <tv> 1.44-8.mga4 + Revision: 549073 - prevent packaging /etc/rpm/macros.fonts.0000 * Sat Nov 02 2013 tv <tv> 1.44-7.mga4 + Revision: 548776 - patch 0: kill useless scriptlets (we use file triggers) * Fri Oct 18 2013 umeabot <umeabot> 1.44-6.mga4 + Revision: 504514 - Mageia 4 Mass Rebuild * Fri Jan 11 2013 umeabot <umeabot> 1.44-5.mga3 + Revision: 350658 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Apr 07 2011 dmorgan <dmorgan> 1.44-4.mga1 + Revision: 81729 - Revert commit 77539, this breaks use of the macros ( cf libreoffice build) * Mon Mar 28 2011 ahmad <ahmad> 1.44-3.mga1 + Revision: 78632 - add the Group tag to the sub-packages + dmorgan <dmorgan> - Install the macro file at the righ place, tks Ahmad * Fri Feb 18 2011 dmorgan <dmorgan> 1.44-2.mga1 + Revision: 53496 - Use %%mkrel Fix group Remove fedora specific macros - imported package fontpackages * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.44-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jun 13 2010 Nicolas Mailhot <nim at fedoraproject dot org> - 1.44-1 â Cleanup release * Fri May 28 2010 Akira TAGOH <tagoh@redhat.com> - 1.42-2 â Get rid of binding="same" from l10n-font-template.conf (#578015) * Sat Feb 13 2010 Nicolas Mailhot <nim at fedoraproject dot org> - 1.42-1 â Update mailing list references * Tue Dec 01 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.41-1 â Bugfix release * Sat Nov 28 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.40-1 â Bugfix release * Mon Nov 23 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.35-1 * Sun Nov 22 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.34-1 â compare-repo-font-audit: make output more comprehensive * Sat Nov 21 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.33-1 â repo-font-audit: add ancilliary script to compare the results of two different runs - 1.32-1 â repo-font-audit: add test for core fonts direct use â repo-font-audit: replace font naming tests by a more comprehensive one (in a separate utility) â repo-font-audit: add fedora packager detection â repo-font-audit: parallelize (at the cost of more filesystem space use) â repo-font-audit: misc output and reliability fixes * Sun Nov 1 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.31-2 â add yum-utils to deps - 1.31-1 â Rework repo-font-audit messages based on packager feedback * Thu Oct 29 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.30-1 â Bugfix release * Tue Oct 27 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.29-1 â Split out tools as repo-font-audit requirements grow * Mon Oct 19 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.28-1 â Rework repo-font-audit to also generate individual packager nagmails * Mon Sep 28 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.27-1 â Brownpaper bag release Ã2 * Sun Sep 27 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.26-1 â Brownpaper bag release - 1.25-1 â Add short test summary to repo-font-audit * Sat Sep 26 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.24-1 â improve repo-font-audit (make WWS check more accurate, support file:// local repositoriesâ¦) * Sun Sep 13 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.23-1 â cleanups + add merging/remapping templates * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.22-2 â Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Jun 20 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.22-1 â workaround rpm eating end-of-line after %%_font_pkg calls â add script to audit font sanity of yum repositories * Tue Jun 2 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.21-1 â try to handle more corner naming cases in lua macro â expect some fallout if your spec uses weird naming * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-2 â Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 18 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.20-1 â global-ization * Mon Feb 16 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.19-3 â remove workaround and explicit version checks - 1.19-2 â workaround the fact koji is not ready yet - 1.19-1 â Add a fontconfig dep to -devel so font autoprovides work (bz#485702) â Drop duplicated group declarations, rpm has been fixed (bz#470714) â Add partial templates for fonts subpackages of non-font source packages â Make them noarch (http://fedoraproject.org/wiki/Features/NoarchSubpackages) * Thu Feb 5 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.18-1 â Panu wants autoprovides in rpm proper, drop it â Guidelines people are ok with multiple ownership of directories, make the fonts macro auto-own the directory font files are put into * Sat Jan 31 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.17-1 â Tweak and complete documentation ⤠Merge the autoprovides stuff and try to make it actually work * Tue Jan 27 2009 Richard Hughes <rhughes@redhat.com> - 1.16-2 - Add fontconfig.prov and macros.fontconfig so that we can automatically generate font provides for packages at build time. This lets us do some cool things with PackageKit in the future. * Wed Jan 22 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.16-1 * Thu Jan 15 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.15-1 â lua-ize the main macro * Wed Jan 14 2009 Nicolas Mailhot <nim at fedoraproject dot org> - 1.14-1 â½ Update for subpackage naming changes requested by FPC * Mon Dec 22 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.13-1 â Add another directory to avoid depending on unowned stuff ⤠use it to put the fontconfig examples in a better place * Sun Dec 21 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.12-2 â Change homepage * Fri Dec 19 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.12-1 ⺠Add another macro to allow building fontconfig without cycling * Wed Dec 10 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.11-1 ⺠Add actual fedorahosted references * Sun Nov 23 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.10-1 ⺠renamed to âfontpackagesâ * Fri Nov 14 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.9-1 ⺠fix and complete fontconfig doc - 1.8-1 ⺠simplify multi spec template: codify general case - 1.7-1 ⺠split fontconfig template documentation is separate files - 1.6-1 ⺠simplify spec templates - 1.5-1 ⺠use ".conf" extension for fontconfig templates - 1.4-1 ⺠small multi spec template fix * Wed Nov 12 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.3-1 ⺠remove trailing slashes in directory macros * Tue Nov 11 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.2-1 ⺠add fontconfig templates ⺠fix a few typos * Mon Nov 10 2008 Nicolas Mailhot <nim at fedoraproject dot org> - 1.0-1 ⺠initial release