Compare commits
31 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5262b43aea | ||
|
|
58ffeb6123 | ||
|
|
a4aa6de7f4 | ||
|
|
4415b98f54 | ||
|
|
fa12143e6c | ||
|
|
fb132f5bc8 | ||
|
|
ef45c1593a | ||
|
|
cadd06f0c0 | ||
|
|
5350f34990 | ||
|
|
ede00e32a3 | ||
|
|
f4597d3083 | ||
| 67f5a994ee | |||
|
|
d3f28194a7 | ||
| 6df4f5bf55 | |||
|
|
28dcc86cbd | ||
| 49cd1cf0ac | |||
| 2e894a4dcd | |||
|
|
cb31fcf7ff | ||
| 9627dc1858 | |||
|
|
11d5405695 | ||
| 4f75d5d3c4 | |||
| fe8243e0f4 | |||
| 1df55d8ce7 | |||
|
|
bd7462daf0 | ||
|
|
45ca911f4c | ||
|
|
42b7283b43 | ||
|
|
f01755fbca | ||
|
|
ee7df1dc63 | ||
|
|
9522f59a9f | ||
|
|
de3ef28b19 | ||
|
|
7984f0a003 |
7 changed files with 151 additions and 62 deletions
17
.gitignore
vendored
17
.gitignore
vendored
|
|
@ -1,3 +1,20 @@
|
|||
/0.13.1.tar.gz
|
||||
/0.13.2.tar.gz
|
||||
/0.14.0.tar.gz
|
||||
/0.15.0.tar.gz
|
||||
/0.16.0.tar.gz
|
||||
/1.0.1.tar.gz
|
||||
/1.1.0.tar.gz
|
||||
/1.2.0.tar.gz
|
||||
/1.3.0.tar.gz
|
||||
/megapixels-1.4.0.tar.gz
|
||||
/megapixels-1.4.2.tar.gz
|
||||
/megapixels-1.4.3.tar.gz
|
||||
/megapixels-1.5.1.tar.gz
|
||||
/megapixels-1.5.2.tar.gz
|
||||
/megapixels-1.6.0.tar.gz
|
||||
/megapixels-1.6.1.tar.gz
|
||||
/megapixels-1.7.0.tar.gz
|
||||
/Megapixels-1.8.1.tar.bz2
|
||||
/Megapixels-1.8.2.tar.bz2
|
||||
/Megapixels-1.8.3.tar.bz2
|
||||
|
|
|
|||
29
0000-patch-build-gschemas.patch
Normal file
29
0000-patch-build-gschemas.patch
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
diff --git a/data/meson.build b/data/meson.build
|
||||
index c16f78b..ad77cef 100644
|
||||
--- a/data/meson.build
|
||||
+++ b/data/meson.build
|
||||
@@ -14,7 +14,7 @@ install_data(['postprocess.sh'],
|
||||
install_dir: get_option('datadir') / 'megapixels/',
|
||||
install_mode: 'rwxr-xr-x')
|
||||
|
||||
-settings_schemas = ['org.postmarketos.Megapixels.gschema.xml']
|
||||
-schemas_dir = get_option('datadir') / 'glib-2.0' / 'schemas'
|
||||
-install_data(settings_schemas, install_dir: schemas_dir)
|
||||
-gnome.compile_schemas(depend_files: files(settings_schemas))
|
||||
+install_data(
|
||||
+ 'org.postmarketos.Megapixels.gschema.xml',
|
||||
+ install_dir: join_paths (get_option('datadir'), 'glib-2.0', 'schemas')
|
||||
+)
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 626adad..bca4093 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -54,6 +54,8 @@ executable('megapixels',
|
||||
install: true,
|
||||
link_args: '-Wl,-ldl')
|
||||
|
||||
+meson.add_install_script('post_install.py')
|
||||
+
|
||||
install_data(
|
||||
[
|
||||
'config/pine64,pinephone-1.0.ini',
|
||||
25
0001-fix-capture-callback-signature.patch
Normal file
25
0001-fix-capture-callback-signature.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
From 57244c666e622c01f1e22603da467856d36c50a2 Mon Sep 17 00:00:00 2001
|
||||
From: Sandipan Roy <sandipan@redhat.com>
|
||||
Date: Wed, 13 Aug 2025 21:30:39 +0530
|
||||
Subject: [PATCH] Fix capture callback signature
|
||||
|
||||
---
|
||||
src/process_pipeline.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/process_pipeline.c b/src/process_pipeline.c
|
||||
index cbe374d..d9ace69 100644
|
||||
--- a/src/process_pipeline.c
|
||||
+++ b/src/process_pipeline.c
|
||||
@@ -964,7 +964,7 @@ mp_process_pipeline_process_image(MPBuffer buffer)
|
||||
}
|
||||
|
||||
static void
|
||||
-capture()
|
||||
+capture(MPPipeline *pipeline, const void *data)
|
||||
{
|
||||
char template[] = "/tmp/megapixels.XXXXXX";
|
||||
char *tempdir;
|
||||
--
|
||||
2.50.1
|
||||
|
||||
107
megapixels.spec
107
megapixels.spec
|
|
@ -1,93 +1,78 @@
|
|||
Name: megapixels
|
||||
Version: 0.14.0
|
||||
Release: 2%{?dist}
|
||||
Summary: A GTK3 camera application that knows how to deal with the media request api
|
||||
%global forgeurl https://gitlab.com/megapixels-org/Megapixels
|
||||
Version: 1.8.3
|
||||
%global tag %{version}
|
||||
%forgemeta
|
||||
|
||||
License: GPLv3+
|
||||
URL: https://git.sr.ht/~martijnbraam/megapixels
|
||||
Source0: https://git.sr.ht/~martijnbraam/megapixels/archive/%{version}.tar.gz
|
||||
Name: megapixels
|
||||
Release: %autorelease
|
||||
Summary: GTK4 camera application that knows how to deal with the media request api
|
||||
|
||||
ExclusiveArch: aarch64 armv7hl
|
||||
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(gtk+-3.0)
|
||||
BuildRequires: pkgconfig(gtk4)
|
||||
BuildRequires: pkgconfig(libfeedback-0.0)
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
BuildRequires: inih-devel
|
||||
BuildRequires: /usr/bin/xvfb-run
|
||||
BuildRequires: /usr/bin/xauth
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: pkgconfig(zbar)
|
||||
BuildRequires: pkgconfig(epoxy)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(xrandr)
|
||||
BuildRequires: pkgconfig(wayland-client)
|
||||
BuildRequires: pkgconfig(libjpeg)
|
||||
|
||||
Requires: hicolor-icon-theme
|
||||
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
|
||||
|
||||
Requires: dcraw
|
||||
|
||||
%description
|
||||
A GTK3 camera application that knows how to deal with the media request api
|
||||
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
|
||||
%setup -q -n %{name}-%{version}
|
||||
%forgeautosetup -p1
|
||||
|
||||
%build
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.postmarketos.Megapixels.metainfo.xml
|
||||
|
||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/org.postmarketos.Megapixels.desktop
|
||||
|
||||
LC_ALL=C.UTF-8 xvfb-run sh <<'SH'
|
||||
%meson_test
|
||||
SH
|
||||
|
||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml
|
||||
|
||||
%files
|
||||
%dir %{_datadir}/megapixels
|
||||
%dir %{_datadir}/megapixels/config
|
||||
|
||||
%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
|
||||
%{_datadir}/megapixels/config/pine64,pinephone-1.0.ini
|
||||
%{_datadir}/megapixels/config/pine64,pinephone-1.1.ini
|
||||
%{_datadir}/megapixels/config/pine64,pinephone-1.2.ini
|
||||
%{_datadir}/megapixels/config/pine64,pinetab.ini
|
||||
%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
|
||||
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
%{_datadir}/glib-2.0/schemas/org.postmarketos.Megapixels.gschema.xml
|
||||
|
||||
%changelog
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Jan 11 2021 Torrey Sorensen <torbuntu@fedoraproject.org> - 0.14.0-1
|
||||
- Update to 0.14.0
|
||||
|
||||
* Fri Jan 01 2021 Torrey Sorensen <torbuntu@fedoraproject.org> - 0.13.2-1
|
||||
- Update to 0.13.2
|
||||
|
||||
* Tue Dec 15 2020 Torrey Sorensen <torbuntu@fedoraproject.org> - 0.13.1-2
|
||||
- Adding license and README
|
||||
|
||||
* Thu Dec 10 2020 Torrey Sorensen <torbuntu@fedoraproject.org> - 0.13.1-1
|
||||
- Update to 0.13.1
|
||||
|
||||
* Thu Dec 03 2020 Torrey Sorensen <torbuntu@fedoraproject.org> - 0.12.0-2
|
||||
- Adding dependencies for postprocess.sh
|
||||
|
||||
* Sat Nov 14 2020 Torrey Sorensen <torbuntu@fedoraproject.org> - 0.12.0-1
|
||||
- Initial packaging
|
||||
|
||||
%autochangelog
|
||||
|
|
|
|||
20
packit.yaml
Normal file
20
packit.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
upstream_project_url: https://gitlab.com/megapixels-org/Megapixels
|
||||
|
||||
jobs:
|
||||
- job: pull_from_upstream
|
||||
trigger: release
|
||||
dist_git_branches:
|
||||
- fedora-rawhide
|
||||
|
||||
- job: koji_build
|
||||
trigger: commit
|
||||
allowed_pr_authors: ["packit", "topazus"]
|
||||
allowed_committers: ["packit", "topazus"]
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
|
||||
- job: bodhi_update
|
||||
trigger: commit
|
||||
allowed_builders: ["packit", "topazus"]
|
||||
dist_git_branches:
|
||||
- fedora-branched
|
||||
13
post_install.py
Normal file
13
post_install.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
destdir = os.environ.get('DESTDIR', '')
|
||||
|
||||
if not destdir and len(sys.argv) > 1:
|
||||
datadir = sys.argv[1]
|
||||
|
||||
print('Compiling gsettings schemas...')
|
||||
subprocess.call(['glib-compile-schemas', os.path.join(datadir, 'glib-2.0', 'schemas')])
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (0.14.0.tar.gz) = 6c5baf6e48c3cf6a77d60bd18af298daaa12e471ce0eff44c3eeb0c6c97bc183a36c6aa2d090abfa92958633c5d564e4fbec06bc271c813a1a98e1697f44bbe9
|
||||
SHA512 (Megapixels-1.8.3.tar.bz2) = 3e326cf3c6a9ab49c1efab687eb769afef90518ceac12d674718424cfc1388cc677d288b8d5627b22231a4cabcb71fa80302dadff9de12eb6e4dbcc9e7830786
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue