File pantheon-files.spec of Package pantheon-files
#
# spec file for package pantheon-files
#
# 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
# 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/
#
%define sover 7
%define appid io.elementary.files
Name: pantheon-files
Version: 7.2.0
Release: 0
Summary: Simple file manager for the Pantheon Desktop
License: GPL-3.0-or-later
URL: https://github.com/elementary/files
Source: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: vala
BuildRequires: pkgconfig(cloudproviders) >= 0.3.0
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(granite)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libcanberra)
BuildRequires: pkgconfig(libgit2-glib-1.0)
BuildRequires: pkgconfig(libhandy-1)
BuildRequires: pkgconfig(libportal)
BuildRequires: pkgconfig(libportal-gtk3)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(systemd)
Provides: elementary-files = %{version}
Obsoletes: elementary-files < %{version}
%description
Pantheon Files is a modern file manager originally designed for the
Pantheon desktop environment
%package -n lib%{name}-core%{sover}
Summary: The core library for %{name}
%description -n lib%{name}-core%{sover}
Files is a simple file manager for the Pantheon Desktop
This package contains the shared library used by plugins or for embedding
parts of %{name} into other applications.
%package plugins
Summary: A collection of plugins for %{name}
Requires: %{name} = %{version}
%description plugins
Files is a simple file manager for the Pantheon Desktop
This package contains a collection of plugins: contractor, network, ctags,
trash and etc.
%package devel
Summary: Core development files for the "Files" file manager
Requires: lib%{name}-core%{sover} = %{version}
%description devel
Files is a simple file manager for the Pantheon Desktop
This package contains the development files for %{name}.
%lang_package
%prep
%autosetup -n files-%{version}
%build
export CFLAGS="%{optflags} -Wno-error=return-type"
%meson \
-Dwith-zeitgeist=disabled
%meson_build
%install
%meson_install
%find_lang %{appid}
%fdupes %{buildroot}
%ldconfig_scriptlets -n lib%{name}-core%{sover}
%files
%license COPYING
%doc AUTHORS README.md
%{_bindir}/%{appid}{,-daemon,-pkexec}
%{_datadir}/applications/%{appid}.desktop
%{_datadir}/glib-2.0/schemas/%{appid}.gschema.xml
%{_datadir}/metainfo/%{appid}.metainfo.xml
%{_datadir}/polkit-1/actions/%{appid}.policy
%{_datadir}/dbus-1/services/%{appid}{,.Filemanager1}.service
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.elementary.files.service
%{_datadir}/xdg-desktop-portal/portals/%{appid}.portal
%{_datadir}/vala/vapi/pantheon-files-core.vapi
%{_userunitdir}/%{appid}.xdg-desktop-portal.service
%{_libexecdir}/%{appid}.xdg-desktop-portal
%dir %{_datadir}/{xdg-desktop-portal,xdg-desktop-portal/portals}
%files -n lib%{name}-core%{sover}
%{_libdir}/lib%{name}-core.so.*
%files plugins
%dir %{_libdir}/{%{appid},%{appid}/plugins}
%{_libdir}/%{appid}/plugins/*
%files devel
%{_includedir}/%{name}-core
%{_libdir}/pkgconfig/%{name}-core.pc
%{_libdir}/lib%{name}-core.so
%files lang -f %{appid}.lang
%changelog