Mageia Bugzilla – Attachment 14139 Details for
Bug 28938
Lyx:The first ten options from top in Help menu don't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Second revision to spec for lyx 2.3.7
lyx.spec (text/x-rpm-spec), 4.78 KB, created by
katnatek
on 2023-11-07 04:23:36 CET
(
hide
)
Description:
Second revision to spec for lyx 2.3.7
Filename:
MIME Type:
Creator:
katnatek
Created:
2023-11-07 04:23:36 CET
Size:
4.78 KB
patch
obsolete
>%define lyxver %(echo %{version} | cut -d. -f1,2) > >Name: lyx >Version: 2.3.7 >Release: %mkrel 1 >Summary: A word processor for the Desktop Environment >Group: Office/Word processor >License: GPLv2+ >URL: https://www.lyx.org/ >Source0: https://ftp.lip6.fr/pub/lyx/stable/%{lyxver}.x/%{name}-%{version}-1.tar.xz > >## upstreamable patches ># already part of 2.4.x source and fixes ># https://bugzilla.redhat.com/show_bug.cgi?id=1965118 >Patch0: lyx-2.3.6-layout2layout.patch > >Patch1: lyx-2.3.6-python3.patch >#From debian >#http://lists.lyx.org/pipermail/lyx-devel/2022-February.txt >Patch2: lyx-Fix-GuiView.patch >Patch3: lyx-2.3.7-build-with-GCC12.patch > >BuildRequires: bc >BuildRequires: boost-devel >BuildRequires: cmake >BuildRequires: dvips >BuildRequires: gettext-devel >BuildRequires: ghostscript >BuildRequires: groff-for-man >BuildRequires: imagemagick >BuildRequires: pkgconfig(libjpeg) >BuildRequires: pkgconfig(python3) >BuildRequires: pkgconfig(xcomposite) >BuildRequires: texlive-collection-basic >BuildRequires: latex >BuildRequires: magic-devel ># let's build it without hunspell as enchant defaults to hunspell ># building with hunspell doesn't find the dictionary >BuildRequires: pkgconfig(enchant-2) >BuildRequires: pkgconfig(ImageMagick) >BuildRequires: pkgconfig(xpm) >BuildRequires: sgml-tools >BuildRequires: texinfo >BuildRequires: xvkbd >BuildRequires: locales-en > >BuildRequires: pkgconfig(Qt5Concurrent) >BuildRequires: pkgconfig(Qt5Core) >BuildRequires: pkgconfig(Qt5Gui) >BuildRequires: pkgconfig(Qt5Svg) >BuildRequires: pkgconfig(Qt5Widgets) >BuildRequires: pkgconfig(Qt5X11Extras) > >Requires: cmsuper >Requires: dvips >Requires: fonts-ttf-latex >Requires: latex >Requires: texlive >Requires: texlive-dist >Requires: xdg-utils > >#Equivalent to suse recommends >Recommends: biber >Recommends: texlive-doc > ># Some stuff needed for LyX's documentation: >Recommends: texlive-collection-basic >Recommends: texlive-fontsextra > >#End of stuff recommended in suse > >%description >LyX is a modern approach of writing documents with a computer which breaks >with the tradition of the obsolete typewriter concept. It is designed for >people who want a professional output with a minimum of time effort, without >becoming specialists in typesetting. Compared to common word processors LyX >will increase the productivity a lot, since most of the typesetting will be >done by the computer, not the author. With LyX the author can concentrate on >the contents of their writing, since the computer will take care of the look. > >%prep >%autosetup -p1 > > ># prefer xdg-open over alternatives in configuration >for prog in xv firefox kghostview pdfview xdvi >do > sed -i -e "s/'$prog'/'xdg-open', '$prog'/" lib/configure.py >done > ># Switch to enchant2 >sed -i -e '/ENCHANT_LIBRARY/s,"enchant","enchant-2",g' \ > -e 's,/usr/include/enchant,%{_includedir}/enchant-2,g' \ > development/cmake/modules/FindENCHANT.cmake > >%build >%cmake_qt5 \ > -G"Unix Makefiles" \ > -DLYX_EXTERNAL_BOOST=ON \ > -DLYX_ENCHANT=ON \ > -DLYX_RELEASE=OFF \ > -DLYX_PACKAGE_SUFFIX=OFF \ > -DLYX_PROGRAM_SUFFIX=OFF > >cp -af po/* build/po/ > >%cmake_build > >%install >%cmake_install > >## Set up the lyx-specific class files where TeX can see then >TEXMF=%{_datadir}/texmf >mkdir -p %{buildroot}${TEXMF}/tex/latex >mv %{buildroot}%{_datadir}/%{name}/tex %{buildroot}${TEXMF}/tex/latex/%{name} > ># icon >install -p -D -m644 lib/images/lyx.png \ > %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lyx.png > >install -p -D -m644 lib/images/lyx.svg \ > %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/lyx.svg > ># ghost'd files >touch %{buildroot}%{_datadir}/lyx/lyxrc.defaults >touch %{buildroot}%{_datadir}/lyx/{packages,textclass}.lst > ># fonts >install -m 0755 -d %{buildroot}%{_fontdir} >mv %{buildroot}%{_datadir}/lyx/fonts/*.ttf %{buildroot}%{_fontdir}/ >rm -rf %{buildroot}%{_datadir}/lyx/fonts > >#Missing Stuff >pushd lib/doc >for doc in $(find * -type f); do > install -Dm0644 $doc %{buildroot}%{_datadir}/lyx/doc/$doc >done >popd > >## Now configure LyX >pushd %{buildroot}%{_datadir}/%{name} >%{__python3} configure.py > /dev/null >## Remove buildroot definition >sed -i -e 's,%{buildroot},,g' configure.log >popd > ># bash completion >install -p -D -m 0644 lib/scripts/bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} > ># appdata >install -p -D lib/appdata.xml %{buildroot}%{_metainfodir}/lyx.appdata.xml > >#List of files >find %{buildroot}/* -type f|sed -e 's|%{buildroot}||g' > %{name}.lang > >%check >desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ># tests/test_filetools error bogus ( see https://bugzilla.redhat.com/723938 ) >make -C build -k check ||: > >%postun >if [ $1 -eq 0 ] ; then > texhash >& /dev/null >fi > >%posttrans >texhash >& /dev/null > >%files -f %{name}.lang >%doc README{,.*} ANNOUNCE RELEASE-NOTES >
%define lyxver %(echo %{version} | cut -d. -f1,2) Name: lyx Version: 2.3.7 Release: %mkrel 1 Summary: A word processor for the Desktop Environment Group: Office/Word processor License: GPLv2+ URL: https://www.lyx.org/ Source0: https://ftp.lip6.fr/pub/lyx/stable/%{lyxver}.x/%{name}-%{version}-1.tar.xz ## upstreamable patches # already part of 2.4.x source and fixes # https://bugzilla.redhat.com/show_bug.cgi?id=1965118 Patch0: lyx-2.3.6-layout2layout.patch Patch1: lyx-2.3.6-python3.patch #From debian #http://lists.lyx.org/pipermail/lyx-devel/2022-February.txt Patch2: lyx-Fix-GuiView.patch Patch3: lyx-2.3.7-build-with-GCC12.patch BuildRequires: bc BuildRequires: boost-devel BuildRequires: cmake BuildRequires: dvips BuildRequires: gettext-devel BuildRequires: ghostscript BuildRequires: groff-for-man BuildRequires: imagemagick BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(xcomposite) BuildRequires: texlive-collection-basic BuildRequires: latex BuildRequires: magic-devel # let's build it without hunspell as enchant defaults to hunspell # building with hunspell doesn't find the dictionary BuildRequires: pkgconfig(enchant-2) BuildRequires: pkgconfig(ImageMagick) BuildRequires: pkgconfig(xpm) BuildRequires: sgml-tools BuildRequires: texinfo BuildRequires: xvkbd BuildRequires: locales-en BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5X11Extras) Requires: cmsuper Requires: dvips Requires: fonts-ttf-latex Requires: latex Requires: texlive Requires: texlive-dist Requires: xdg-utils #Equivalent to suse recommends Recommends: biber Recommends: texlive-doc # Some stuff needed for LyX's documentation: Recommends: texlive-collection-basic Recommends: texlive-fontsextra #End of stuff recommended in suse %description LyX is a modern approach of writing documents with a computer which breaks with the tradition of the obsolete typewriter concept. It is designed for people who want a professional output with a minimum of time effort, without becoming specialists in typesetting. Compared to common word processors LyX will increase the productivity a lot, since most of the typesetting will be done by the computer, not the author. With LyX the author can concentrate on the contents of their writing, since the computer will take care of the look. %prep %autosetup -p1 # prefer xdg-open over alternatives in configuration for prog in xv firefox kghostview pdfview xdvi do sed -i -e "s/'$prog'/'xdg-open', '$prog'/" lib/configure.py done # Switch to enchant2 sed -i -e '/ENCHANT_LIBRARY/s,"enchant","enchant-2",g' \ -e 's,/usr/include/enchant,%{_includedir}/enchant-2,g' \ development/cmake/modules/FindENCHANT.cmake %build %cmake_qt5 \ -G"Unix Makefiles" \ -DLYX_EXTERNAL_BOOST=ON \ -DLYX_ENCHANT=ON \ -DLYX_RELEASE=OFF \ -DLYX_PACKAGE_SUFFIX=OFF \ -DLYX_PROGRAM_SUFFIX=OFF cp -af po/* build/po/ %cmake_build %install %cmake_install ## Set up the lyx-specific class files where TeX can see then TEXMF=%{_datadir}/texmf mkdir -p %{buildroot}${TEXMF}/tex/latex mv %{buildroot}%{_datadir}/%{name}/tex %{buildroot}${TEXMF}/tex/latex/%{name} # icon install -p -D -m644 lib/images/lyx.png \ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lyx.png install -p -D -m644 lib/images/lyx.svg \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/lyx.svg # ghost'd files touch %{buildroot}%{_datadir}/lyx/lyxrc.defaults touch %{buildroot}%{_datadir}/lyx/{packages,textclass}.lst # fonts install -m 0755 -d %{buildroot}%{_fontdir} mv %{buildroot}%{_datadir}/lyx/fonts/*.ttf %{buildroot}%{_fontdir}/ rm -rf %{buildroot}%{_datadir}/lyx/fonts #Missing Stuff pushd lib/doc for doc in $(find * -type f); do install -Dm0644 $doc %{buildroot}%{_datadir}/lyx/doc/$doc done popd ## Now configure LyX pushd %{buildroot}%{_datadir}/%{name} %{__python3} configure.py > /dev/null ## Remove buildroot definition sed -i -e 's,%{buildroot},,g' configure.log popd # bash completion install -p -D -m 0644 lib/scripts/bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} # appdata install -p -D lib/appdata.xml %{buildroot}%{_metainfodir}/lyx.appdata.xml #List of files find %{buildroot}/* -type f|sed -e 's|%{buildroot}||g' > %{name}.lang %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop # tests/test_filetools error bogus ( see https://bugzilla.redhat.com/723938 ) make -C build -k check ||: %postun if [ $1 -eq 0 ] ; then texhash >& /dev/null fi %posttrans texhash >& /dev/null %files -f %{name}.lang %doc README{,.*} ANNOUNCE RELEASE-NOTES
View Attachment As Raw
Actions:
View
Attachments on
bug 28938
:
12715
|
12716
|
13976
|
13977
|
13978
|
13979
|
13980
|
13981
|
13982
|
14139
|
14140
|
14193