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 http://bugs.opensuse.org/
#
# 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
URL: http://os.ghalkes.nl/tilde.html
Source0: http://os.ghalkes.nl/dist/tilde-0.3.4.tar.bz2
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
%else
BuildRequires: pkgconfig
%endif
%endif
%if 0%{?fedora}%{?rhel_version}%{?centos_version}%{?mdkversion}%{?rhel}
BuildRequires: pkgconfig
%endif
%description
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.
%prep
%setup -q
%build
%if 0%{?fedora} < 23
./configure --prefix=%{_prefix} --docdir=%{_docdir}/%{name} --dump-log
%else
CXXFLAGS='-O2 -std=c++11' ./configure --prefix=%{_prefix} --docdir=%{_docdir}/%{name} --dump-log
%endif
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%{_bindir}/tilde
%docdir %{_docdir}/%{name}
%{_docdir}/%{name}
%{_mandir}/man1/*