Package stardict: 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 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | Name: stardict Version: 3.0.6 Release: alt1 Summary: StarDict dictionary # The entire source code is GPLv3+ except # dict/src/lib/ctype-{uca,utf8}.cpp which is GPLv2+ # dict/src/lib/ctype-uca.cpp which is GPLv2+ # dict/src/eggaccelerators.{h,cpp which is GPLv2+ # dict/stardict-plugins/stardict-wordnet-plugin/tenis.h is CPL # refer to README License: GPLv3+ and GPLv2+ and CPL Group: System/Internationalization URL: http://stardict-4.sourceforge.net # http://stardict-3.googlecode.com/files/%name-%version.tar.bz2 Source: %name-%version.tar Source3: docklet_normal.png Source4: docklet_scan.png Source5: docklet_stop.png Source6: slovnyktodict.awk Source7: mueller2stardict.sh Patch1: stardict-3.0.3-alt-dsl2dict.patch Patch2: stardict-3.0.3-alt-linkage.patch Patch3: stardict-3.0.4-alt-desktop.patch Patch4: stardict-3.0.5-alt-tabfile.patch Provides: %name-common = %version Obsoletes: %name-common < %version Provides: %name-gtk = %version Obsoletes: %name-gtk < %version Provides: %name-gnome = %version Obsoletes: %name-gnome < %version %def_disable dictdotcn # Automatically added by buildreq on Mon May 28 2012 # optimized out: docbook-dtds fontconfig fontconfig-devel glib2-devel gnome-doc-utils-xslt libICE-devel libX11-devel libatk-devel libcairo-devel libfreetype-devel libgdk-pixbuf libgdk-pixbuf-devel libgio-devel libgpg-error libgtk+2-devel libpango-devel libstdc++-devel libwayland-client libwayland-server perl-Encode perl-XML-Parser pkg-config python-base python-module-libxml2 python-modules python-modules-encodings xml-common xml-utils xorg-xproto-devel xsltproc zlib-devel BuildRequires: gcc-c++ gnome-doc-utils hardlink imake intltool libSM-devel libenchant-devel libespeak-devel libgucharmap7-devel libmysqlclient-devel libsigc++2-devel libxml2-devel xorg-cf-files %description StarDict is a Cross-Platform and international dictionary written in Gtk2. It has powerful features such as glob-style pattern matching, scan selection, and fuzzy matching. %package tools Summary: Tools for making dictionary files for stardict Group: Development/Other %description tools This package contains various tools for converting dictionaries in stardict format. %package plugin-espeak Summary: Espeak plugin Group: System/Internationalization Requires: %name = %version-%release %description plugin-espeak This package contains espeak plugin for stardict. %package plugin-gucharmap Summary: Gucharmap plugin Group: System/Internationalization Requires: %name = %version-%release %description plugin-gucharmap This package contains gucharmap plugin for stardict. %package plugin-spell Summary: Spell plugin Group: System/Internationalization Requires: %name = %version-%release %description plugin-spell This package contains spell plugin for stardict. %package plugin-dictdotcn Summary: dictdotcn plugin Group: System/Internationalization Requires: %name = %version-%release %description plugin-dictdotcn This package contains dictdotcn netdict plugin for stardict, querying dict.cn via network. Warning: this package is insecure. Use at your own risk. %add_optflags -std=gnu++11 %prep %setup # remove bundled sigc++ header files rm -r dict/src/sigc++* sed -i '/src\/sigc++/d' dict/configure.ac sed -i 's/ sigc++ sigc++config//' dict/src/Makefile.am # remove bundled libtool files rm */m4/{lt*,libtool}.m4 dict/m4/{gnome-doc-utils,intltool}.m4 # remove use of gconf macros sed -i '/AM_GCONF_SOURCE_2/d' dict/configure.ac %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 install -pm644 %_sourcedir/docklet_*.png dict/src/pixmaps/ %build %autoreconf export CPPFLAGS="$(getconf LFS_CFLAGS)" %configure \ --enable-spell \ --enable-gucharmap \ --enable-espeak \ --disable-gnome-support \ --disable-festival \ --disable-man \ --disable-updateinfo \ --disable-advertisement \ --disable-gpe-support \ --disable-maemo-support \ %{subst_enable dictdotcn} \ # %make_build %install %makeinstall_std scrollkeeper_localstate_dir=%buildroot%_var/lib/scrollkeeper find %buildroot%_libdir -name '*.la' -delete cd tools/src install -pm755 *2dic stardict-dict-update stardict-verify \ stardict-repair stardict2txt tabfile \ %buildroot%_bindir/ install -pm755 mova %buildroot%_bindir/mova2dic cd - >/dev/null install -pm755 %_sourcedir/{slovnyktodict.awk,mueller2stardict.sh} \ %buildroot%_bindir/ %find_lang --with-gnome %name hardlink -cv %buildroot%_datadir %set_verify_elf_method strict,lint=relaxed %files -f %name.lang %_bindir/%name %_datadir/%name %_pixmapsdir/* %_desktopdir/%name.desktop %dir %_libdir/%name %dir %_libdir/%name/plugins %_libdir/%name/plugins/stardict_html_parsedata.* %_libdir/%name/plugins/stardict_powerword_parsedata.* %_libdir/%name/plugins/stardict_wiki_parsedata.* %_libdir/%name/plugins/stardict_xdxf_parsedata.* %_libdir/%name/plugins/stardict_qqwry.* %_libdir/%name/plugins/stardict_wordnet.* %_libdir/%name/plugins/stardict_wordnet_parsedata.* %_man1dir/* %doc dict/AUTHORS dict/ChangeLog %doc dict/doc/{StarDictFileFormat,FAQ,HACKING,HowToCreateDictionary} %files tools %_bindir/* %exclude %_bindir/%name %doc tools/AUTHORS tools/ChangeLog tools/README tools/src/example.ifo %files plugin-espeak %_libdir/%name/plugins/stardict_espeak.* %files plugin-gucharmap %_libdir/%name/plugins/stardict_gucharmap.* %files plugin-spell %_libdir/%name/plugins/stardict_spell.* %if_enabled dictdotcn %files plugin-dictdotcn %_libdir/%name/plugins/stardict_dictdotcn.* %endif %changelog * Thu Nov 16 2017 Fr. Br. George <george@altlinux.ru> 3.0.6-alt1 - 3.0.5 -> 3.0.6 * Tue Oct 20 2015 Anton V. Boyarshinov <boyarsh@altlinux.ru> 3.0.5-alt1.1 - build with gcc 5.2 fixed * Fri Nov 14 2014 Dmitry V. Levin <ldv@altlinux.org> 3.0.5-alt1 - 3.0.4 -> 3.0.5. * Fri Jan 10 2014 Dmitry V. Levin <ldv@altlinux.org> 3.0.4-alt1 - 3.0.3 -> 3.0.4 (closes: #28649). - Updated ru.po (closes: #29035). * Sat Jan 12 2013 Dmitry V. Levin <ldv@altlinux.org> 3.0.3-alt3 - Enabled LFS support. * Tue Sep 11 2012 Dmitry V. Levin <ldv@altlinux.org> 3.0.3-alt2 - Disabled build and packaging of dictdotcn netdict plugin. - Fixed build with zlib >= 1.2.5.2. * Mon May 28 2012 Dmitry V. Levin <ldv@altlinux.org> 3.0.3-alt1 - Updated to 3.0.3. - Dropped stardict-gnome, merged stardict-common and stardict-gtk back to stardict. - Merged stardict-tools, fixed mueller2stardict.sh. * Tue Jul 05 2011 Dmitry V. Levin <ldv@altlinux.org> 3.0.1-alt8 - Fixed build. * Tue May 24 2011 Repocop Q. A. Robot <repocop@altlinux.org> 3.0.1-alt7.qa1 - NMU (by repocop). See http://www.altlinux.org/Tools/Repocop - applied repocop fixes: * altlinux-policy-obsolete-buildreq for stardict * Mon Apr 18 2011 Dmitry V. Levin <ldv@altlinux.org> 3.0.1-alt7 - Fixed interpackage dependencies. - Updated build dependencies. * Thu Apr 22 2010 Egor Vyscrebentsov <evyscr@altlinux.org> 3.0.1-alt6 - Added intltool to BuildRequires * Tue Oct 06 2009 Egor Vyscrebentsov <evyscr@altlinux.org> 3.0.1-alt5 - Use tango docklet images (thanks to Andrey Yurkovsky) * Sat Aug 08 2009 Egor Vyscrebentsov <evyscr@altlinux.org> 3.0.1-alt4.1 - fixed .desktop entries (#19526) - fixed empty stardict.cfg processing by stardict-gtk (closes #15855) * Wed Aug 05 2009 Egor Vyscrebentsov <evyscr@altlinux.org> 3.0.1-alt4 - new packager - add Packager: tag - fixed build with gcc >= 4.3 * Fri Nov 14 2008 Alex Murygin <murygin@altlinux.ru> 3.0.1-alt3 - added stardict-3.0.1-alt-gucharmap.patch - added 05_g++-4.3.dpatch (from debian) - deactivated man plugin due to locale problem [17918] - deactivated updateinfo and advertisement plugin * Thu Aug 14 2008 Alex Murygin <murygin@altlinux.ru> 3.0.1-alt2 - disabled network dictionaries be default [16436] - packed plugin-dictdotcn and plugin-update_info as separate package [16436] * Mon Apr 21 2008 Alex Murygin <murygin@altlinux.ru> 3.0.1-alt1 - new vesrion [13847] - added patch for menu macros - removed advertisement plugin [13542] - added libGConf-devel to buildreq (gconf2_install macros) - added librarian to buildreq (scrollkeeper-preinstall) - enabled espeak plugins - added new plugins to common dictdotcn qqwry wordnet wordnet_parsedata - removed patches stardict-3.0.0-alt-gtk.patch stardict-3.0.0-espeak.patch stardict-3.0.0-floatwin.patch * Tue Nov 06 2007 Alex Murygin <murygin@altlinux.ru> 3.0.0-alt1 - new version - added new translation - spec cleaning - fixed 12871 (wrong category for gtk version) - fixed 12282 (menu file generation) - added stardict-3.0.0-alt-gtk.patch - added stardict-3.0.0-espeak.patch (from src.rpm of Hu Zheng) - added stardict-3.0.0-floatwin.patch (from src.rpm of Hu Zheng) - added new ru translation - added plugins (new functionality) most of them are in common package advertisement html_parsedata man powerword_parsedata update_info wiki_parsedata xdxf_parsedata and some are in separate packages plugin-espeak (disabled by default due to libespeak-devel wrong packaging) plugin-gucharmap plugin-spell * Thu Jul 13 2006 Alex Murygin <murygin@altlinux.ru> 2.4.8-alt1 - new version - corrected name and exec for gtk version in menu [9755] - tools package moved to separate package (upstream) - new docs added * Thu Jan 19 2006 Alex Murygin <murygin@altlinux.ru> 2.4.6-alt1 - new version - added make clean between making gtk and gnome versions - added following files into tools package and updated description stardict_verify - check installed dictionaries for errors hanzim2dict.py - as an example for making stardict dictionaries with python help - I didn't add the following tools because I didn't know if anybody asked for them 21tech buddhist directory2treedic ec50 jdictionary jm2stardict.py kdic olddic2newdic powerword soothill tabfile xmlinout * Mon Aug 08 2005 Alex Murygin <murygin@altlinux.ru> 2.4.5-alt2 - added conflict to stardict < 2.4.5 for stardict-common * Mon Aug 01 2005 Alex Murygin <murygin@altlinux.ru> 2.4.5-alt1 - new version - added stardict-gtk package - renamed main package to stardict-gnome - moved common files to stardict-common package * Sat Jun 18 2005 Alex Murygin <murygin@altlinux.ru> 2.4.4-alt1 - new version * Thu Nov 11 2004 Alex Murygin <murygin@altlinux.ru> 2.4.3-alt4 - changed menu group to "Applications/Text tools" * Thu Jul 29 2004 Alex Murygin <murygin@altlinux.ru> 2.4.3-alt3 - fixed menu - changed summary (thanks Abel Cheung - Mandrake) - added russian summary/description * Thu Apr 29 2004 Alex Murygin <murygin@altlinux.ru> 2.4.3-alt2 - removed -DGTK_DISABLE_DEPRECATED * Tue Mar 16 2004 Alex Murygin <murygin@altlinux.ru> 2.4.3-alt1 - new version - added mova2dic to tools * Thu Nov 20 2003 Alex Murygin <murygin@altlinux.ru> 2.4.2-alt1 - new version - added stardict_dict_update to %name-tools - deleted example.idxhead and added example.ifo * Fri Aug 29 2003 Alex Murygin <murygin@altlinux.ru> 2.4.0-alt1 - new version - regenerated buildreq * Sun Jul 06 2003 Alex Murygin <murygin@altlinux.ru> 2.2.1-alt1 - 2.2.1 * Mon Jun 09 2003 Alex Murygin <murygin@altlinux.ru> 2.2.0-alt2 - new version without version incrementation * Sun Jun 01 2003 Alex Murygin <murygin@altlinux.ru> 2.2.0-alt1 - new version * Wed May 28 2003 Alex Murygin <murygin@altlinux.ru> 2.1.0-alt2 - fixed clean_scrollkeeper postun script * Wed May 21 2003 Alex Murygin <murygin@altlinux.ru> 2.1.0-alt1 - new version - added package startdict-tools * Sun May 04 2003 Alex Murygin <murygin@altlinux.ru> 2.0.0-alt1 - Initial revision. |