## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://gitlab.com/megapixels-org/Megapixels Version: 1.8.3 %global tag %{version} %forgemeta Name: megapixels Release: %autorelease Summary: GTK4 camera application that knows how to deal with the media request api License: GPL-3.0-or-later URL: %{forgeurl} Source0: %{forgesource} # Only available on 64-bit architectures due to memory requirements ExcludeArch: %{ix86} armv7hl # Patches Patch0: 0001-fix-capture-callback-signature.patch BuildRequires: gcc BuildRequires: meson BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libfeedback-0.0) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(zbar) BuildRequires: pkgconfig(epoxy) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(libjpeg) BuildRequires: /usr/bin/xvfb-run BuildRequires: /usr/bin/xauth BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: hicolor-icon-theme # for postprocess.sh Requires: dcraw %description A GTK4 camera application that knows how to deal with the media request api. It uses opengl to debayer the raw sensor data for the preview. %prep %forgeautosetup -p1 %build %meson %meson_build %install %meson_install %check desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml %files %doc README.md %license LICENSE %{_bindir}/megapixels %{_bindir}/megapixels-camera-test %{_bindir}/megapixels-list-devices %{_datadir}/applications/org.postmarketos.Megapixels.desktop %{_datadir}/icons/hicolor/scalable/apps/org.postmarketos.Megapixels.svg %dir %{_datadir}/megapixels %dir %{_datadir}/megapixels/config %{_datadir}/megapixels/config/*.ini %{_datadir}/megapixels/config/*.dcp %{_datadir}/megapixels/postprocess.sh %{_datadir}/metainfo/org.postmarketos.Megapixels.metainfo.xml %{_datadir}/glib-2.0/schemas/org.postmarketos.Megapixels.gschema.xml %changelog ## START: Generated by rpmautospec * Wed Aug 13 2025 Sandipan Roy - 1.8.3-1 - Update to 1.8.3 - Update version from 1.8.2 to 1.8.3 in spec file - Update sources with new SHA512 hash for Megapixels-1.8.3.tar.bz2 - Add patch to fix compilation error in capture callback signature - Remove conflicting changelog file (using %%autochangelog in spec) - Add ExcludeArch for 32-bit architectures (i686, armv7hl) due to memory requirements - Fix indentation issues in spec file (replace tabs with spaces) * Thu Jul 24 2025 Fedora Release Engineering - 1.8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jan 17 2025 Fedora Release Engineering - 1.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Aug 16 2024 Felix Wang - 1.8.2-1 - 1.8.2 * Thu Jul 18 2024 Fedora Release Engineering - 1.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Apr 27 2024 topazus - 1.8.1-1 - rebase to 1.8.1; SPDX migration ## END: Generated by rpmautospec