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
7e41f62
Release:        3.%{commitdate}git%{shortcommit}%{?dist}
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
7e41f62
* Thu Feb 18 2021 Fabio Valentini <decathorpe@gmail.com> - 4.5.0-3.20210218git162d11f
7e41f62
- Bump to commit 162d11f. Rebuilt for granite 6 soname bump.
7e41f62
f836a4c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-2
f836a4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f836a4c
1de2e63
* Wed Aug 12 2020 Fabio Valentini <decathorpe@gmail.com> - 4.5.0-1
1de2e63
- Update to version 4.5.0.
1de2e63
031a30e
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.4-2
031a30e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
031a30e
615e08b
* Fri Jul 03 2020 Fabio Valentini <decathorpe@gmail.com> - 4.4.4-1
615e08b
- Update to version 4.4.4.
615e08b
6d31406
* Tue Jun 02 2020 Fabio Valentini <decathorpe@gmail.com> - 4.4.3-1
6d31406
- Update to version 4.4.3.
6d31406
- Disable useless libunity / zeitgeist integrations.
6d31406
9ce491b
* Fri Apr 03 2020 Fabio Valentini <decathorpe@gmail.com> - 4.4.2-1
9ce491b
- Update to version 4.4.2.
9ce491b
faf9858
* Tue Mar 03 2020 Fabio Valentini <decathorpe@gmail.com> - 4.4.1-1
faf9858
- Update to version 4.4.1.
faf9858
6fe026f
* Fri Feb 14 2020 Fabio Valentini <decathorpe@gmail.com> - 4.4.0-1
6fe026f
- Update to version 4.4.0.
6fe026f
0ba5f0c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-2
0ba5f0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0ba5f0c
383e427
* Wed Jan 08 2020 Fabio Valentini <decathorpe@gmail.com> - 4.3.0-1
383e427
- Update to version 4.3.0.
383e427
960ba1c
* Sat Nov 02 2019 Fabio Valentini <decathorpe@gmail.com> - 4.2.0-2
960ba1c
- Include upstream patch to fix compilation with newer versions of vala.
960ba1c
7db1ccb
* Mon Sep 16 2019 Fabio Valentini <decathorpe@gmail.com> - 4.2.0-1
7db1ccb
- Update to version 4.2.0.
7db1ccb
dd69774
* Thu Aug 01 2019 Fabio Valentini <decathorpe@gmail.com> - 4.1.9-1
dd69774
- Update to version 4.1.9.
dd69774
0e04f59
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.8-2
0e04f59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0e04f59
7e62e6a
* Fri May 03 2019 Fabio Valentini <decathorpe@gmail.com> - 4.1.8-1
7e62e6a
- Update to version 4.1.8.
7e62e6a
1d4dd3d
* Tue Apr 16 2019 Adam Williamson <awilliam@redhat.com> - 4.1.7-2
1d4dd3d
- Rebuild with Meson fix for #1699099
1d4dd3d
788b465
* Sat Apr 13 2019 Fabio Valentini <decathorpe@gmail.com> - 4.1.7-1
788b465
- Update to version 4.1.7.
788b465
cf12ce3
* Sat Mar 30 2019 Fabio Valentini <decathorpe@gmail.com> - 4.1.6-1
cf12ce3
- Update to version 4.1.6.
cf12ce3
3951fc2
* Thu Feb 14 2019 Fabio Valentini <decathorpe@gmail.com> - 4.1.5-1
3951fc2
- Update to version 4.1.5.
3951fc2
a901524
* Thu Jan 31 2019 Fabio Valentini <decathorpe@gmail.com> - 4.1.4-1
a901524
- Update to version 4.1.4.
a901524
3f85a54
* Thu Oct 18 2018 Fabio Valentini <decathorpe@gmail.com> - 4.0-1
3f85a54
- Update to version 4.0.
3f85a54
5c5c46a
* Tue Aug 28 2018 Fabio Valentini <decathorpe@gmail.com> - 0.3.5-9.20180826.git39b673c
5c5c46a
- Initial package renamed from pantheon-files.
5c5c46a