File tilde.spec of Package tilde-0.3.4

# spec file for package tilde
# Copyright (c) 2010 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.

# Please submit bugfixes or comments via

# norootforbuild
%define debug_package %{nil}

Name:           tilde
Version:        0.3.4
Release:        5
Summary:        An intuitive text editor for the terminal
Group:          Applications/Editors
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

License:        GPL-3.0-only

BuildRequires:  gcc-c++, libtool, gettext, libtranscript-devel >= 0.2.0, libt3widget-devel >= 0.2.0
BuildRequires:  libunistring-devel, libt3config-devel >= 0.2.6, libt3highlight-devel >= 0.2.1
BuildRequires:  libattr-devel, libacl-devel
%if 0%{?suse_version}
%if %{?suse_version} >= 1000
BuildRequires:  pkg-config
BuildRequires:  pkgconfig
%if 0%{?fedora}%{?rhel_version}%{?centos_version}%{?mdkversion}%{?rhel}
BuildRequires:  pkgconfig

Tilde is a text editor for the console/terminal, which provides an intuitive
interface for people accustomed to GUI environments such as Gnome, KDE
and Windows. For example, the short-cut to copy the current selection is
Control-C, and to paste the previously copied text the short-cut Control-V can
be used. As another example, the File menu can be accessed by pressing Meta-F.

%setup -q

%if 0%{?fedora} < 23
./configure --prefix=%{_prefix} --docdir=%{_docdir}/%{name} --dump-log
CXXFLAGS='-O2 -std=c++11' ./configure --prefix=%{_prefix} --docdir=%{_docdir}/%{name} --dump-log
make %{?_smp_mflags}

make install DESTDIR=%{buildroot}

rm -rf %{buildroot}

%defattr(-, root, root, -)
%docdir %{_docdir}/%{name}
openSUSE Build Service is sponsored by