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