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