Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:AndnoVember:LXQt
crow-translate
crow-translate.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File crow-translate.spec of Package crow-translate
# # spec file for package crow-translate # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define _name io.crow_translate.CrowTranslate Name: crow-translate Version: @SERVICE@ Release: 0 Summary: A simple and lightweight translator License: GPL-3.0-only Group: Productivity/Office/Dictionary URL: https://crow-translate.github.io Source0: %{name}-%{version}.tar.xz Patch1: third-party-library-static.patch BuildRequires: cmake >= 3.16.0 #uildRequires: cmake(KF5Wayland) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: extra-cmake-modules BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(lept) BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(tesseract) >= 4.0 BuildRequires: update-desktop-files Requires: gstreamer-plugins-good Recommends: %{name}-lang Provides: bundled(libQOnlineTranslator) Provides: bundled(libQTaskbarControl) Provides: bundled(libSingleApplication) Provides: bundled(libqhotkey) %description Crow Translate is a simple and lightweight translator programmed in C++ / Qt that allows to translate and speak text using Google, Yandex and Bing translate API. %lang_package %prep %autosetup -p1 sed -i "/APPLICATION_NAME/s/Crow\ Translate/%{name}/" CMakeLists.txt sed -i "/EXECUTABLE_NAME/s/crow/%{name}/" CMakeLists.txt sed -i '/44-\|150-\|310-/d' CMakeLists.txt sed -i "0,/Exec=/s/\(Exec=\).*/\1%{name}/" data/%{_name}.desktop sed -i '/^Categories=/s/$/\nX-LXQt-Need-Tray=true/' data/%{_name}.desktop %build %define __builder ninja %cmake \ -DWITH_KWAYLAND=OFF %ninja_build %install %cmake_install %suse_update_desktop_file -r %{_name} Office Dictionary %find_lang %{name} --with-qt %files %doc README.md %{_bindir}/%{name} %{_datadir}/metainfo/%{_name}.metainfo.xml %{_datadir}/applications/%{_name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.??g %{_datadir}/icons/hicolor/*/status/%{name}-tray-*.??g %license COPYING %files lang -f %{name}.lang %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/%{name} %dir %{_datadir}/%{name}/%{name}/translations %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