File medit.spec of Package medit

# spec file for package medit
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012-2014 Malcolm J Lewis <>
# 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

Name:           medit
# To keep in sync with po/maintain
%define		moo_package_name %{name}-1
Version:        1.2.0
Release:        0
Summary:        A programming and around-programming text editor
License:        LGPL-2.1
Group:          Productivity/Text/Editors
# PATCH-FIX-OPENSUSE medit-fix-configure-errors.patch -- Fix docdir location and add linker flag for gmodule-no-export-2.0.
Patch0:         medit-fix-configure-errors.patch
# PATCH-FIX-OPENSUSE medit-fix-incorrect-fsf-address.patch -- Fix FSF address warnings.
Patch1:         medit-fix-incorrect-fsf-address.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gettext-tools
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  perl-XML-Parser
BuildRequires:  python-gtk-devel
BuildRequires:  python-xml
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(atk)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(x11)
Requires:       python-gobject2
Requires:       python-gtk
Requires:       python-vte
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Started originally as a simple built-in editor component in GGAP,
it grew up to a real text editor.

 * Configurable syntax highlighting.
 * Configurable keyboard accelerators.
 * Multiplatform - works on unix and windows.
 * Plugins: can be written in C, Python, or Lua.
 * Configurable tools available from the main and context menus.
   They can be written in Python or Lua, or it can be a shell script.
 * Regular expression search/replace, grep frontend, builtin file
   selector, etc.

%setup -q
%patch0 -p1
%patch1 -p1

%configure --enable-shared \
make %{?_smp_mflags} V=1

%suse_update_desktop_file -i %{name}
%fdupes %{buildroot}
%find_lang %{moo_package_name}-gsv
mv %{moo_package_name}-gsv.lang %{name}.lang
%find_lang %{moo_package_name}
cat %{moo_package_name}.lang >> %{name}.lang
chmod 0755 %{buildroot}%{_datadir}/%{moo_package_name}/language-specs/
chmod 0755 %{buildroot}%{_datadir}/%{moo_package_name}/python/
rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache

%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130



%files lang -f %{name}.lang

openSUSE Build Service is sponsored by