From 51a80b269b56cd819ac04189bd75383a6bc3b813 Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Tue, 16 Jan 2007 18:05:50 +0000 Subject: [PATCH] auto-import geany-0.10-2 on branch devel from geany-0.10-2.src.rpm --- .cvsignore | 1 + geany.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 71 insertions(+) create mode 100644 geany.spec diff --git a/.cvsignore b/.cvsignore index e69de29..f1e67dc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +geany-0.10.tar.bz2 diff --git a/geany.spec b/geany.spec new file mode 100644 index 0000000..70c5b0f --- /dev/null +++ b/geany.spec @@ -0,0 +1,69 @@ +Name: geany +Version: 0.10 +Release: 2%{?dist} +Summary: A fast and lightweight IDE using GTK2 + +Group: Development/Tools +License: GPL +URL: http://geany.uvena.de/ +Source0: http://files.uvena.de/geany/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: desktop-file-utils, gettext, gtk2-devel, glib2-devel, pango-devel, vte-devel + +%define geany_docdir $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} + +%description +Geany is a small and fast editor with basic features of an +integrated development environment. + +Some features: +- syntax highlighting +- code completion +- code folding +- call tips +- folding +- many supported filetypes like C, Java, PHP, HTML, Python, Perl, Pascal +- symbol lists + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT DOCDIR=%{geany_docdir} +rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.ico +desktop-file-install --delete-original --vendor="fedora" \ + --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ + --mode 0644 \ + $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop +sed -i 's/\r//' %{geany_docdir}/ScintillaLicense.txt +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(-, root, root, -) +%{_bindir}/%{name} +%{_datadir}/%{name} +%{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/doc/%{name}-%{version} +%{_mandir}/man1/geany.1.gz + +%changelog +* Tue Jan 04 2007 Josef Whiter 0.10-2 +- Fixed mixed spaces/tabs problem +- added sed command to install to fix the ScintillaLicense.txt eol encoding +- fixed the docs so they are installed into the right place +- added an rm pixmaps/geany.ico, its only for windows installations + +* Thu Dec 28 2006 Josef Whiter 0.10-1 +- Initial Release diff --git a/sources b/sources index e69de29..d8a424e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2ffaae9b0fa807bdd4be0e6ec0f4a2e5 geany-0.10.tar.bz2