[11711] | 1 | %define pkg_name lyx |
---|
[12303] | 2 | %define pkg_version 2.3.3 |
---|
[11711] | 3 | %define pkg_release 1%{?_dist_release} |
---|
| 4 | |
---|
[8067] | 5 | %define _fontdir %{_datadir}/fonts/%{name} |
---|
[11711] | 6 | %define texmf %{_datadir}/texmf |
---|
| 7 | %define build_texmf %{buildroot}%{texmf} |
---|
[8067] | 8 | |
---|
[11711] | 9 | %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash 2>/dev/null |
---|
[521] | 10 | |
---|
| 11 | |
---|
[4218] | 12 | Summary: WYSIWYM (What You See Is What You Mean) word processor with LaTeX output |
---|
| 13 | Summary(ja): LaTeX 形式で保存できるワードプロセッサ |
---|
[11711] | 14 | Name: %{pkg_name} |
---|
| 15 | Version: %{pkg_version} |
---|
| 16 | Release: %{pkg_release} |
---|
[521] | 17 | |
---|
[11711] | 18 | License: GPLv2 or GPLv3 |
---|
| 19 | Group: Applications/Editors |
---|
| 20 | URL: http://www.lyx.org/ |
---|
| 21 | |
---|
[12303] | 22 | Source0: ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/lyx-%{version}.tar.xz |
---|
[12042] | 23 | # Source0: ftp://ftp.lyx.org/pub/lyx/stable/lyx-%{version}-2.tar.xz |
---|
[4218] | 24 | Source1: lyxrc.dist |
---|
[521] | 25 | Source10: lyx.desktop |
---|
| 26 | |
---|
[4218] | 27 | ## upstreamable patches |
---|
| 28 | # submitted, but upstream rejected it. we currently agree to disagree. |
---|
[11364] | 29 | # Patch50: lyx-2.0.6-xdg_open.patch |
---|
[11711] | 30 | Patch50: lyx-2.3.0-xdg_open.patch |
---|
[4218] | 31 | |
---|
[4848] | 32 | ## vine |
---|
| 33 | # reverted checkLatex to lyx-1.6.5 |
---|
[11711] | 34 | Patch100: lyx-2.3.0-configurepy-vine.patch |
---|
[521] | 35 | |
---|
[4218] | 36 | BuildRequires: enchant-devel |
---|
| 37 | BuildRequires: hunspell-devel |
---|
[521] | 38 | BuildRequires: libboost-devel |
---|
| 39 | BuildRequires: libboost-filesystem |
---|
| 40 | BuildRequires: libboost-signals |
---|
[4218] | 41 | BuildRequires: libboost-regex |
---|
[521] | 42 | BuildRequires: desktop-file-utils |
---|
| 43 | BuildRequires: gettext |
---|
| 44 | BuildRequires: python |
---|
| 45 | BuildRequires: xorg-x11-devel |
---|
[11364] | 46 | BuildRequires: qt5-qtbase-devel |
---|
| 47 | BuildRequires: qt5-qtsvg-devel |
---|
[521] | 48 | BuildRequires: libpng-devel |
---|
| 49 | BuildRequires: glib2-devel |
---|
| 50 | BuildRequires: zlib-devel |
---|
[11364] | 51 | BuildRequires: bc |
---|
[521] | 52 | |
---|
[11711] | 53 | Requires(post): texlive-common |
---|
[4218] | 54 | Requires(postun): texlive-common |
---|
[11711] | 55 | Requires: ghostscript |
---|
| 56 | Requires: python |
---|
| 57 | Requires: %{name}-fonts = %{version}-%{release} |
---|
| 58 | Requires: xdg-utils |
---|
| 59 | Requires: rcs |
---|
[521] | 60 | |
---|
| 61 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 62 | |
---|
| 63 | Vendor: Project Vine |
---|
| 64 | Distribution: Vine Linux |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %description |
---|
| 68 | LyX is a modern approach to writing documents which breaks with the |
---|
| 69 | obsolete "typewriter paradigm" of most other document preparation |
---|
| 70 | systems. |
---|
| 71 | |
---|
| 72 | It is designed for people who want professional quality output |
---|
| 73 | with a minimum of time and effort, without becoming specialists in |
---|
| 74 | typesetting. |
---|
| 75 | |
---|
| 76 | The major innovation in LyX is WYSIWYM (What You See Is What You Mean). |
---|
| 77 | That is, the author focuses on content, not on the details of formatting. |
---|
| 78 | This allows for greater productivity, and leaves the final typesetting |
---|
| 79 | to the backends (like LaTeX) that are specifically designed for the task. |
---|
| 80 | |
---|
| 81 | With LyX, the author can concentrate on the contents of his writing, |
---|
| 82 | and let the computer take care of the rest. |
---|
| 83 | |
---|
| 84 | This is LyX built with the Qt frontend. |
---|
| 85 | |
---|
| 86 | %description -l ja |
---|
[4218] | 87 | LaTeX形式で出力もできるワードプロセッサです。数式の入力も簡単にできます。 |
---|
[521] | 88 | 特別な知識が無くても、最小限の努力でプロ並の出力を得られるように設計 |
---|
| 89 | してあります。 |
---|
| 90 | |
---|
[8067] | 91 | %package fonts |
---|
| 92 | Summary: Lyx/MathML fonts |
---|
| 93 | Group: User Interface/X |
---|
| 94 | # The actual license says "The author of these fonts, Basil K. Malyshev, has |
---|
| 95 | # kindly granted permission to use and modify these fonts." |
---|
| 96 | # One of the font files (wasy10) is separately licensed GPL+. |
---|
[11711] | 97 | License: Copyright only and GPL+ |
---|
| 98 | Obsoletes: latex-xft-fonts |
---|
[8067] | 99 | BuildArch: noarch |
---|
[11711] | 100 | |
---|
| 101 | %description fonts |
---|
[8067] | 102 | A collection of Math symbol fonts for %{name}. |
---|
| 103 | |
---|
| 104 | |
---|
[521] | 105 | %prep |
---|
| 106 | %setup -q |
---|
| 107 | |
---|
[11711] | 108 | %patch50 -b .xdg_open |
---|
| 109 | %patch100 -b .vine |
---|
[521] | 110 | |
---|
[4218] | 111 | %build |
---|
[11711] | 112 | %{configure} \ |
---|
[521] | 113 | --disable-dependency-tracking \ |
---|
| 114 | --disable-rpath \ |
---|
[4218] | 115 | --enable-build-type=release \ |
---|
[521] | 116 | --disable-debug \ |
---|
| 117 | --enable-optimization="%{optflags}" \ |
---|
[4218] | 118 | --without-included-boost \ |
---|
[8067] | 119 | --disable-stdlib-debug \ |
---|
[4218] | 120 | --with-enchant \ |
---|
| 121 | --with-hunspell \ |
---|
[11364] | 122 | --enable-qt5 \ |
---|
[521] | 123 | ; |
---|
[11364] | 124 | |
---|
[11711] | 125 | %{__make} %{?_smp_mflags} |
---|
[521] | 126 | |
---|
| 127 | %install |
---|
[11711] | 128 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 129 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
[521] | 130 | |
---|
| 131 | # misc/extras |
---|
[11711] | 132 | %{__install} -p -m644 -D %{SOURCE1} %{buildroot}%{_datadir}/lyx/lyxrc.dist |
---|
[521] | 133 | |
---|
[4218] | 134 | # Set up the lyx-specific class files where TeX can see them |
---|
[11711] | 135 | %{__mkdir_p} %{build_texmf}/tex/latex |
---|
| 136 | %{__mv} %{buildroot}%{_datadir}/lyx/tex %{build_texmf}/tex/latex/lyx |
---|
[521] | 137 | |
---|
| 138 | # desktop & icon |
---|
[4218] | 139 | desktop-file-install --vendor="vine" \ |
---|
[521] | 140 | --dir="${RPM_BUILD_ROOT}%{_datadir}/applications" %{SOURCE10} |
---|
| 141 | %__install -p -D -m644 lib/images/lyx.png \ |
---|
| 142 | %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lyx.png |
---|
| 143 | |
---|
[11711] | 144 | %{__rm} -f ${RPM_BUILD_ROOT}%{_datadir}/applications/lyx.desktop |
---|
| 145 | |
---|
[521] | 146 | # ghost'd files |
---|
| 147 | touch %{buildroot}%{_datadir}/lyx/lyxrc.defaults |
---|
| 148 | touch %{buildroot}%{_datadir}/lyx/{packages,textclass}.lst |
---|
| 149 | |
---|
[8067] | 150 | # fonts |
---|
[11711] | 151 | %{__install} -m 0755 -d %{buildroot}%{_fontdir} |
---|
| 152 | %{__mv} %{buildroot}%{_datadir}/lyx/fonts/*.ttf %{buildroot}%{_fontdir}/ |
---|
| 153 | %{__rm} -rf %{buildroot}%{_datadir}/lyx/fonts |
---|
[521] | 154 | |
---|
| 155 | %find_lang %{name} |
---|
| 156 | |
---|
[4848] | 157 | %check |
---|
| 158 | # tests/test_filetools error bogus ( see http://bugzilla.redhat.com/723938 ) |
---|
[11711] | 159 | %{__make} -k check || : |
---|
[521] | 160 | |
---|
| 161 | %clean |
---|
[11711] | 162 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[521] | 163 | |
---|
| 164 | %post |
---|
| 165 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 166 | |
---|
| 167 | %postun |
---|
| 168 | if [ $1 -eq 0 ] ; then |
---|
| 169 | %{exec_texhash} >& /dev/null |
---|
| 170 | update-desktop-database -q &> /dev/null |
---|
| 171 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null |
---|
| 172 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 173 | fi |
---|
| 174 | |
---|
[4218] | 175 | %posttrans |
---|
| 176 | %{exec_texhash} >& /dev/null |
---|
| 177 | update-desktop-database -q &> /dev/null |
---|
| 178 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 179 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
[521] | 180 | |
---|
[8067] | 181 | %post fonts |
---|
[11711] | 182 | %{__font_install_post} %{_fontdir} |
---|
[4218] | 183 | |
---|
[8067] | 184 | %postun fonts |
---|
[11711] | 185 | %{__font_install_postun} %{_fontdir} |
---|
[8067] | 186 | |
---|
| 187 | |
---|
[521] | 188 | %files -f %{name}.lang |
---|
| 189 | %defattr(-,root,root,-) |
---|
[11364] | 190 | %doc ANNOUNCE COPYING README UPGRADING NEWS lib/CREDITS |
---|
[521] | 191 | %{_bindir}/* |
---|
| 192 | %{_datadir}/lyx/ |
---|
| 193 | %{texmf}/tex/latex/lyx/ |
---|
| 194 | %{_datadir}/applications/*.desktop |
---|
| 195 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 196 | %{_mandir}/man*/* |
---|
| 197 | %config(noreplace) %{_datadir}/lyx/lyxrc.dist |
---|
| 198 | %ghost %{_datadir}/lyx/lyxrc.defaults |
---|
| 199 | %ghost %{_datadir}/lyx/*.lst |
---|
| 200 | %ghost %{_datadir}/lyx/doc/LaTeXConfig.lyx |
---|
| 201 | |
---|
[8067] | 202 | %files fonts |
---|
| 203 | %defattr(-,root,root,-) |
---|
| 204 | %dir %{_fontdir}/ |
---|
| 205 | %{_fontdir}/*.ttf |
---|
[521] | 206 | |
---|
[8067] | 207 | |
---|
[521] | 208 | %changelog |
---|
[12303] | 209 | * Tue Oct 29 2019 Toshiaki Ara <ara_t@384.jp> 2.3.3-1 |
---|
| 210 | - update to 2.3.3 |
---|
| 211 | |
---|
[12042] | 212 | * Tue Jan 29 2019 Toshiaki Ara <ara_t@384.jp> 2.3.2-1 |
---|
| 213 | - update to 2.3.2 |
---|
| 214 | |
---|
[11807] | 215 | * Sun Oct 07 2018 Toshiaki Ara <ara_t@384.jp> 2.3.1-1 |
---|
| 216 | - update to 2.3.1 |
---|
| 217 | |
---|
[11711] | 218 | * Fri Jun 08 2018 Toshiaki Ara <ara_t@384.jp> 2.3.0-1 |
---|
| 219 | - update to 2.3.0 |
---|
| 220 | - update Patch50 and Patch100 |
---|
| 221 | |
---|
[11364] | 222 | * Mon Jan 08 2018 Toshiaki Ara <ara_t@384.jp> 2.2.3-1 |
---|
| 223 | - new upstream release |
---|
| 224 | - update Patch50 (lyx-2.2.3-xdg_open.patch) |
---|
| 225 | - add BuildRequires: bc |
---|
| 226 | - use qt5 instead of qt4 |
---|
| 227 | - add --enable-qt5 option |
---|
| 228 | - add BuildRequires: qt5-qtbase-devel, qt5-qtsvg-devel |
---|
| 229 | - drop BuildRequires: qt4-devel |
---|
| 230 | - delete unused options |
---|
| 231 | |
---|
[8067] | 232 | * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.6-1 |
---|
| 233 | - update to 2.0.6 |
---|
| 234 | - update Patch50 (lyx-2.0.6-xdg_open.patch) |
---|
| 235 | |
---|
| 236 | * Sun Mar 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.2-2 |
---|
| 237 | - rebuild with hunspell-devel |
---|
| 238 | |
---|
| 239 | * Thu Jan 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.2-1 |
---|
| 240 | - new upstream release |
---|
| 241 | - added subpackage "lyx-fonts" |
---|
| 242 | - added Obsoletes: latex-xft-fonts |
---|
| 243 | |
---|
[4848] | 244 | * Sat Oct 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.1-2 |
---|
| 245 | - applied lyx-2.0.1-configurepy-vine.patch |
---|
| 246 | - reverted checkLatex to lyx-1.6.5 |
---|
| 247 | |
---|
| 248 | * Fri Sep 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.1-1 |
---|
| 249 | - new upstream release |
---|
| 250 | |
---|
[4218] | 251 | * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.0-1 |
---|
| 252 | - new upstream release |
---|
| 253 | - dropped BuildRequires: aspell-devel |
---|
| 254 | - added BuildRequires: |
---|
| 255 | - libboost-regex |
---|
| 256 | - enchant-devel |
---|
| 257 | - hunspell-devel |
---|
| 258 | |
---|
[2373] | 259 | * Thu Dec 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.8-1 |
---|
| 260 | - new upstream release |
---|
| 261 | |
---|
[1528] | 262 | * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.7-1 |
---|
| 263 | - new upstream release |
---|
| 264 | - TeX Live 2009 |
---|
| 265 | - dropped Requires: xdvik, dvipdfmx |
---|
| 266 | |
---|
[521] | 267 | * Sun Jan 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.5-1 |
---|
| 268 | - new upstream release |
---|
| 269 | - updated Patch0: lyx-1.6.5-xdg_open.patch |
---|
| 270 | |
---|
| 271 | * Sun Jul 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.3-1 |
---|
| 272 | - new upstream release |
---|
| 273 | - dropped old source files |
---|
| 274 | - change License: GPLv2+ |
---|
| 275 | - added lyx.desktop |
---|
| 276 | - added BuildRequires: |
---|
| 277 | - aspell-devel |
---|
| 278 | - desktop-file-utils |
---|
| 279 | - gettext |
---|
| 280 | - python |
---|
| 281 | - qt4-devel |
---|
| 282 | - zlib-devel |
---|
| 283 | - libboost-devel |
---|
| 284 | - libboost-filesystem |
---|
| 285 | - libboost-signals |
---|
| 286 | - libpng-devel |
---|
| 287 | - glib2-devel |
---|
| 288 | - added Requires: |
---|
| 289 | - ghostscript |
---|
| 290 | - dvipdfmx |
---|
| 291 | - xdvik |
---|
| 292 | - qt4 |
---|
| 293 | - xdg-utils |
---|
| 294 | - optimized some configure options |
---|
| 295 | |
---|
| 296 | * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.4-1vl5 |
---|
| 297 | - applied new versioning policy, spec in utf-8 |
---|
| 298 | |
---|
| 299 | * Sat Apr 07 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.4-0vl1 |
---|
| 300 | - updated to 1.4.4 with the most recent CJK patch |
---|
| 301 | - updated Patch1 |
---|
| 302 | |
---|
| 303 | * Sat Dec 30 2006 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.4.2-0vl1 |
---|
| 304 | - base spec file : Vine Linux BTS #219 |
---|
| 305 | * Mon Nov 6 2006 M.H |
---|
| 306 | - new upstream release |
---|
| 307 | - base spec file CJK-LyX-qt.spec and VinePlus lyx.spec |
---|
| 308 | |
---|
| 309 | * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.4-0vl3 |
---|
| 310 | - changed Group to Applications/Editors |
---|
| 311 | |
---|
| 312 | * Sat Jan 28 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> |
---|
| 313 | - rebuild with qt-3.3.5 |
---|
| 314 | |
---|
| 315 | * Sun Jun 13 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.3.4-0vl1 |
---|
| 316 | - new upstream version |
---|
| 317 | - change frontend, xforms -> qt |
---|
| 318 | - require tetex, qt, latex-xft-fonts |
---|
| 319 | - change applnk file |
---|
| 320 | - change Group |
---|
| 321 | |
---|
| 322 | * Thu Aug 21 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.1.6fix4-0vl1 |
---|
| 323 | - new upstream version |
---|
| 324 | - add mime-info |
---|
| 325 | - minor change in spec file |
---|
| 326 | |
---|
| 327 | * Sat Nov 11 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp> |
---|
| 328 | - 1.0.3_jp-4 |
---|
| 329 | - added BuildPrereq: |
---|
| 330 | |
---|
| 331 | * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 332 | - 1.0.3_jp-3 |
---|
| 333 | - minor change in spec file |
---|
| 334 | - build for Vine Linux 2.1 |
---|
| 335 | |
---|
| 336 | * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 337 | - change group |
---|
| 338 | |
---|
| 339 | * Wed Dec 22 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 340 | - updated to lyx-1.0.3 |
---|
| 341 | - rebuild for Vine Linux 2.0 |
---|
| 342 | |
---|
| 343 | * Wed May 5 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 344 | - merged Japanese Documents |
---|
| 345 | |
---|
| 346 | * Tue May 4 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 347 | - first build |
---|
| 348 | |
---|