Пакет fontpackages: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | # BEGIN SourceDeps(oneline): BuildRequires: perl(Font/TTF/Font.pm) perl(Unicode/UCD.pm) # END SourceDeps(oneline) %define fedora 21 # %%name or %%version is ahead of its definition. Predefining for rpm 4.0 compatibility. %define name fontpackages %define version 1.44 %global spectemplatedir %{_sysconfdir}/rpmdevtools/ %global ftcgtemplatedir %{_datadir}/fontconfig/templates/ # Use the same directory of the main package for subpackage licence and docs %global _docdir_fmt %{name} Name: fontpackages Version: 1.44 Release: alt4_15 Summary: Common directory and macro definitions used by font packages Group: System/Configuration/Other # Mostly means the scriptlets inserted via this package do not change the # license of the packages they're inserted in License: LGPLv3+ URL: http://fedoraproject.org/wiki/fontpackages Source0: http://fedorahosted.org/releases/f/o/%{name}/%{name}-%{version}.tar.xz Patch0: dnf.patch Patch1: %{name}-drop-fccache.patch BuildArch: noarch Source44: import.info %description This package contains the basic directory layout, spec templates, rpm macros and other materials used to create font packages. %package filesystem Group: System/Configuration/Other Summary: Directories used by font packages License: Public Domain %description filesystem This package contains the basic directory layout used by font packages, including the correct permissions for the directories. %package devel Group: System/Configuration/Other Summary: Templates and macros used to create font packages Requires: rpmdevtools Requires: fontconfig Requires: rpm-macros-fontpackages rpm-build-fonts xorg-font-encodings %description devel This package contains spec templates, rpm macros and other materials used to create font packages. %package tools Group: System/Configuration/Other Summary: Tools used to check fonts and font packages Requires: fontconfig fontforge Requires: curl make mutt1.5 %if 0%{fedora} >= 22 Requires: dnf-command(repoquery) Requires: createrepo_c %else Requires: yum-utils %endif # repo-font-audit script need to run fedoradev-pkgowners command # which is available on Fedora only and not on RHEL. %if 0%{?fedora} Requires: fedora-packager %endif %description tools This package contains tools used to check fonts and font packages. %prep %setup -q %patch0 -p1 %patch1 -p1 %if 0%{?rhel} sed -i 's|/usr/bin/fedoradev-pkgowners|""|g' bin/repo-font-audit %endif # Drop obosolete %defattr (#1047031) sed -i '/^%%defattr/d' rpm/macros.fonts %build sed -i "s|^DATADIR\([[:space:]]*\)\?=\(.*\)$|DATADIR=%{_datadir}/%{name}|g" \ bin/repo-font-audit bin/compare-repo-font-audit %install # Pull macros out of macros.fonts and emulate them during install for dir in fontbasedir fontconfig_masterdir \ fontconfig_confdir fontconfig_templatedir ; do export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" \ rpm/macros.fonts | %{__awk} '{ print $2 }')) done install -m 0755 -d %{buildroot}${_fontbasedir} \ %{buildroot}${_fontconfig_masterdir} \ %{buildroot}${_fontconfig_confdir} \ %{buildroot}${_fontconfig_templatedir} \ %{buildroot}%{spectemplatedir} \ %{buildroot}%{rpmmacrodir} \ %{buildroot}%{_datadir}/fontconfig/templates \ %{buildroot}/%_datadir/%{name} \ %{buildroot}%{_bindir} install -m 0644 -p spec-templates/*.spec %{buildroot}%{spectemplatedir} install -m 0644 -p fontconfig-templates/* %{buildroot}%{ftcgtemplatedir} install -m 0644 -p rpm/macros* %{buildroot}%{rpmmacrodir} install -m 0644 -p private/repo-font-audit.mk %{buildroot}/%{_datadir}/%{name} install -m 0755 -p private/core-fonts-report \ private/font-links-report \ private/fonts-report \ private/process-fc-query \ private/test-info %{buildroot}/%{_datadir}/%{name} install -m 0755 -p bin/* %{buildroot}%{_bindir} cat <<EOF > %{name}-%{version}.files %dir ${_fontbasedir} %dir ${_fontconfig_masterdir} %dir ${_fontconfig_confdir} %dir ${_fontconfig_templatedir} EOF rm -rf %buildroot%{spectemplatedir} %files devel %doc license.txt %doc readme.txt %dir %{ftcgtemplatedir} %{ftcgtemplatedir}/*conf %{ftcgtemplatedir}/*txt %changelog * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_15 - update to new release by fcimport * Tue Apr 07 2015 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_11 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_10 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_9 - update to new release by fcimport * Mon Aug 05 2013 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_8 - update to new release by fcimport * Tue Mar 12 2013 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_7 - update to new release by fcimport * Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_6 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_5 - update to new release by fcimport * Thu Jun 07 2012 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_4 - update to new release by fcimport * Wed Mar 21 2012 Igor Vlasenko <viy@altlinux.ru> 1.44-alt4_3 - rebuild to get rid of #27020 * Wed Feb 01 2012 Igor Vlasenko <viy@altlinux.ru> 1.44-alt3_3 - update to new release by fcimport * Mon Aug 08 2011 Igor Vlasenko <viy@altlinux.ru> 1.44-alt3_2 - added req: xorg-font-encodings * Thu Aug 04 2011 Igor Vlasenko <viy@altlinux.ru> 1.44-alt2_2 - added dependency on rpm-build-fonts * Mon Aug 01 2011 Igor Vlasenko <viy@altlinux.ru> 1.44-alt1_2 - new version |