File leafpad.spec of Package leafpad

# norootforbuild

%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1030
%define _prefix			/opt/gnome
%define _sysconfdir		/etc%{_prefix}
%endif

Name:			leafpad
Version:		0.8.17
Release:		0
Summary:		Lightweight Text Editor and Notepad Clone
# http://download.savannah.gnu.org/releases/leafpad/leafpad-%{version}.tar.gz
Source:			leafpad-%{version}.tar.bz2
URL:			http://tarot.freeshell.org/leafpad/
Group:			Productivity/Editors
License:		GNU General Public License (GPL)
BuildRoot:		%{_tmppath}/build-%{name}-%{version}
BuildRequires:	gtk2-devel gettext make gcc gettext-devel intltool
BuildRequires:	libgnomeprint-devel pkgconfig
BuildRequires:	autoconf automake libtool update-desktop-files

%description
Leafpad is a simple GTK+ based text editor. The user interface is
similar to "notepad", and it aims to be lighter than GEdit and KWrite
and to be as useful as them.

Following features are intended...
- Minimum requirement: for portability
- Minimal menu item: to make full use of features and to learn easily
- No toolbar: to maximize area to view text
- Single document interface (SDI): to set out windows to view at a
  time
- Character coding auto detection: to open file quickly without
  multi-codeset problem

Leafpad is released under the GNU General Public License (GPL).

%prep
%setup -q

%build
%configure \
	--enable-print \
	--enable-gnomeprint \
	--enable-chooser

%__make %{?jobs:-j%{jobs}}

%install
%makeinstall
%suse_update_desktop_file -r leafpad Utility TextEditor
%find_lang "%{name}"

%clean
%__rm -rf "%{buildroot}"

%files -f "%{name}.lang"
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/leafpad
%{_datadir}/applications/leafpad.desktop
%{_datadir}/pixmaps/leafpad.png
%{_datadir}/pixmaps/leafpad.xpm
%{_datadir}/icons/*/*/apps/leafpad.*

%changelog
* Mon Nov 02 2009 Pascal Bleser <pascal.bleser@opensuse.org> 0.8.17
- update to 0.8.17

* Wed Sep  3 2008 Pascal Bleser <guru@unixtech.be> 0.8.15
- moved to openSUSE Build Service
- update to 0.8.15:
  * this release adds and update some translations

* Fri Feb 15 2008 Pascal Bleser <guru@unixtech.be> 0.8.14-0.pm.1
- new upstream version

* Sun Dec 16 2007 Pascal Bleser <guru@unixtech.be> 0.8.13-0.pm.1
- new upstream version

* Fri Oct 26 2007 Pascal Bleser <guru@unixtech.be> 0.8.12-0.pm.2
- fixed prefix on 10.3

* Tue Sep 18 2007 Pascal Bleser <guru@unixtech.be> 0.8.12-0.pm.1
- moved to Packman
- new upstream version

* Sun Apr  8 2007 Pascal Bleser <guru@unixtech.be> 0.8.10-1
- new upstream version

* Sat Apr 15 2006 Pascal Bleser <guru@unixtech.be> 0.8.9-1
- removed Packager and Distribution, injected by rpmmacros
- new upstream version

* Sat Apr  8 2006 Pascal Bleser <guru@unixtech.be> 0.8.8-1
- added BuildRequires for suse-release
- added BuildRequires for libgnomeprint-devel
- added -j flag to make
- new upstream version

* Mon Jan 23 2006 Pascal Bleser <guru@unixtech.be> 0.8.7-1
- new upstream version

* Wed Jan  4 2006 Pascal Bleser <guru@unixtech.be> 0.8.6-1
- cleaned spec file
- new upstream version

* Sat Nov 12 2005 Pascal Bleser <guru@unixtech.be> 0.8.5-1
- new upstream version

* Fri Sep 30 2005 Pascal Bleser <guru@unixtech.be> 0.8.4-1
- added debugging symbol package
- new upstream version

* Mon Jul 11 2005 Pascal Bleser <guru@unixtech.be> 0.8.2-1
- version 0.8.2

* Sat May  7 2005 Pascal Bleser <guru@unixtech.be> 0.8.0-1
- version 0.8.0

* Mon Mar 21 2005 Pascal Bleser <guru@unixtech.be> 0.7.9-1
- added GTK+ 2.4 file chooser patch when built against GTK+ >= 2.4.0
- version 0.7.9

* Sat Dec  4 2004 Pascal Bleser <guru@unixtech.be> 0.7.8-1
- version 0.7.8

* Sun Oct 31 2004 Pascal Bleser <guru@unixtech.be> 0.7.5-%{_rel}suse%{_suse_vernum}
- version 0.7.5

* Fri Sep 17 2004 Pascal Bleser <guru@unixtech.be>
- new package

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by