Group :: Development/Other
RPM: geany
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: geany
Version: 0.14
Release: alt1
Summary: A fast and lightweight IDE using GTK2
License: GPL
Group: Development/Other
Url: http://geany.uvena.de/
Packager: Slava Semushin <php-coder at altlinux.ru>
Source: http://ovh.dl.sourceforge.net/%name/%name-%version.tar.bz2
Requires: libvte
BuildPreReq: desktop-file-utils
BuildRequires: libgtk+2-devel gcc-c++ intltool
%description
Geany is a small and lightweight integrated development environment.
It was developed to provide a small and fast IDE, which has only a few
dependencies from other packages. Another goal was to be as
independent as possible from a special Desktop Environment like KDE or
GNOME. So it is using only the GTK2 toolkit and therefore you need
only the GTK2 runtime libraries to run Geany.
%prep
%setup
# - Install THANKS file
sed -i '/TODO/a \
$(INSTALL_DATA) $(top_srcdir)/THANKS $(DOCDIR)
' doc/Makefile.am
# - don't force -Os gcc optimization for Scintilla
# (based on patch from OpenBSD:
# http://www.openbsd.org/cgi-bin/cvsweb/ports/devel/geany/patches/patch-scintilla_Makefile_in)
sed -i 's|-Os ||' scintilla/Makefile.am
%build
%autoreconf
%configure --docdir=%_defaultdocdir/%name-%version
%make_build --silent --no-print-directory
%install
%make_install --silent --no-print-directory DESTDIR=%buildroot install
%find_lang %name
%post
%update_menus
%update_desktopdb
%postun
%clean_menus
%clean_desktopdb
%files -f %name.lang
%_bindir/%name
%_datadir/%name/
%_man1dir/%name.1.*
%_desktopdir/%name.desktop
%_pixmapsdir/%name.png
%_miconsdir/classviewer-*.png
%_defaultdocdir/%name-%version/
%_libdir/%name/
%exclude %_includedir/%name
%exclude %_pkgconfigdir/%name.pc
%changelog
…
Full changelog you can see here
%define _unpackaged_files_terminate_build 1
Name: geany
Version: 0.14
Release: alt1
Summary: A fast and lightweight IDE using GTK2
License: GPL
Group: Development/Other
Url: http://geany.uvena.de/
Packager: Slava Semushin <php-coder at altlinux.ru>
Source: http://ovh.dl.sourceforge.net/%name/%name-%version.tar.bz2
Requires: libvte
BuildPreReq: desktop-file-utils
BuildRequires: libgtk+2-devel gcc-c++ intltool
%description
Geany is a small and lightweight integrated development environment.
It was developed to provide a small and fast IDE, which has only a few
dependencies from other packages. Another goal was to be as
independent as possible from a special Desktop Environment like KDE or
GNOME. So it is using only the GTK2 toolkit and therefore you need
only the GTK2 runtime libraries to run Geany.
%prep
%setup
# - Install THANKS file
sed -i '/TODO/a \
$(INSTALL_DATA) $(top_srcdir)/THANKS $(DOCDIR)
' doc/Makefile.am
# - don't force -Os gcc optimization for Scintilla
# (based on patch from OpenBSD:
# http://www.openbsd.org/cgi-bin/cvsweb/ports/devel/geany/patches/patch-scintilla_Makefile_in)
sed -i 's|-Os ||' scintilla/Makefile.am
%build
%autoreconf
%configure --docdir=%_defaultdocdir/%name-%version
%make_build --silent --no-print-directory
%install
%make_install --silent --no-print-directory DESTDIR=%buildroot install
%find_lang %name
%post
%update_menus
%update_desktopdb
%postun
%clean_menus
%clean_desktopdb
%files -f %name.lang
%_bindir/%name
%_datadir/%name/
%_man1dir/%name.1.*
%_desktopdir/%name.desktop
%_pixmapsdir/%name.png
%_miconsdir/classviewer-*.png
%_defaultdocdir/%name-%version/
%_libdir/%name/
%exclude %_includedir/%name
%exclude %_pkgconfigdir/%name.pc
%changelog
…
Full changelog you can see here