Blame SPECS/fontpackages.spec

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