File emelfm2.spec of Package emelfm2
#
# spec file for package emelfm2
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
#
Name: emelfm2
Version: 0.9.1
Release: 0
License: GPL-3.0+
Summary: Twin-panel File Manager
Url: http://emelfm2.net/
Group: Productivity/File utilities
Source0: http://emelfm2.net/rel/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE emelfm2-0.9.1-unrar.patch lazy.kent@opensuse.org -- use unrar instead of rar to unpack rar-archives
Patch0: emelfm2-0.9.1-unrar.patch
# PATCH-FEATURE-OPENSUSE emelfm2-0.9.0-extensions_column.patch lazy.kent@opensuse.org -- enable extensions-column in filelists
Patch1: emelfm2-0.9.0-extensions_column.patch
BuildRequires: fdupes
BuildRequires: file-devel
BuildRequires: libacl-devel
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gimpthumb-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtkspell-2.0)
BuildRequires: pkgconfig(udisks)
BuildRequires: update-desktop-files
Requires: udisks
Recommends: %{name}-lang
Recommends: p7zip
Recommends: rar
Recommends: unrar
Recommends: unzip
Recommends: xz
Recommends: zip
Suggests: tracker
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
emelFM2 is a file manager for UNIX-like operating systems. It uses
a simple and efficient interface pioneered by Norton Commander, in
the 1980s. The main window is divided into three parts, described as
"panes" or "panels". Two of those (side-by-side or top-to-bottom) show
the contents of selected filesystem directories. The third pane, at
the bottom of the window, shows the output of commands executed within
the program. Those panes can be resized, and any one or two of them can
be hidden and unhidden, on request. A built-in command-line, toolbar
buttons or assigned keys can be used to initiate commands.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
make %{?_smp_mflags} \
PREFIX=%{_prefix} \
CFLAGS="%{optflags}" \
STRIP=0 \
DOC_DIR=%{_defaultdocdir}/%{name} \
ICON_DIR=%{_datadir}/%{name}/icons/ \
LIB_DIR=%{_libdir}/ \
LOCALE_DIR=%{_datadir}/locale/ \
PLUGINS_DIR=%{_libdir}/%{name}/plugins/ \
DOCS_VERSION=0 \
NEW_COMMAND=1 \
WITH_CUSTOMMOUSE=1 \
WITH_GTK2=1 \
WITH_KERNELFAM=1 \
WITH_LATEST=1 \
WITH_THUMBLIB=0 \
WITH_THUMBS=1 \
WITH_TRANSPARENCY=1 \
WITH_UDISKS=1 \
EDITOR_SPELLCHECK=1 \
WITH_ACL=1 \
WITH_OUTPUTSTYLES=1 \
WITH_TRACKER=1
%install
make install \
DOC_DIR=%{buildroot}%{_defaultdocdir}/%{name} \
ICON_DIR=%{buildroot}/%{_datadir}/%{name}/icons/ \
LIB_DIR=%{buildroot}/%{_libdir}/ \
LOCALE_DIR=%{buildroot}/%{_datadir}/locale/ \
PLUGINS_DIR=%{buildroot}/%{_libdir}/%{name}/plugins/ \
PREFIX=%{buildroot}%{_prefix}/
make install_i18n \
PREFIX=%{buildroot}%{_prefix}/
rm -rf %{buildroot}%{_datadir}/application-registry
rm -f %{buildroot}%{_defaultdocdir}/%{name}/{INSTALL,SPEC}
install -Dm 0644 icons/emelfm2_24.png \
%{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
install -Dm 0644 icons/emelfm2_32.png \
%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -Dm 0644 icons/emelfm2_48.png \
%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%suse_update_desktop_file -r %{name} GTK System FileManager
%fdupes -s %{buildroot}%{_datadir}/
%find_lang %{name} %{?no_lang_C}
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.png
%doc %{_defaultdocdir}/%{name}/
%{_libdir}/%{name}/
%doc %{_mandir}/man?/*
%files lang -f %{name}.lang
%changelog