99856e0
Name:           leafpad
ef9854c
Version:        0.8.19
55db348
Release:        %autorelease
266a1ee
99856e0
Summary:        GTK+ based simple text editor
99856e0
00c82ae
License:        GPL-2.0-or-later
99856e0
URL:            http://tarot.freeshell.org/leafpad/
96aa499
Source0:        http://savannah.nongnu.org/download/leafpad/%{name}-%{version}.tar.gz
6058a5f
Patch0:         01-gcc-format.patch
99856e0
cb21a15
BuildRequires:  gcc-c++
4ae2084
BuildRequires:  gtk2-devel >= 2.4
4ae2084
BuildRequires:  desktop-file-utils
af81314
BuildRequires:  gettext
Orion Poplawski 6f5d59b
BuildRequires:  intltool
ef9854c
BuildRequires:  make
99856e0
99856e0
%description
1f33e02
Leafpad is a GTK+ based simple text editor. The user interface is similar to
1f33e02
Notepad. It aims to be lighter than GEdit and KWrite, and to be as useful as
1f33e02
them.
99856e0
4ae2084
99856e0
%prep
99856e0
%setup -q
6058a5f
sed -i 's/g_strcasecmp/g_ascii_strcasecmp/g' src/main.c
6058a5f
sed -i 's/g_strcasecmp/g_ascii_strcasecmp/g' src/dnd.c
6058a5f
sed -i 's/g_strcasecmp/g_ascii_strcasecmp/g' src/selector.c
ef9854c
%patch -P0
ef9854c
4ae2084
99856e0
%build
96aa499
%configure --enable-chooser
6058a5f
%make_build
4ae2084
99856e0
99856e0
%install
6058a5f
%make_install
4ae2084
4ae2084
desktop-file-install --delete-original \
4ae2084
  --dir %{buildroot}%{_datadir}/applications \
4ae2084
  %{buildroot}%{_datadir}/applications/leafpad.desktop
4ae2084
b0ed6a4
%find_lang %{name}
99856e0
4ae2084
6058a5f
%ldconfig_scriptlets
4ae2084
b0ed6a4
%files -f %{name}.lang
6058a5f
%license COPYING
6058a5f
%doc AUTHORS ChangeLog README
96aa499
%{_bindir}/%{name}
96aa499
%{_datadir}/applications/*%{name}.desktop
78a5786
%{_datadir}/icons/hicolor/*/*/*
3f92609
%{_datadir}/pixmaps/leafpad.*
ef9854c
%{_mandir}/man1/%{name}.1*
99856e0
99856e0
%changelog
55db348
%autochangelog