4 Commits

Author SHA256 Message Date
39693f0202 Accepting request 1322828 from graphics
OBS-URL: https://build.opensuse.org/request/show/1322828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Photini?expand=0&rev=35
2025-12-15 11:01:13 +00:00
Nicolas FORMICHELLA
cba8409ea8 Recently I required Photini to generate EXIF thumbnails, but noticed that the application didn't even start any more (since at least Leap 15.6). Additionally the version was really outdated, so I decided to update it to the current version. Now with changelog and a few other minor readability improvements.
- Update to version 2025.10.0
- Remove Photini-2021.1.0-desktop.patch: The desktop file is
  generated by the photini-post-install script now
- Major rework of the build and runtime dependences and the install
  section - the project had a lot of changes in 3,5 years

OBS-URL: https://build.opensuse.org/package/show/graphics/Photini?expand=0&rev=71
2025-12-14 09:29:50 +00:00
5aa4d7de60 Accepting request 1313728 from graphics
OBS-URL: https://build.opensuse.org/request/show/1313728
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Photini?expand=0&rev=34
2025-10-27 13:40:59 +00:00
Nicolas FORMICHELLA
8a268cce39 Accepting request 1313095 from home:StevenK:branches:graphics
- Use pyproject macros to build and install.
- Support both normalized and titlecase metadata directories.

OBS-URL: https://build.opensuse.org/request/show/1313095
OBS-URL: https://build.opensuse.org/package/show/graphics/Photini?expand=0&rev=69
2025-10-26 14:04:28 +00:00
5 changed files with 67 additions and 59 deletions

View File

@@ -1,27 +0,0 @@
Index: Photini-2021.1.0/src/photini/data/linux/photini.desktop
===================================================================
--- Photini-2021.1.0.orig/src/photini/data/linux/photini.desktop
+++ Photini-2021.1.0/src/photini/data/linux/photini.desktop
@@ -3,6 +3,8 @@ Type=Application
Name=Photini
Comment=An easy to use digital photograph metadata (EXIF, IPTC, XMP) editing application.
GenericName=Photini photo metadata editor
+Exec=photini
+Icon=photini
Terminal=false
Categories=Graphics;Photography;
MimeType=image/jpeg;image/jpeg2000;image/tiff;image/png;image/gif;image/svg+xml;image/x-dcraw;
Index: Photini-2021.1.0/setup.py
===================================================================
--- Photini-2021.1.0.orig/setup.py
+++ Photini-2021.1.0/setup.py
@@ -57,9 +57,6 @@ setup(name = 'Photini',
package_dir = {'' : 'src'},
package_data = {'photini' : package_data},
entry_points = {
- 'console_scripts' : [
- 'photini-post-install = photini.scripts:post_install',
- ],
'gui_scripts' : [
'photini = photini.editor:main',
],

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:053416bf901835b5aa20323e3d28e13bc0b93cef3aa44f14a8d713abb464bcc2
size 7610406

3
Photini-2025.10.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:699a3497935186d9a009a21619333139f8bc61e5c06080a9b676c6e62d8cb384
size 30659965

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Nov 17 13:32:22 UTC 2025 - Ignaz Forster <iforster@suse.com>
- Update to version 2025.10.0
- Remove Photini-2021.1.0-desktop.patch: The desktop file is
generated by the photini-post-install script now
- Major rework of the build and runtime dependences and the install
section - the project had a lot of changes in 3,5 years
-------------------------------------------------------------------
Thu Oct 23 04:54:58 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use pyproject macros to build and install.
- Support both normalized and titlecase metadata directories.
-------------------------------------------------------------------
Tue Oct 18 08:37:48 UTC 2022 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package Photini
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,32 +17,43 @@
Name: Photini
Version: 2022.3.2
Version: 2025.10.0
Release: 0
Summary: Digital photograph metadata (EXIF, IPTC, XMP) editing application
License: GPL-3.0-or-later
Group: Productivity/Graphics/Other
URL: https://github.com/jim-easterbrook/Photini
Source0: https://github.com/jim-easterbrook/Photini/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Photini-2021.1.0-desktop.patch fix desktop file -- aloisio@gmx.com
Patch0: Photini-2021.1.0-desktop.patch
BuildRequires: ImageMagick
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python3-appdirs >= 1.3
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-platformdirs
BuildRequires: python3-qtwebengine-qt5
BuildRequires: python3-setuptools
Requires: ffmpeg
Requires: libgexiv2-2 >= 0.5
Requires: python3-appdirs >= 1.3
Requires: python3-gobject
Requires: python3-gpxpy
Requires: python3-keyring
Requires: python3-qt5
Requires: python3-qt5-sip
BuildRequires: python3-setuptools_scm
BuildRequires: python3-wheel
Requires: python3-Pillow
Requires: python3-cachetools
Requires: python3-chardet
Requires: python3-exiv2
Requires: python3-filetype
Requires: python3-platformdirs
Requires: python3-requests >= 2.4.0
Requires: python3-requests-oauthlib
Requires: python3dist(pyqtwebengine)
Requires: typelib(GExiv2)
# For the flickr, Google Photos, Ipernity and Pixelfed/Mastodon plugins
Recommends: python3-keyring
Conflicts: python3-keyring-keyutils
# For the flickr, Ipernity and Pixelfed/Mastodon plugin
Recommends: python3-requests-toolbelt
# For the spelling plugin
Recommends: python3-pyenchant
# For the GPS plugin
Recommends: python3-gpxpy
# For the camera import plugin
Recommends: python3-gphoto2
BuildArch: noarch
%description
@@ -58,28 +69,37 @@ camera's position when the picture was taken.
%autosetup -p1
%build
python3 setup.py build
for s in 22 32 48 64 96 128 192 256 512; do
convert -strip utils/make_icons/icon_master.png -resize ${s}x${s} ${s}.png
done
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%python3_pyproject_wheel
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
for s in 22 32 48 64 96 128 192 256 512; do
mkdir -pv %{buildroot}%{_datadir}/icons//hicolor/${s}x${s}/apps
install -m0644 ${s}.png -T \
%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/photini.png
done
install -Dm0644 src/photini/data/linux/photini.desktop \
%python3_pyproject_install
cp -r src/photini/data %{buildroot}%{python3_sitelib}/photini/data
# Generate the desktop file and copy icons
export PYTHONPATH=%{buildroot}%{python3_sitelib}
%{buildroot}%{_bindir}/photini-post-install
# Copy icons for the desktop file
mkdir -p %{buildroot}%{_datadir}/icons
mv ~/.local/share/icons/* %{buildroot}%{_datadir}/icons
# Adapt desktop file
sed -i 's#^Exec=[^ ]\+#Exec=/usr/bin/photini#g' \
~/.local/share/applications/photini.desktop
install -Dm0644 ~/.local/share/applications/photini.desktop \
%{buildroot}%{_datadir}/applications/photini.desktop
rm -f %{buildroot}/%{python3_sitelib}/photini/data/linux/photini.desktop
%fdupes %{buildroot}
rm %{buildroot}%{_bindir}/photini-configure
rm %{buildroot}%{_bindir}/photini-post-install
%fdupes -s %{buildroot}
%files
%doc CHANGELOG.txt README.rst
%license LICENSE.txt
%{_bindir}/photini
%{python3_sitelib}/%{name}-%{version}-py%{py3_ver}.egg-info
%{python3_sitelib}/[Pp]hotini-%{version}.dist-info
%{python3_sitelib}/photini
%{_datadir}/applications/photini.desktop
%{_datadir}/icons/hicolor/*/apps/photini.png