Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
goldendict
goldendict.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File goldendict.spec of Package goldendict
%define realname goldendict %define realver 1.5.0 %define srcext tar.gz %define hunspell_ver %(pkg-config --modversion hunspell | awk '{split($NF,v,"\\."); printf("%d%02d", v[1], v[2])}') # Common info Name: %{realname} Version: %{realver} Release: wiz%{?extraver:0.}1 License: GPL-3.0+ Group: Productivity/Office/Dictionary URL: http://goldendict.org/ Summary: Feature-rich dictionary lookup program # Build-time parameters %if 0%{?suse_version} BuildRequires: update-desktop-files fdupes BuildRequires: libqt5-qtbase-common-devel BuildRequires: libbz2-devel %else BuildRequires: qt5-qtbase-devel BuildRequires: bzip2-devel %endif BuildRequires: pkg-config BuildRequires: gcc-c++ BuildRequires: pkgconfig(xtst) BuildRequires: pkgconfig(recordproto) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5WebKitWidgets) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Help) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(vorbisfile) pkgconfig(vorbis) pkgconfig(ogg) BuildRequires: pkgconfig(hunspell) BuildRequires: pkgconfig(ao) BuildRequires: pkgconfig(libavutil) pkgconfig(libavformat) pkgconfig(libavcodec) BuildRequires: zlib-devel lzo-devel xz-devel BuildRequires: libtiff-devel BuildRoot: %{_tmppath}/%{name}-root Source: https://codeload.github.com/goldendict/goldendict/%{srcext}/refs/tags/%{realver}#/%{realname}-%{realver}%{?extraver}.%{srcext} %description A feature-rich dictionary lookup program, supporting multiple dictionaries' formats, perfect article rendering with the complete markup, illustrations and other content retained, and allowing to type in words without any accents or correct case. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{realver}%{?extraver} %build export PATH=$PATH:%{_libdir}/qt5/bin qmake %{name}.pro \ PREFIX=%{_prefix} \ "CONFIG+=zim_support" \ "CONFIG+=no_epwing_support" \ %if %{hunspell_ver} < 105 "CONFIG+=old_hunspell" \ %endif QMAKE_CFLAGS="%{optflags} %{?gcc_lto}" \ QMAKE_CXXFLAGS="%{optflags} %{?gcc_lto}" \ QMAKE_LFLAGS="-Wl,--as-needed -Wl,--strip-all %{?gcc_lto}" %{__make} %{_smp_mflags} %install %{__install} -D -m755 %{name} %{buildroot}%{_bindir}/%{name} %{__install} -D -m644 redist/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %{__install} -D -m644 redist/%{name}.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %{__install} -D -m644 redist/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png %{__install} -d -m755 %{buildroot}%{_datadir}/goldendict/ %{__install} -d -m755 %{buildroot}%{_datadir}/goldendict/flags/ %{__install} -d -m755 %{buildroot}%{_datadir}/goldendict/help/ %{__install} -d -m755 %{buildroot}%{_datadir}/goldendict/icons/ %{__install} -d -m755 %{buildroot}%{_datadir}/goldendict/locale/ %{__install} -m644 flags/*.png %{buildroot}%{_datadir}/goldendict/flags/ %{__install} -m644 icons/*.png %{buildroot}%{_datadir}/goldendict/icons/ %{__install} -m644 help/*.qch %{buildroot}%{_datadir}/goldendict/help/ %{__install} -m644 locale/*.qm %{buildroot}%{_datadir}/goldendict/locale/ %find_lang %{name} --with-qt --all-name %if 0%{?suse_version} %suse_update_desktop_file -r %{name} Office Dictionary Qt %fdupes %{buildroot}%{_datadir} %endif %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %license LICENSE.txt %doc CREDITS.txt README.md %{_bindir}/%{name} %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop %dir %{_datadir}/appdata %{_datadir}/appdata/%{name}.appdata.xml %dir %{_datadir}/goldendict/flags %dir %{_datadir}/goldendict/icons %dir %{_datadir}/goldendict/help %dir %{_datadir}/goldendict/locale %dir %{_datadir}/goldendict %{_datadir}/goldendict/flags/*.png %{_datadir}/goldendict/icons/*.png %{_datadir}/goldendict/help/*.qch %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor