2013-10-29 16:56:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package ansifilter
|
|
|
|
#
|
2020-01-29 20:43:47 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-10-29 16:56:45 +01:00
|
|
|
# Copyright (c) 2013 Pascal Bleser.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-14 09:53:13 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-29 16:56:45 +01:00
|
|
|
#
|
|
|
|
|
2009-07-24 03:02:42 +02:00
|
|
|
|
2017-07-04 11:31:08 +02:00
|
|
|
%bcond_without gui
|
2011-03-31 17:57:08 +02:00
|
|
|
Name: ansifilter
|
2020-01-29 20:43:47 +01:00
|
|
|
Version: 2.16
|
2011-03-31 17:57:08 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: ANSI Terminal Escape Code Converter
|
2018-03-07 21:58:30 +01:00
|
|
|
License: GPL-3.0-or-later
|
2019-11-06 13:52:22 +01:00
|
|
|
Group: Development/Tools/Other
|
2019-11-13 08:13:34 +01:00
|
|
|
URL: http://www.andre-simon.de/
|
2011-03-31 17:57:08 +02:00
|
|
|
Source: http://www.andre-simon.de/zip/ansifilter-%{version}.tar.bz2
|
2017-07-04 11:31:08 +02:00
|
|
|
Source2: http://www.andre-simon.de/zip/ansifilter-%{version}.tar.bz2.asc
|
|
|
|
Source99: ansifilter.keyring
|
2013-10-29 16:56:45 +01:00
|
|
|
BuildRequires: gcc-c++
|
2009-07-24 03:02:42 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Ansifilter handles text files containing ANSI terminal escape codes.
|
|
|
|
The command sequences may be stripped or be interpreted to generate formatted
|
2017-07-04 11:31:08 +02:00
|
|
|
output (HTML, RTF, TeX, LaTeX, BBCode).
|
2009-07-24 03:02:42 +02:00
|
|
|
|
2017-07-04 11:31:08 +02:00
|
|
|
%if %{with gui}
|
2009-07-24 03:02:42 +02:00
|
|
|
%package gui
|
2017-07-04 11:31:08 +02:00
|
|
|
Summary: ANSI Terminal Escape Code Converter - Qt GUI
|
2019-11-06 13:52:22 +01:00
|
|
|
Group: Development/Tools/Other
|
2017-07-04 11:31:08 +02:00
|
|
|
BuildRequires: libqt5-qtbase-devel
|
2018-07-07 11:21:10 +02:00
|
|
|
Requires: %{name} = %{version}
|
2009-07-24 03:02:42 +02:00
|
|
|
|
|
|
|
%description gui
|
2017-07-04 11:31:08 +02:00
|
|
|
This package provides a Qt Graphical User Interface to run %{name}.
|
2009-07-24 03:33:10 +02:00
|
|
|
%endif
|
2009-07-24 03:02:42 +02:00
|
|
|
|
|
|
|
%prep
|
2017-07-04 11:31:08 +02:00
|
|
|
%setup -q
|
|
|
|
%if %{with gui}
|
|
|
|
# Remove pre-configured files which may cause errors with Leap 42.x.
|
|
|
|
rm -v src/qt-gui/moc_*.cpp
|
|
|
|
rm -v src/qt-gui/Makefile*
|
2013-06-13 17:41:52 +02:00
|
|
|
%endif
|
|
|
|
|
2017-07-04 11:31:08 +02:00
|
|
|
%build
|
|
|
|
make \
|
2017-08-05 17:00:34 +02:00
|
|
|
CFLAGS="%{optflags} -fPIC" \
|
2017-07-04 11:31:08 +02:00
|
|
|
CXXFLAGS="%{optflags} -std=c++11 -fPIC" \
|
|
|
|
QMAKE="qmake-qt5" \
|
|
|
|
all \
|
|
|
|
%if %{with gui}
|
|
|
|
all-gui \
|
2009-07-24 03:33:10 +02:00
|
|
|
%endif
|
2017-07-04 11:31:08 +02:00
|
|
|
%{?_smp_mflags}
|
2009-07-24 03:02:42 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-04 11:31:08 +02:00
|
|
|
make \
|
|
|
|
DESTDIR=%{buildroot} \
|
|
|
|
doc_dir="%{_docdir}/%{name}" \
|
|
|
|
install \
|
|
|
|
%if %{with gui}
|
|
|
|
install-gui
|
2018-10-14 09:53:13 +02:00
|
|
|
%endif
|
2009-07-24 03:02:42 +02:00
|
|
|
|
2018-10-14 09:53:13 +02:00
|
|
|
rm %{buildroot}%{_docdir}/%{name}/INSTALL
|
|
|
|
|
2009-07-24 03:02:42 +02:00
|
|
|
%files
|
2017-07-04 11:31:08 +02:00
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%{_docdir}/%{name}/COPYING
|
2018-10-14 09:53:13 +02:00
|
|
|
%{_docdir}/%{name}/ChangeLog.adoc
|
|
|
|
%{_docdir}/%{name}/README.adoc
|
2009-07-24 03:02:42 +02:00
|
|
|
%{_bindir}/ansifilter
|
2017-07-04 11:31:08 +02:00
|
|
|
%{_mandir}/man1/ansifilter.1%{ext_man}
|
2009-07-24 03:02:42 +02:00
|
|
|
|
2017-07-04 11:31:08 +02:00
|
|
|
%if %{with gui}
|
2009-07-24 03:02:42 +02:00
|
|
|
%files gui
|
|
|
|
%{_bindir}/ansifilter-gui
|
|
|
|
%{_datadir}/applications/ansifilter.desktop
|
2017-07-04 11:31:08 +02:00
|
|
|
%{_datadir}/pixmaps/ansifilter.xpm
|
2009-07-24 03:33:10 +02:00
|
|
|
%endif
|
2009-07-24 03:02:42 +02:00
|
|
|
|
|
|
|
%changelog
|