Blame elementary-files.spec

5c5c46a
%global srcname files
5c5c46a
%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
a901524
Version:        4.1.4
3f85a54
Release:        1%{?dist}
5c5c46a
License:        GPLv3
5c5c46a
5c5c46a
URL:            https://github.com/elementary/%{srcname}
3f85a54
Source0:        %{url}/archive/%{version}/%{name}-%{version}.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
a901524
BuildRequires:  meson
5c5c46a
BuildRequires:  vala >= 0.34.0
5c5c46a
5c5c46a
BuildRequires:  pkgconfig(dbus-glib-1)
5c5c46a
BuildRequires:  pkgconfig(gail-3.0)
5c5c46a
BuildRequires:  pkgconfig(gee-0.8)
5c5c46a
BuildRequires:  pkgconfig(gio-2.0)
5c5c46a
BuildRequires:  pkgconfig(gio-unix-2.0)
5c5c46a
BuildRequires:  pkgconfig(glib-2.0) >= 2.29
5c5c46a
BuildRequires:  pkgconfig(gmodule-2.0)
5c5c46a
BuildRequires:  pkgconfig(granite) >= 0.3.0
5c5c46a
BuildRequires:  pkgconfig(gthread-2.0)
5c5c46a
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22
5c5c46a
BuildRequires:  pkgconfig(libcanberra) >= 0.30
5c5c46a
BuildRequires:  pkgconfig(libnotify) >= 0.7.2
5c5c46a
BuildRequires:  pkgconfig(pango) >= 1.1.2
5c5c46a
BuildRequires:  pkgconfig(plank)
5c5c46a
BuildRequires:  pkgconfig(sqlite3)
5c5c46a
BuildRequires:  pkgconfig(unity) >= 4.0.0
5c5c46a
BuildRequires:  pkgconfig(zeitgeist-2.0)
5c5c46a
5c5c46a
Provides:       pantheon-files = %{version}-%{release}
5c5c46a
Obsoletes:      pantheon-files < 0.3.5-9.20180826.git39b673c
5c5c46a
5c5c46a
Requires:       contractor
5c5c46a
Requires:       file-roller
5c5c46a
5c5c46a
%description
5c5c46a
The simple, powerful, and sexy file manager from elementary.
5c5c46a
5c5c46a
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
3f85a54
%autosetup -n %{srcname}-%{version} -p1
5c5c46a
5c5c46a
5c5c46a
%build
a901524
%meson
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
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}/gtk-3.0/modules/libpantheon-filechooser-module.so
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}/%{appname}/
5c5c46a
%{_datadir}/metainfo/%{appname}.appdata.xml
5c5c46a
%{_datadir}/polkit-1/actions/%{appname}.policy
5c5c46a
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
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