File CoBang.spec of Package CoBang

#
# spec file for package CoBang
#
# 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/
#


Name:           CoBang
Version:        1.8.1
Release:        0
Summary:        A QR code scanner desktop app for Linux
License:        GPL-3.0-or-later
URL:            https://github.com/hongquan/CoBang
#Source0:        https://github.com/hongquan/CoBang/archive/v%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  AppStream
BuildRequires:  appstream-glib
BuildRequires:  blueprint-compiler
BuildRequires:  desktop-file-utils
BuildRequires:  hicolor-icon-theme
BuildRequires:  meson >= 1.0.0
BuildRequires:  pkgconfig
BuildRequires:  python3-setuptools
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(libadwaita-1)
BuildRequires:  pkgconfig(libnm)
BuildRequires:  pkgconfig(python3-embed)
BuildRequires:  pkgconfig(libnm)
Requires:       gstreamer-plugins-base
Requires:       gstreamer-plugins-good
Requires:       python3-Pillow
Requires:       python3-gst
Requires:       python3-kiss-headers
Requires:       python3-Logbook
Requires:       python3-qrcode
Requires:       python3-single-version
Requires:       python3-zbar
# Needed?
##Requires:       python3-requests >= 2.24.0
BuildArch:      noarch

%description
A native QR Code and barcode scanner application for Linux desktop.
CoBang can scan barcode, QR code from webcam or static image, local or remote.

%lang_package

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang cobang

%files
%license LICENSE.txt
%doc README.rst
%dir %{_datadir}/locale
%{_bindir}/cobang
%{_datadir}/applications/vn.hoabinh.quan.CoBang.desktop
%{_datadir}/cobang
%{_datadir}/glib-2.0/schemas/vn.hoabinh.quan.CoBang.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/vn.hoabinh.quan.CoBang.svg
%{_datadir}/icons/hicolor/*/apps/vn.hoabinh.quan.CoBang.png
%{_datadir}/dbus-1/services/vn.hoabinh.quan.CoBang.service
%{_datadir}/metainfo/vn.hoabinh.quan.CoBang.metainfo.xml

%files lang -f cobang.lang

%changelog
openSUSE Build Service is sponsored by