SHA256
1
0
forked from pool/mp
mp/mp.spec
2017-01-16 18:11:36 +00:00

114 lines
3.9 KiB
RPMSpec

#
# spec file for package mp
#
# Copyright (c) 2017 SUSE LINUX 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/
#
Name: mp
Version: 5.2.10
Release: 0
Summary: A text editor for programmers
License: GPL-2.0
Group: Productivity/Text/Editors
Url: http://triptico.com/software/mp.html
Source0: http://triptico.com/download/mp/mp-%{version}.tar.gz
Source1: http://triptico.com/download/mp/mp-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: %{name}-5.desktop
Source4: %{name}-5.png
Source5: %{name}-rpmlintrc
Patch0: %{name}-docdir.patch
BuildRequires: fdupes
BuildRequires: gtk2-devel
BuildRequires: libqt4-devel
BuildRequires: ncurses-devel
BuildRequires: update-desktop-files
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Minimum Profit
A text editor for programmers
Features
* Fully scriptable using a C-like scripting language.
* Unlimited undo levels.
* Complete Unicode support.
* Multiple files can be edited at the same time and blocks copied and pasted among them.
* Syntax highlighting for many popular languages / file formats: C, C++, Perl, Shell Scripts,
Ruby, Php, Python, HTML...
* Creative use of tags: tags created by the external utility ctags are used to move
instantaneously to functions or variables inside your current source tree. Tags are
visually highlighted (underlined), and symbol completion can be triggered to avoid typing
your own function names over and over.
* Intelligent help system: pressing F1 over any word of a text being edited triggers the
underlying system help (calling man when editing C or Shell files, perldoc with Perl, ri
on Ruby, winhelp on MS Windows...).
* Understandable interface: drop-down menus, reasonable default key bindings.
* Configurable keys, menus and colors.
* Text templates can be easily defined / accessed.
* Multiplatform: Console/curses, GTK+, MS Windows.
* Automatic indentation, word wrapping, internal grep, learning / repeating functions.
* Spellchecking support (via the ispell package).
* Multilingual.
* Password-protected, encrypted text files (using the ARCFOUR algorithm).
* It helps you abandon vi, emacs and other six-legged freaks definitely.
%prep
%setup -q
%patch0 -p1
%build
CFLAGS="%{optflags}" \
./config.sh --prefix=%{_prefix} --docdir=%{_docdir}/mp-5
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_bindir}
%make_install
install -D -p -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/applications/%{name}-5.desktop
install -D -p -m 644 %{SOURCE4} %{buildroot}/%{_datadir}/pixmaps/%{name}-5.png
%suse_update_desktop_file %{name}-5 TextEditor
%find_lang minimum-profit
rm %{buildroot}%{_datadir}/doc/packages/mp-5/mpsl_quickref.ps
%fdupes -s %{buildroot}
%post
%desktop_database_post
%postun
%desktop_database_postun
%files -f minimum-profit.lang
%defattr(-,root,root)
%{_bindir}/%{name}-5
%{_bindir}/%{name}sl
%dir %{_docdir}/%{name}-5
%{_docdir}/%{name}-5/*
%{_mandir}/man1/%{name}-5.1%{ext_man}
%dir %{_datadir}/%{name}-5
%{_datadir}/%{name}-5/*
%{_datadir}/applications/%{name}-5.desktop
%{_datadir}/pixmaps/%{name}-5.png
%changelog