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