Blame elementary-files.spec

7e41f62
%global commit      162d11f8ee73b3859ad42b5f69cdd355d033b8a7
7e41f62
%global shortcommit %(c=%{commit}; echo ${c:0:7})
7e41f62
%global commitdate  20210218
7e41f62
5c5c46a
%global srcname files
1de2e63
%global appname io.elementary.files
5c5c46a
5c5c46a
%global __provides_exclude_from ^%{_libdir}/(gtk-3.0)|(%{appname})/.*\\.so$
5c5c46a
5c5c46a
Name:           elementary-files
5c5c46a
Summary:        File manager from elementary
1de2e63
Version:        4.5.0
e1e3880
Release:        %autochangelog -e %{commitdate}git%{shortcommit}
5c5c46a
License:        GPLv3
5c5c46a
5c5c46a
URL:            https://github.com/elementary/%{srcname}
7e41f62
Source0:        %{url}/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz
5c5c46a
5c5c46a
# Install contracts for compressing/uncompressing files with file-roller
5c5c46a
Source1:        file-roller-compress.contract
5c5c46a
Source2:        file-roller-extract-here.contract
5c5c46a
5c5c46a
BuildRequires:  desktop-file-utils
5c5c46a
BuildRequires:  gettext
5c5c46a
BuildRequires:  libappstream-glib
6d31406
BuildRequires:  meson >= 0.47.0
7e41f62
BuildRequires:  vala >= 0.48.2
5c5c46a
7db1ccb
BuildRequires:  pkgconfig(cloudproviders) >= 0.3.0
5c5c46a
BuildRequires:  pkgconfig(gee-0.8)
383e427
BuildRequires:  pkgconfig(gio-2.0) >= 2.40
383e427
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.40
383e427
BuildRequires:  pkgconfig(glib-2.0) >= 2.40
383e427
BuildRequires:  pkgconfig(gmodule-2.0) >= 2.40
383e427
BuildRequires:  pkgconfig(gobject-2.0) >= 2.40
7e41f62
BuildRequires:  pkgconfig(granite) >= 6.0.0
383e427
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.25
5c5c46a
BuildRequires:  pkgconfig(libcanberra) >= 0.30
383e427
BuildRequires:  pkgconfig(libgit2-glib-1.0)
7e41f62
BuildRequires:  pkgconfig(libhandy-1) >= 0.83.0
5c5c46a
BuildRequires:  pkgconfig(libnotify) >= 0.7.2
5c5c46a
BuildRequires:  pkgconfig(pango) >= 1.1.2
7e41f62
BuildRequires:  pkgconfig(plank) >= 0.10.9
5c5c46a
BuildRequires:  pkgconfig(sqlite3)
5c5c46a
5c5c46a
Requires:       contractor
5c5c46a
Requires:       file-roller
5c5c46a
5c5c46a
%description
5c5c46a
The simple, powerful, and sexy file manager from elementary.
5c5c46a
5c5c46a
7e41f62
%package        portal
7e41f62
Summary:        File manager from elementary (flatpak file chooser portal)
7e41f62
Requires:       %{name}%{?_isa} = %{version}-%{release}
7e41f62
Requires:       xdg-desktop-portal
7e41f62
%description    portal
7e41f62
The simple, powerful, and sexy file manager from elementary.
7e41f62
7e41f62
This package contains a file chooser portal implementation for flatpak.
7e41f62
7e41f62
5c5c46a
%package        devel
5c5c46a
Summary:        File manager from elementary (development headers)
5c5c46a
Requires:       %{name}%{?_isa} = %{version}-%{release}
5c5c46a
%description    devel
5c5c46a
The simple, powerful, and sexy file manager from elementary.
5c5c46a
5c5c46a
This package contains the development headers.
5c5c46a
5c5c46a
5c5c46a
%prep
7e41f62
%autosetup -n %{srcname}-%{commit} -p1
5c5c46a
5c5c46a
5c5c46a
%build
7e41f62
%meson -Dwith-zeitgeist=disabled
a901524
%meson_build
5c5c46a
5c5c46a
5c5c46a
%install
a901524
%meson_install
5c5c46a
5c5c46a
%find_lang %{appname}
5c5c46a
5c5c46a
# remove unused pixmaps
5c5c46a
rm -r %{buildroot}/%{_datadir}/pixmaps
5c5c46a
5c5c46a
# install file-roller contracts
5c5c46a
mkdir -p %{buildroot}/%{_datadir}/contractor
5c5c46a
cp -pav %{SOURCE1} %{buildroot}/%{_datadir}/contractor/
5c5c46a
cp -pav %{SOURCE2} %{buildroot}/%{_datadir}/contractor/
5c5c46a
5c5c46a
5c5c46a
%check
5c5c46a
desktop-file-validate \
5c5c46a
    %{buildroot}/%{_datadir}/applications/%{appname}.desktop
5c5c46a
5c5c46a
appstream-util validate-relax --nonet \
5c5c46a
    %{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml
5c5c46a
5c5c46a
7e41f62
%post portal
7e41f62
%systemd_user_post %{appname}.xdg-desktop-portal.service
7e41f62
7e41f62
%preun portal
7e41f62
%systemd_user_preun %{appname}.xdg-desktop-portal.service
7e41f62
7e41f62
5c5c46a
%files -f %{appname}.lang
5c5c46a
%doc AUTHORS README.md
5c5c46a
%license COPYING
5c5c46a
5c5c46a
%{_bindir}/%{appname}
5c5c46a
%{_bindir}/%{appname}-daemon
5c5c46a
%{_bindir}/%{appname}-pkexec
5c5c46a
5c5c46a
%{_libdir}/%{appname}/
a901524
%{_libdir}/libpantheon-files-core.so.4*
a901524
%{_libdir}/libpantheon-files-widgets.so.4*
5c5c46a
5c5c46a
%{_datadir}/applications/%{appname}.desktop
5c5c46a
%{_datadir}/contractor/*.contract
5c5c46a
%{_datadir}/dbus-1/services/%{appname}.service
a901524
%{_datadir}/dbus-1/services/%{appname}.Filemanager1.service
5c5c46a
%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml
5c5c46a
%{_datadir}/metainfo/%{appname}.appdata.xml
5c5c46a
%{_datadir}/polkit-1/actions/%{appname}.policy
5c5c46a
7e41f62
%files portal
7e41f62
%{_libexecdir}/%{appname}.xdg-desktop-portal
7e41f62
%{_userunitdir}/%{appname}.xdg-desktop-portal.service
7e41f62
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.elementary.files.service
7e41f62
%{_datadir}/xdg-desktop-portal/portals/io.elementary.files.portal
5c5c46a
5c5c46a
%files devel
5c5c46a
%{_includedir}/pantheon-files-core/
a901524
%{_includedir}/pantheon-files-widgets.h
5c5c46a
5c5c46a
%{_libdir}/libpantheon-files-core.so
5c5c46a
%{_libdir}/libpantheon-files-widgets.so
5c5c46a
5c5c46a
%{_libdir}/pkgconfig/pantheon-files-core.pc
5c5c46a
%{_libdir}/pkgconfig/pantheon-files-widgets.pc
5c5c46a
5c5c46a
%{_datadir}/vala/vapi/pantheon-files-core.vapi
5c5c46a
%{_datadir}/vala/vapi/pantheon-files-widgets.vapi
5c5c46a
5c5c46a
5c5c46a
%changelog
e1e3880
%autochangelog