51a80b2
Name:      geany
00e07c3
Version:   0.14
00e07c3
Release:   1%{?dist}
51a80b2
Summary:   A fast and lightweight IDE using GTK2
51a80b2
51a80b2
Group:     Development/Tools
7dd80d6
License:   GPLv2+
51a80b2
URL:       http://geany.uvena.de/
51a80b2
Source0:   http://files.uvena.de/geany/%{name}-%{version}.tar.bz2
bee0063
51a80b2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
51a80b2
42caa9f
BuildRequires: desktop-file-utils, gettext, gtk2-devel, glib2-devel, pango-devel
7dd80d6
BuildRequires: perl(XML::Parser)
42caa9f
Requires: vte
51a80b2
51a80b2
%define geany_docdir $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
51a80b2
51a80b2
%description
51a80b2
Geany is a small and fast editor with basic features of an 
51a80b2
integrated development environment.
51a80b2
51a80b2
Some features:
51a80b2
- syntax highlighting
51a80b2
- code completion
51a80b2
- code folding
51a80b2
- call tips
51a80b2
- folding
51a80b2
- many supported filetypes like C, Java, PHP, HTML, Python, Perl, Pascal
51a80b2
- symbol lists
51a80b2
00e07c3
%package devel
00e07c3
Summary:   Header files for building Geany plug-ins
00e07c3
Group:     Development/Tools
00e07c3
Requires:  geany = %{version}-%{release}
51a80b2
00e07c3
%description devel
00e07c3
This package contains the header files and pkg-config file needed for building
00e07c3
Geany plug-ins. You do not need to install this package to use Geany.
0b751a1
00e07c3
%prep
00e07c3
%setup -q
d4033e6
51a80b2
%build
d4033e6
%configure --docdir=%{_docdir}/%{name}-%{version}
51a80b2
make %{?_smp_mflags}
51a80b2
51a80b2
%install
51a80b2
rm -rf $RPM_BUILD_ROOT
51a80b2
make install DESTDIR=$RPM_BUILD_ROOT DOCDIR=%{geany_docdir}
51a80b2
rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.ico
51a80b2
desktop-file-install --delete-original --vendor="fedora"        \
51a80b2
        --dir=${RPM_BUILD_ROOT}%{_datadir}/applications         \
51a80b2
        --mode 0644                                             \
51a80b2
        $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
51a80b2
sed -i 's/\r//' %{geany_docdir}/ScintillaLicense.txt
51a80b2
%find_lang %{name}
51a80b2
7dd80d6
# Remove static library *.la files
00e07c3
rm -rf $RPM_BUILD_ROOT%{_libdir}/geany/*.la
7dd80d6
51a80b2
%clean
51a80b2
rm -rf $RPM_BUILD_ROOT
51a80b2
51a80b2
%files -f %{name}.lang
51a80b2
%defattr(-, root, root, -)
51a80b2
%{_bindir}/%{name}
51a80b2
%{_datadir}/%{name}
7dd80d6
%{_libdir}/%{name}
51a80b2
%{_datadir}/applications/fedora-%{name}.desktop
51a80b2
%{_datadir}/pixmaps/%{name}.png
7dd80d6
%{_datadir}/icons/hicolor/16x16/apps/*.png
51a80b2
%{_datadir}/doc/%{name}-%{version}
51a80b2
%{_mandir}/man1/geany.1.gz
51a80b2
00e07c3
%files devel
00e07c3
%defattr(-, root, root, -)
00e07c3
%{_includedir}/geany
00e07c3
%{_libdir}/pkgconfig/geany.pc
00e07c3
51a80b2
%changelog
00e07c3
* Sun May 11 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14-1
00e07c3
- Update to 0.14
00e07c3
- New -devel sub-package for header files
00e07c3
- Corectly remove the .la libtool files
00e07c3
- Remove hack relating to finding the system installed html files
00e07c3
- No longer correct the desktop file
00e07c3
d4033e6
* Mon Mar 24 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.13-2
d4033e6
- Fix docdir/doc_dir so geany correctly finds the system installed html docs (BZ
d4033e6
  438534) 
d4033e6
39fbd07
* Sun Feb 24 2008 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.13-1
39fbd07
- Update to version 0.13
39fbd07
d4033e6
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.12-5
d4033e6
- Autorebuild for GCC 4.3
d4033e6
7dd80d6
* Thu Oct 18 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.12-4
7dd80d6
- Fix license tag
7dd80d6
- Package new library files
7dd80d6
- Remove static library .la files
7dd80d6
- Package new icons
7dd80d6
7dd80d6
* Thu Oct 18 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.12-3
7dd80d6
- Fix Version entry in .desktop file again
7dd80d6
7dd80d6
* Thu Oct 18 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.12-2
7dd80d6
- Add a BuildRequires for perl(XML::Parser)
7dd80d6
7dd80d6
* Thu Oct 18 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.12-1
7dd80d6
- Update to version 0.12
7dd80d6
0b751a1
* Sun Sep  9 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.11-2
0b751a1
- Fix Version entry in .desktop file
0b751a1
0b751a1
* Sun Sep  9 2007 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.11-1
0b751a1
- Update to version 0.11
0b751a1
72d3f13
* Fri Feb 23 2007 Josef Whiter <josef@toxicpanda.com> 0.10.1-1
72d3f13
- updating to 0.10.1 of geany
72d3f13
42caa9f
* Thu Jan 25 2007 Josef Whiter <josef@toxicpanda.com> 0.10-5
42caa9f
- removed autoconf/automake/vte-devel from BR as they are not needed
42caa9f
- removed patch to dynamically link in libvte
42caa9f
- adding patch to find appropriate libvte library from the vte package
42caa9f
- added vte as a Requires
42caa9f
2f9f0a5
* Wed Jan 24 2007 Josef Whiter <josef@toxicpanda.com> 0.10-4
2f9f0a5
- added autoconf and automake as a BR
2f9f0a5
bee0063
* Wed Jan 24 2007 Josef Whiter <josef@toxicpanda.com> 0.10-3
2f9f0a5
- adding patch to dynamically link in libvte instead of using g_module_open
bee0063
51a80b2
* Tue Jan 04 2007 Josef Whiter <josef@toxicpanda.com> 0.10-2
51a80b2
- Fixed mixed spaces/tabs problem
51a80b2
- added sed command to install to fix the ScintillaLicense.txt eol encoding
51a80b2
- fixed the docs so they are installed into the right place
51a80b2
- added an rm pixmaps/geany.ico, its only for windows installations
51a80b2
51a80b2
* Thu Dec 28 2006 Josef Whiter <josef@toxicpanda.com> 0.10-1
51a80b2
- Initial Release