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: 0.9.6
Release: 0
Summary: QR code scanner
### also apache-2.0 ?
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
BuildRequires: hicolor-icon-theme
BuildRequires: meson >= 0.50.0
BuildRequires: pkgconfig
###
BuildRequires: appstream-glib
BuildRequires: desktop-file-utils
BuildRequires: python3-Babel
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) >= 3.24
BuildRequires: pkgconfig(libnm) >= 1.22
BuildRequires: pkgconfig(python3-embed)
#Requires: gst-plugin-gtk
#Requires: gst-python
#Requires: libnm
#Requires: python-gobject
Requires: python3-Logbook >= 1.5.3
Requires: python3-kiss-headers >= 2.2.3
#Requires: python-logbook
#Requires: python-pillow >= 7.1.2
Requires: python3-Pillow >= 7.1.2
#Requires: python3-logbook >= 1.5.3
Requires: python3-requests >= 2.24.0
#Requires: python3-babelGladeExtractor >= 0.7.0
Requires: python3-single-version >= 1.1
Requires: python3-zbar
BuildArch: noarch
%description
A QR code scanner desktop app.
%lang_package
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%find_lang cobang
%files
%license LICENSE.txt
%doc README.rst
%{_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}/metainfo/vn.hoabinh.quan.CoBang.appdata.xml
%{python3_sitelib}/cobang
#{python3_sitelib}/cobang-{version}-py{py3_ver}.egg-info/
%files lang -f cobang.lang
%changelog