File photocollage.spec of Package photocollage
#
# spec file for package photocollage
#
# Copyright (c) 2025 mantarimay
#
# 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: photocollage
Version: 1.5.0
Release: 0
Summary: Graphical tool to make photo collage posters
License: GPL-2.0-only
URL: https://github.com/adrienverge/PhotoCollage
Source0: %{url}/archive/v%{version}/PhotoCollage-%{version}.tar.gz
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: gettext
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
Requires: python3-%{name} = %version
BuildArch: noarch
%define python_subpackage_only 1
%python_subpackages
%description
PhotoCollage allows you to create photo collage posters. It assembles
the input photographs it is given to generate a big poster. Photos are
automatically arranged to fill the whole poster, then you can change the
final layout, dimensions, border or swap photos in the generated grid.
Eventually the final poster image can be saved in any size.
%package -n python-%{name}
Summary: Python library for %{name}
Group: Development/Languages/Python
Requires: gettext-runtime
Requires: python3-pycairo
Requires: python3-gobject
Requires: python3-Pillow
Requires: python3-six
Requires: typelib(GdkPixbuf)
%description -n python-%{name}
The direct Python interface into %{name}.
%prep
%autosetup -n PhotoCollage-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%doc README.rst
%license LICENSE
%{_bindir}/photocollage
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%files %{python_files photocollage}
%{python_sitelib}/p*
%changelog