Package ispell-ru-rk: 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 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | %define ispelldir %_libdir/ispell %define ispell_version 3.2.06 %define aspell_version 0.60.0 Name: ispell-ru-rk Version: 1.1 Release: alt5.qa1 Summary: Russian dictionary for ispell -- KOI8-R encoding Summary(ru_RU.UTF-8): Словарь русского языка для ispell -- кодировка KOI8-R License: GPL Group: System/Internationalization Packager: Sergey Vlasov <vsu@altlinux.ru> # Note: ispell and aspell hash files are architecture-dependent. # Do not put BuildArch: noarch here. Source0: ispell-rus-1.1.tar.bz2 Source2: russianw.aff Source3: ispell-rus-aspellfiles-0.3.tar.bz2 Source100: %name.alternatives Source101: %name-cp1251.alternatives Source102: aspell-ru-rk.alternatives PreReq: alternatives >= 0.0.6 Requires: ispell >= %ispell_version Provides: ispell-dictionary, ispell-ru = %version Obsoletes: russian, ispell-rus, ispell-russian, rispell, ispell-ru # Automatically added by buildreq on Sat Nov 22 2003 BuildRequires: aspell ispell libalternatives-devel BuildPreReq: ispell >= %ispell_version BuildPreReq: aspell >= %aspell_version # The real ispell is required - not the aspell-provided emulation. BuildConflicts: aspell-ispell %package cp1251 Summary: Russian dictionary for ispell -- CP1251 encoding Summary(ru_RU.UTF-8): Словарь русского языка для ispell -- кодировка CP1251 Group: System/Internationalization PreReq: alternatives >= 0.0.6 Requires: ispell >= %ispell_version Provides: ispell-dictionary, ispell-ru-cp1251 = %version Obsoletes: irussian, ispell-rus, ispell-russian, rispell, ispell-ru-cp1251 %package -n aspell-ru-rk Summary: Russian dictionary for GNU Aspell Summary(ru_RU.UTF-8): Словарь русского языка для GNU Aspell Group: System/Internationalization PreReq: alternatives >= 0.0.6 Requires: aspell >= %aspell_version Provides: aspell-dictionary, aspell-ru = %version Obsoletes: aspell-ru %description Russian dictionary for ispell in KOI8-R encoding, created by Vladimir Roganov and Konstantin Knizhnik. This dictionary is installed under the name "russian-rk". Default Russian dictionary in KOI8-R encoding (with the name "russian") is selected using the alternatives subsystem. %description -l ru_RU.UTF-8 Словарь русского языка для ispell в кодировке KOI8-R, подготовленный Владимиром Рогановым и Константином Книжником. Этот словарь устанавливается под именем "russian-rk". Словарь для проверки русских текстов в кодировке KOI8-R по умолчанию (с именем "russian") выбирается с помощью подсистемы альтернатив. %description cp1251 Russian dictionary for ispell in CP1251 encoding, created by Vladimir Roganov and Konstantin Knizhnik. This dictionary is installed under the name "russianw-rk". Default Russian dictionary in CP1251 encoding (with the name "russianw") is selected using the alternatives subsystem. %description cp1251 -l ru_RU.UTF-8 Словарь русского языка для ispell в кодировке CP1251, подготовленный Владимиром Рогановым и Константином Книжником. Этот словарь устанавливается под именем "russianw-rk". Словарь для проверки русских текстов в кодировке CP1251 по умолчанию (с именем "russianw") выбирается с помощью подсистемы альтернатив. %description -n aspell-ru-rk Russian dictionary for use with GNU Aspell. The word list for this dictionary was created by Vladimir Roganov and Konstantin Knizhnik. This dictionary is installed under the name "ru-rk". Default Russian dictionary for GNU Aspell (with the name "ru") is selected using the alternatives subsystem. %description -n aspell-ru-rk -l ru_RU.UTF-8 Словарь русского языка для GNU Aspell на основе списка слов, подготовленного Владимиром Рогановым и Константином Книжником. Этот словарь устанавливается под именем "ru-rk". Словарь для проверки русских текстов по умолчанию (с именем "ru") выбирается с помощью подсистемы альтернатив. %prep %setup -n ispell-rus-%version -a 3 cp -a %SOURCE2 russianw.aff %build # ispell, KOI8-R make all # ispell, CP1251 iconv -f koi8-r -t cp1251 <russian.sml >russianw.sml buildhash russianw.sml russianw.aff russianw.hash pushd docs for f in *.russian; do iconv -f koi8-r -t cp1251 <"$f" >"$f"w done popd # aspell ispell -d ./russian.hash -e <russian.sml | \ tr ' ' '\n' | grep -v '^$' | \ aspell --lang=ru-rk create master ./ru-rk.rws %install %__mkdir_p $RPM_BUILD_ROOT%ispelldir %__cp -avf russian.aff $RPM_BUILD_ROOT%ispelldir/russian-rk.aff %__cp -avf russian.hash $RPM_BUILD_ROOT%ispelldir/russian-rk.hash %__cp -avf russianw.aff $RPM_BUILD_ROOT%ispelldir/russianw-rk.aff %__cp -avf russianw.hash $RPM_BUILD_ROOT%ispelldir/russianw-rk.hash %__mkdir_p $RPM_BUILD_ROOT%_libdir/aspell %__mkdir_p $RPM_BUILD_ROOT%_datadir/aspell %__install -p -m 644 ru-rk.rws $RPM_BUILD_ROOT%_libdir/aspell %__install -p -m 644 ru-rk.multi $RPM_BUILD_ROOT%_libdir/aspell %__install -p -m 644 russian-rk.alias $RPM_BUILD_ROOT%_libdir/aspell %__install -p -m 644 ru-rk.dat $RPM_BUILD_ROOT%_datadir/aspell %__install -p -m 644 ru-rk_phonet.dat $RPM_BUILD_ROOT%_datadir/aspell %__install -d $RPM_BUILD_ROOT%_altdir %__install -p -m 644 %SOURCE100 $RPM_BUILD_ROOT%_altdir/%name %__install -p -m 644 %SOURCE101 $RPM_BUILD_ROOT%_altdir/%name-cp1251 %__install -p -m 644 %SOURCE102 $RPM_BUILD_ROOT%_altdir/aspell-ru-rk %files %doc docs/Readme.russian %doc docs/copyright %doc docs/cyrispell %doc docs/readme.makedict %doc docs/INSTALL.russian %_altdir/%name %ispelldir/russian-rk.* %files cp1251 %doc docs/Readme.russianw %doc docs/copyright %doc docs/cyrispell %doc docs/readme.makedict %doc docs/INSTALL.russianw %_altdir/%name-cp1251 %ispelldir/russianw-rk.* %files -n aspell-ru-rk %doc docs/Readme.russian %doc docs/copyright %doc LICENSE.phonet %_altdir/aspell-ru-rk %_libdir/aspell/* %_datadir/aspell/* %changelog * Tue Feb 09 2010 Repocop Q. A. Robot <repocop@altlinux.org> 1.1-alt5.qa1 - NMU (by repocop): the following fixes applied: * obsolete-call-in-post-alternatives-0.3 for aspell-ru-rk * obsolete-call-in-post-alternatives-0.3 for ispell-ru-rk-cp1251 * obsolete-call-in-post-alternatives-0.3 for ispell-ru-rk * postclean-05-filetriggers for spec file * Thu Jul 29 2004 Sergey Vlasov <vsu@altlinux.ru> 1.1-alt5 - Rebuild for aspell 0.60.0 (new dictionary format). * Sun Nov 23 2003 Sergey Vlasov <vsu@altlinux.ru> 1.1-alt4 - Updated for new aspell (no more pspell, different dictionary names). - Updated BuildRequires. - Spec file cleanup. - Added Russian descriptions. * Tue May 06 2003 Stanislav Ievlev <inger@altlinux.ru> 1.1-alt3.1 - move to new alternatives scheme * Tue Nov 19 2002 AEN <aen@altlinux.ru> 1.1-alt3 - rebuilt * Tue Apr 02 2002 Sergey Vlasov <vsu@altlinux.ru> 1.1-alt2 - Added aspell phonetic rules file from Andrey Grozin. - Fixed bugs in %%preun scripts (alternatives were lost after upgrading). - Addef %%triggerpostun to clean up after my %%preun bugs in the previous version :-( * Sun Dec 02 2001 Sergey Vlasov <vsu@altlinux.ru> 1.1-alt1 - Spec file cleanup. - Package renamed to ispell-ru-rk (rk = Roganov & Knizhnik). - Use update-alternatives for choosing the dictionary. - Build ispell-cp1251 and aspell dictionaries from the same source. - Do not set BuildArch: noarch because hash files really are architecture-dependent; set it to %%_build_arch instead. * Wed Jun 13 2001 AEN <aen@logic.ru> 1.1-ipl4mdk - Provides: ispell-dictionary * Thu Feb 15 2001 AEN <aen@logic.ru> - back to old style spec * Wed Dec 06 2000 AEN <aen@logic.ru> - spec fix - build for RE * Sun Oct 8 2000 AEN <aen@logic.ru> - recoding from KOI8-R to 1251 * Mon Dec 06 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - added Obsoletes: for easier installation over other rpms of same language - added Requires: locales-ru for proper pre-selection by DrakX - changed name to ispell-ru for standardization * Thu Oct 21 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - rebuild with ispell-3.1.20-7mdk (which uses a MASKBITS of 64) * Sun Oct 16 1999 - David BAUDENS <baudens@mandrakesoft.com> - Fix incorrect Path in path #0 (ispell-rus-prefix.patch.bz2) - Change group "Utilities/Text" to "Applications/Text" (rpmlint lament) * Tue Jul 13 1999 Thierry Vignaud <tvignaud@mandrakesoft.com> - bzip2 source * Wed Jul 07 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - First version contribued by IPLabs (http://www.iplabs.ru/Linux) - Rewriting the .spec. |