File megapixels.spec of Package megapixels
#
# spec file for package megapixels
#
# Copyright (c) 2023 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: Megapixels
Version: 2.0.0
Release: 0
Summary: Camera app
License: GPL-3.0-only
URL: https://gitlab.com/megapixels-org/Megapixels
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(epoxy)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libdng) >= 1.1.0
BuildRequires: pkgconfig(libfeedback-0.0)
BuildRequires: pkgconfig(libmegapixels) >= 1.0.0
BuildRequires: pkgconfig(libpulse-simple)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(zbar)
Requires: ImageMagick
Requires: dcraw
Requires: exiftool
Requires: ffmpeg
Requires: libraw-tools
Requires: v4l-utils
Requires: zbar
Provides: megapixels
%description
GTK4 Camera app for smartphones.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%meson -Db_lto=true -Dc_link_args='-Wl,-z,none'
%meson_build
%install
%meson_install
%fdupes %{buildroot}%{_datadir}
%files
%{_bindir}/megapixels
%{_datadir}/megapixels/
%{_datadir}/applications/*.desktop
%{_datadir}/icons/*/*/*/*.svg
%{_datadir}/metainfo/*.metainfo.xml
%{_datadir}/glib-2.0/schemas/me.gapixels.Megapixels.gschema.xml
%dir %{_libexecdir}/megapixels
%{_libexecdir}/megapixels/movie_audio_rec
%{_libexecdir}/megapixels/mpegize.py
%changelog