nim 77c358
%global spectemplatedir %{_sysconfdir}/rpmdevtools/
nim 77c358
%global ftcgtemplatedir %{_datadir}/fontconfig/templates/
nim 77c358
%global rpmmacrodir     %{_sysconfdir}/rpm/
nim 683a08
nim 683a08
Name:    fontpackages
nim 0097e7
Version: 1.41
nim 92589c
Release: 1%{?dist}
nim 683a08
Summary: Common directory and macro definitions used by font packages
nim 683a08
nim 683a08
Group:     Development/System
nim 683a08
# Mostly means the scriptlets inserted via this package do not change the
nim 683a08
# license of the packages they're inserted in
nim 683a08
License:   LGPLv3+
nim 42b015
URL:       http://fedoraproject.org/wiki/fontpackages/
nim 638052
Source0:   http://fedorahosted.org/releases/f/o/%{name}/%{name}-%{version}.tar.xz
nim 63e596
nim 1251f1
BuildArch: noarch
nim 1251f1
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
nim 63e596
nim 683a08
nim 683a08
%description
nim 683a08
This package contains the basic directory layout, spec templates, rpm macros
nim 683a08
and other materials used to create font packages.
nim 683a08
nim 683a08
nim 683a08
%package filesystem
nim 683a08
Summary: Directories used by font packages
nim 683a08
License: Public Domain
nim 683a08
nim 683a08
%description filesystem
nim 683a08
This package contains the basic directory layout used by font packages,
nim 683a08
including the correct permissions for the directories.
nim 683a08
nim 683a08
nim 683a08
%package devel
nim 683a08
Summary: Templates and macros used to create font packages
nim 683a08
nim 63e596
Requires: rpmdevtools, %{name}-filesystem = %{version}-%{release}
nim 998db2
Requires: fontconfig
nim 683a08
nim 683a08
%description devel
nim 683a08
This package contains spec templates, rpm macros and other materials used to
nim 683a08
create font packages.
nim 683a08
nim 683a08
nim 2d2c2b
%package tools
nim 2d2c2b
Summary: Tools used to check fonts and font packages
nim 2d2c2b
nim 393368
Requires: fontconfig, fontforge
nim 7a6fb3
Requires: curl, make, mutt
nim 7a6fb3
Requires: fedora-packager, rpmlint, yum-utils
nim 2d2c2b
nim 2d2c2b
%description tools
nim 2d2c2b
This package contains tools used to check fonts and font packages
nim 2d2c2b
nim 2d2c2b
nim 683a08
%prep
nim 683a08
%setup -q
nim 683a08
nim 683a08
nim 683a08
%build
nim 683a08
nim 52ef93
for file in bin/repo-font-audit bin/compare-repo-font-audit ; do
nim 92589c
sed -i "s|^DATADIR\([[:space:]]*\)\?=\(.*\)$|DATADIR=%{_datadir}/%{name}|g" \
nim 52ef93
  $file
nim 52ef93
done
nim 683a08
nim 683a08
%install
nim 683a08
rm -fr %{buildroot}
nim 683a08
nim 683a08
# Pull macros out of macros.fonts and emulate them during install
nim 2e47af
for dir in fontbasedir        fontconfig_masterdir \
nim 2e47af
           fontconfig_confdir fontconfig_templatedir ; do
nim 683a08
  export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" \
nim 68a710
    rpm/macros.fonts | %{__awk} '{ print $2 }'))
nim 683a08
done
nim 683a08
nim 683a08
install -m 0755 -d %{buildroot}${_fontbasedir} \
nim 2e47af
                   %{buildroot}${_fontconfig_masterdir} \
nim 683a08
                   %{buildroot}${_fontconfig_confdir} \
nim 683a08
                   %{buildroot}${_fontconfig_templatedir} \
nim 683a08
                   %{buildroot}%{spectemplatedir} \
nim 46b94f
                   %{buildroot}%{rpmmacrodir} \
nim 86cf58
                   %{buildroot}%{_datadir}/fontconfig/templates \
nim 92589c
                   %{buildroot}/%_datadir/%{name} \
nim 86cf58
                   %{buildroot}%{_bindir}
nim 92589c
install -m 0644 -p spec-templates/*.spec       %{buildroot}%{spectemplatedir}
nim 92589c
install -m 0644 -p fontconfig-templates/*      %{buildroot}%{ftcgtemplatedir}
nim 92589c
install -m 0644 -p rpm/macros*                 %{buildroot}%{rpmmacrodir}
nim 92589c
install -m 0644 -p private/repo-font-audit.mk  %{buildroot}/%{_datadir}/%{name}
nim 92589c
install -m 0755 -p private/core-fonts-report \
nim 92589c
                   private/font-links-report \
nim 92589c
                   private/fonts-report \
nim 52ef93
                   private/process-fc-query \
nim 52ef93
                   private/test-info           %{buildroot}/%{_datadir}/%{name}
nim 92589c
install -m 0755 -p bin/*                       %{buildroot}%{_bindir}
nim 683a08
nim 683a08
cat <<EOF > %{name}-%{version}.files
nim 683a08
%defattr(0644,root,root,0755)
nim 683a08
%dir ${_fontbasedir}
nim 2e47af
%dir ${_fontconfig_masterdir}
nim 683a08
%dir ${_fontconfig_confdir}
nim 683a08
%dir ${_fontconfig_templatedir}
nim 683a08
EOF
nim 683a08
nim 683a08
%clean
nim 683a08
rm -fr %{buildroot}
nim 683a08
nim 683a08
nim 683a08
%files filesystem -f %{name}-%{version}.files
nim 46b94f
%defattr(0644,root,root,0755)
nim 46b94f
%dir %{_datadir}/fontconfig
nim 2d2c2b
nim 683a08
%files devel
nim 683a08
%defattr(0644,root,root,0755)
nim 46b94f
%doc license.txt readme.txt
nim 683a08
%config(noreplace) %{spectemplatedir}/*.spec
nim 683a08
%config(noreplace) %{rpmmacrodir}/macros*
nim 46b94f
%dir %{ftcgtemplatedir}
nim 68a710
%{ftcgtemplatedir}/*conf
nim 68a710
%{ftcgtemplatedir}/*txt
nim 683a08
nim 2d2c2b
%files tools
nim 2d2c2b
%defattr(0644,root,root,0755)
nim 92589c
%doc license.txt readme.txt
nim 92589c
%dir %{_datadir}/%{name}
nim 92589c
%{_datadir}/%{name}/repo-font-audit.mk
nim 92589c
%defattr(0755,root,root,0755)
nim 92589c
%{_datadir}/%{name}/core-fonts-report
nim 92589c
%{_datadir}/%{name}/font-links-report
nim 92589c
%{_datadir}/%{name}/fonts-report
nim 92589c
%{_datadir}/%{name}/process-fc-query
nim 52ef93
%{_datadir}/%{name}/test-info
nim 92589c
%{_bindir}/*
nim 683a08
nim 683a08
%changelog
nim 0097e7
* Tue Dec 01 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 0097e7
- 1.41-1
nim 0097e7
— Bugfix release
nim 0097e7
nim 393368
* Sat Nov 28 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 7a6fb3
- 1.40-1
nim c9851d
— Bugfix release
nim 393368
nim 71c160
* Mon Nov 23 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 71c160
- 1.35-1
nim 71c160
nim 71c160
* Sun Nov 22 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 14b818
- 1.34-1
nim 14b818
— compare-repo-font-audit: make output more comprehensive
nim 14b818
nim 92589c
* Sat Nov 21 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 52ef93
- 1.33-1
nim 52ef93
— repo-font-audit: add ancilliary script to compare the results of two
nim 52ef93
  different runs
nim 92589c
- 1.32-1
nim 92589c
— repo-font-audit: add test for core fonts direct use
nim 92589c
— repo-font-audit: replace font naming tests by a more comprehensive one
nim 92589c
  (in a separate utility)
nim 92589c
— repo-font-audit: add fedora packager detection
nim 92589c
— repo-font-audit: parallelize (at the cost of more filesystem space use)
nim 92589c
— repo-font-audit: misc output and reliability fixes
nim 92589c
nim 92589c
* Sun Nov 1 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim c28337
- 1.31-2
nim c28337
— add yum-utils to deps
nim 998db2
- 1.31-1
nim 998db2
— Rework repo-font-audit messages based on packager feedback
nim 998db2
nim b389b8
* Thu Oct 29 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim b389b8
- 1.30-1
nim b389b8
— Bugfix release
nim b389b8
nim 2d2c2b
* Tue Oct 27 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 2d2c2b
- 1.29-1
nim 2d2c2b
— Split out tools as repo-font-audit requirements grow
nim 2d2c2b
nim 7beabd
* Mon Oct 19 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 7beabd
- 1.28-1
nim 7beabd
— Rework repo-font-audit to also generate individual packager nagmails
nim 7beabd
nim be3120
* Mon Sep 28 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim be3120
- 1.27-1
nim be3120
— Brownpaper bag release ×2
nim be3120
nim 4d32c7
* Sun Sep 27 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim d1c166
- 1.26-1
nim d1c166
— Brownpaper bag release
nim 4d32c7
- 1.25-1
nim 4d32c7
– Add short test summary to repo-font-audit
nim 4d32c7
nim edd4a0
* Sat Sep 26 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim edd4a0
- 1.24-1
nim edd4a0
– improve repo-font-audit (make WWS check more accurate, support file://
nim edd4a0
  local repositories…)
nim edd4a0
nim 638052
* Sun Sep 13 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 638052
- 1.23-1
nim 638052
— cleanups + add merging/remapping templates
nim 638052
nim 638052
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
nim 638052
- 1.22-2
nim 638052
— Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating 01757c
nim 86cf58
* Sat Jun 20 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 86cf58
- 1.22-1
nim 86cf58
– workaround rpm eating end-of-line after %%_font_pkg calls
nim 86cf58
– add script to audit font sanity of yum repositories
nim 86cf58
nim 1aa2c5
* Tue Jun 2 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 1aa2c5
- 1.21-1
nim 1aa2c5
— try to handle more corner naming cases in lua macro – expect some fallout
nim 1aa2c5
  if your spec uses weird naming
nim 1aa2c5
nim 1aa2c5
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
nim 1aa2c5
- 1.20-2
nim 1aa2c5
— Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating df9652
nim 177707
* Wed Feb 18 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 177707
- 1.20-1
nim 177707
— global-ization
nim 177707
nim 63e596
* Mon Feb 16 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 1251f1
- 1.19-3
nim 1251f1
— remove workaround and explicit version checks
nim 249909
- 1.19-2
nim 249909
— workaround the fact koji is not ready yet
nim 63e596
- 1.19-1
nim 63e596
— Add a fontconfig dep to -devel so font autoprovides work (bz#485702)
nim 63e596
— Drop duplicated group declarations, rpm has been fixed (bz#470714)
nim 63e596
— Add partial templates for fonts subpackages of non-font source packages
nim 63e596
— Make them noarch (http://fedoraproject.org/wiki/Features/NoarchSubpackages)
nim 63e596
nim 68a710
* Thu Feb 5 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 68a710
- 1.18-1
nim 68a710
✓ Panu wants autoprovides in rpm proper, drop it
nim 68a710
✓ Guidelines people are ok with multiple ownership of directories, make the
nim 68a710
  fonts macro auto-own the directory font files are put into
nim 68a710
nim 68a710
* Sat Jan 31 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 68a710
- 1.17-1
nim 68a710
⁇ Tweak and complete documentation
nim 68a710
☤ Merge the autoprovides stuff and try to make it actually work
nim 68a710
Richard Hughes b5363e
* Tue Jan 27 2009 Richard Hughes <rhughes@redhat.com>
Richard Hughes b5363e
- 1.16-2
Richard Hughes b5363e
- Add fontconfig.prov and macros.fontconfig so that we can automatically
Richard Hughes b5363e
  generate font provides for packages at build time.
Richard Hughes b5363e
  This lets us do some cool things with PackageKit in the future.
Richard Hughes b5363e
nim 896186
* Wed Jan 22 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 896186
- 1.16-1
nim 896186
nim 53e857
* Thu Jan 15 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 53e857
- 1.15-1
nim 53e857
➜ lua-ize the main macro
nim 53e857
nim 218640
* Wed Jan 14 2009 Nicolas Mailhot <nim at fedoraproject dot org>
nim 53e857
- 1.14-1
nim 218640
➽ Update for subpackage naming changes requested by FPC
nim 218640
nim 46b94f
* Mon Dec 22 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 46b94f
- 1.13-1
nim 46b94f
⟃ Add another directory to avoid depending on unowned stuff
nim 46b94f
❤ use it to put the fontconfig examples in a better place
nim 218640
nim 42b015
* Sun Dec 21 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 42b015
- 1.12-2
nim 42b015
⌂ Change homepage
nim 218640
nim 2e47af
* Fri Dec 19 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 2e47af
- 1.12-1
nim 2e47af
☺ Add another macro to allow building fontconfig without cycling
nim 218640
nim 683a08
* Wed Dec 10 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 683a08
- 1.11-1
nim 683a08
☺ Add actual fedorahosted references
nim 218640
nim 683a08
* Sun Nov 23 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 683a08
- 1.10-1
nim 683a08
☺ renamed to “fontpackages”
nim 218640
nim 683a08
* Fri Nov 14 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 683a08
- 1.9-1
nim 683a08
☺ fix and complete fontconfig doc
nim 683a08
- 1.8-1
nim 683a08
☺ simplify multi spec template: codify general case
nim 683a08
- 1.7-1
nim 683a08
☺ split fontconfig template documentation is separate files
nim 683a08
- 1.6-1
nim 683a08
☺ simplify spec templates
nim 683a08
- 1.5-1
nim 683a08
☺ use ".conf" extension for fontconfig templates
nim 683a08
- 1.4-1
nim 683a08
☺ small multi spec template fix
nim 683a08
nim 683a08
* Wed Nov 12 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 683a08
- 1.3-1
nim 683a08
☺ remove trailing slashes in directory macros
nim 683a08
nim 683a08
* Tue Nov 11 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 683a08
- 1.2-1
nim 683a08
☺ add fontconfig templates
nim 683a08
☺ fix a few typos
nim 683a08
nim 683a08
* Mon Nov 10 2008 Nicolas Mailhot <nim at fedoraproject dot org>
nim 683a08
- 1.0-1
nim 683a08
☺ initial release