nim 77c358
%global spectemplatedir %{_sysconfdir}/rpmdevtools/
nim 77c358
%global ftcgtemplatedir %{_datadir}/fontconfig/templates/
Ville Skyttä 4817d2
%global rpmmacrodir     %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d/)
nim 683a08
Zbigniew Jędrzejewski-Szmek 7490e2
# Use the same directory of the main package for subpackage licence and docs
Zbigniew Jędrzejewski-Szmek 7490e2
%global _docdir_fmt %{name}
Zbigniew Jędrzejewski-Szmek 7490e2
nim 683a08
Name:    fontpackages
nim 6d12e5
Version: 1.44
Dennis Gilmore 30c0b6
Release: 17%{?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 c698e7
URL:       http://fedoraproject.org/wiki/fontpackages
nim 638052
Source0:   http://fedorahosted.org/releases/f/o/%{name}/%{name}-%{version}.tar.xz
Parag Nemade e2b7c8
Patch0:    dnf.patch
Akira TAGOH fe174a
Patch1:    %{name}-drop-fccache.patch
nim 63e596
nim 1251f1
BuildArch: noarch
nim b5974e
nim 63e596
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
Parag Nemade e2b7c8
Requires: rpmlint
Dan Horák c66985
%if 0%{?fedora} >= 22
Parag Nemade e2b7c8
Requires: dnf-command(repoquery)
Parag Nemade e2b7c8
Requires: createrepo_c
Parag Nemade e2b7c8
%else
Parag Nemade e2b7c8
Requires: yum-utils
Parag Nemade e2b7c8
%endif
Parag Nemade 8bab6f
Parag Nemade 8bab6f
# repo-font-audit script need to run fedoradev-pkgowners command
Parag Nemade 8bab6f
# which is available on Fedora only and not on RHEL.
Parag Nemade 8bab6f
%if 0%{?fedora}
Parag Nemade 8bab6f
Requires: fedora-packager
Parag Nemade 8bab6f
%endif
nim 2d2c2b
nim 2d2c2b
%description tools
Zbigniew Jędrzejewski-Szmek 7490e2
This package contains tools used to check fonts and font packages.
nim 2d2c2b
nim 2d2c2b
nim 683a08
%prep
nim 683a08
%setup -q
Parag Nemade e2b7c8
%patch0 -p1
Akira TAGOH fe174a
%patch1 -p1
Parag Nemade e2b7c8
Parag Nemade 8bab6f
%if 0%{?rhel}
Parag Nemade 8bab6f
sed -i 's|/usr/bin/fedoradev-pkgowners|""|g' bin/repo-font-audit
Parag Nemade 8bab6f
%endif
nim 683a08
Zbigniew Jędrzejewski-Szmek cd34a2
# Drop obosolete %defattr (#1047031)
Zbigniew Jędrzejewski-Szmek cd34a2
sed -i '/^%%defattr/d' rpm/macros.fonts
Zbigniew Jędrzejewski-Szmek cd34a2
nim 683a08
%build
nim 92589c
sed -i "s|^DATADIR\([[:space:]]*\)\?=\(.*\)$|DATADIR=%{_datadir}/%{name}|g" \
Zbigniew Jędrzejewski-Szmek 7490e2
  bin/repo-font-audit bin/compare-repo-font-audit
nim 683a08
nim 683a08
%install
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
%dir ${_fontbasedir}
nim 2e47af
%dir ${_fontconfig_masterdir}
nim 683a08
%dir ${_fontconfig_confdir}
nim 683a08
%dir ${_fontconfig_templatedir}
nim 683a08
EOF
nim 683a08
nim 683a08
%files filesystem -f %{name}-%{version}.files
nim 46b94f
%dir %{_datadir}/fontconfig
nim 2d2c2b
nim 683a08
%files devel
Zbigniew Jędrzejewski-Szmek 7490e2
%license license.txt
Zbigniew Jędrzejewski-Szmek 7490e2
%doc readme.txt
nim 683a08
%config(noreplace) %{spectemplatedir}/*.spec
Ralf Corsépius 2e9d16
%{rpmmacrodir}/macros*
nim 46b94f
%dir %{ftcgtemplatedir}
nim 68a710
%{ftcgtemplatedir}/*conf
nim 68a710
%{ftcgtemplatedir}/*txt
nim 683a08
nim 2d2c2b
%files tools
Zbigniew Jędrzejewski-Szmek 7490e2
%license license.txt
Zbigniew Jędrzejewski-Szmek 7490e2
%doc readme.txt
nim 92589c
%dir %{_datadir}/%{name}
nim 92589c
%{_datadir}/%{name}/repo-font-audit.mk
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
Dennis Gilmore 30c0b6
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.44-17
Dennis Gilmore 30c0b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Dennis Gilmore 30c0b6
Dan Horák c66985
* Thu Jan 21 2016 Dan Horák <dan[at]danny.cz> - 1.44-16
Dan Horák c66985
- fix conditional
Dan Horák c66985
Akira TAGOH fe174a
* Mon Sep  7 2015 Akira TAGOH <tagoh@redhat.com> - 1.44-15
Akira TAGOH fe174a
- Drop fc-cache from %%post/un in rpm macro.
Akira TAGOH fe174a
Parag Nemade e2b7c8
* Tue Aug 18 2015 Parag Nemade <pnemade AT fedoraproject DOT org> - 1.44-14
Parag Nemade e2b7c8
- Port yum to dnf patch by Michael Mráka (rh#1156554)
Parag Nemade e2b7c8
Dennis Gilmore f34669
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.44-13
Dennis Gilmore f34669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore f34669
Zbigniew Jędrzejewski-Szmek cd34a2
* Fri May 29 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.44-12
Zbigniew Jędrzejewski-Szmek cd34a2
- Drop obsolete defattr stanzas (#1047031)
Zbigniew Jędrzejewski-Szmek cd34a2
Ville Skyttä 4817d2
* Wed Mar  4 2015 Ville Skyttä <ville.skytta@iki.fi> - 1.44-11
Ville Skyttä 4817d2
- Install macros to %%{_rpmconfigdir}/macros.d where available (#1074274)
Ville Skyttä 4817d2
- Fix bogus date in %%changelog
Ville Skyttä 4817d2
Dennis Gilmore 4b864b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.44-10
Dennis Gilmore 4b864b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore 4b864b
Dennis Gilmore a4c1c9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.44-9
Dennis Gilmore a4c1c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore a4c1c9
Petr Písař 825726
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.44-8
Petr Písař 825726
- Perl 5.18 rebuild
Petr Písař 825726
Ralf Corsépius 2e9d16
* Sat Mar 09 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.44-7
Ralf Corsépius 2e9d16
- Remove %%config from %%{_sysconfdir}/rpm/macros.*
Ralf Corsépius 2e9d16
  (https://fedorahosted.org/fpc/ticket/259).
Ralf Corsépius 2e9d16
Dennis Gilmore 9be76c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.44-6
Dennis Gilmore 9be76c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore 9be76c
Dennis Gilmore debfdf
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.44-5
Dennis Gilmore debfdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore debfdf
Parag Nemade 8bab6f
* Tue May 22 2012 Parag <panemade AT fedoraproject DOT org> - 1.44-4
Parag Nemade 8bab6f
- Resolves:rh#761409:remove fedora-packager dependency from -tools in RHEL
Parag Nemade 8bab6f
Dennis Gilmore 722714
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.44-3
Dennis Gilmore 722714
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore 722714
Dennis Gilmore 675726
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.44-2
Dennis Gilmore 675726
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore 675726
nim 6d12e5
* Sun Jun 13 2010 Nicolas Mailhot <nim at fedoraproject dot org>
nim 6d12e5
- 1.44-1
nim 6d12e5
— Cleanup release
nim 6d12e5
Akira TAGOH 9309b8
* Fri May 28 2010 Akira TAGOH <tagoh@redhat.com>
Akira TAGOH 9309b8
- 1.42-2
Akira TAGOH 9309b8
— Get rid of binding="same" from l10n-font-template.conf (#578015)
Akira TAGOH 9309b8
nim c698e7
* Sat Feb 13 2010 Nicolas Mailhot <nim at fedoraproject dot org>
nim c698e7
- 1.42-1
nim c698e7
— Update mailing list references
nim c698e7
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
Ville Skyttä 4817d2
* Wed Jan 21 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