Blame SPECS/fontpackages.spec

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