X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gnome-terminal.spec;h=a5e527aefd1e9c3ff70c72ab089e08ede4670535;hb=4ac35edaf0ca70d47206b16c46b26036786649e8;hp=bd000243d3b654ff8e867af4aef5d471d0a0926e;hpb=3a8ad25687ccac2a7892278a3f3f732b94529e20;p=packages%2Fgnome-terminal.git diff --git a/gnome-terminal.spec b/gnome-terminal.spec index bd00024..a5e527a 100644 --- a/gnome-terminal.spec +++ b/gnome-terminal.spec @@ -1,44 +1,93 @@ +# +# Conditional build: +# This causes key do nothing on the first tab (instead of +# passing the keypress to the application running in the terminal). Ditto +# for the last tab. This is kinda annoying. +%bcond_with disable_prev_next_tab_sensitivity_changes +# This is specific to PLD and causes an "unknown term type" on most other +# hosts I have to work on (the rest of the world uses xterm for g-t) +%bcond_with term_voodoo +# This allows to mark on-terminal urls containing square brackets (eg. to +# copy them or to open in external browser). +%bcond_with classify_square_brackets_into_url_paths +# Summary: GNOME Terminal -Summary(pl): Terminal dla GNOME +Summary(pl.UTF-8): Terminal dla GNOME Name: gnome-terminal -Version: 2.4.0.1 +Version: 2.23.3 Release: 1 -License: GPL +License: GPL v2+ Group: X11/Applications -Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.4/%{name}-%{version}.tar.bz2 -# Source0-md5: 6d939e67c052e43686e2357e8083ad66 +Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-terminal/2.23/%{name}-%{version}.tar.bz2 +# Source0-md5: 99be7ab5874a65209f05619286273d40 Patch0: %{name}-TERM.patch -Patch1: %{name}-geometry.patch +Patch1: %{name}-disable-prev_next-tab-sensitivity-changes.patch +Patch2: %{name}-desktop.patch +Patch4: %{name}-url-regex.patch URL: http://www.gnome.org/ -BuildRequires: GConf2-devel >= 2.4.0.1 -BuildRequires: gtk+2-devel >= 2.2.0 -BuildRequires: libglade2-devel >= 2.0.0 -BuildRequires: libgnomeui-devel >= 2.4.0 -BuildRequires: pkgconfig >= 0.12.0 -BuildRequires: rpm-build >= 4.1-10 +BuildRequires: GConf2-devel >= 2.22.0 +BuildRequires: autoconf >= 2.53 +BuildRequires: automake >= 1:1.9 +BuildRequires: gettext-devel +BuildRequires: glib2-devel >= 1:2.16.0 +BuildRequires: gnome-common >= 2.20.0 +BuildRequires: gnome-doc-utils >= 0.12.0 +BuildRequires: gnome-vfs2-devel >= 2.22.0 +BuildRequires: gtk+2-devel >= 2:2.12.0 +BuildRequires: intltool >= 0.40.0 +BuildRequires: libglade2-devel >= 1:2.6.2 +BuildRequires: libgnomeui-devel >= 2.22.0 +BuildRequires: libtool +BuildRequires: pkgconfig >= 1:0.12.0 +BuildRequires: rpmbuild(find_lang) >= 1.23 +BuildRequires: rpmbuild(macros) >= 1.197 BuildRequires: scrollkeeper -BuildRequires: startup-notification-devel >= 0.5 -BuildRequires: vte-devel >= 0.11.7 -BuildRequires: xft-devel >= 2.1-2 -Requires(post): GConf2 -Requires(post): scrollkeeper -Requires: libgnomeui >= 2.4.0 +BuildRequires: sed >= 4.0 +BuildRequires: startup-notification-devel >= 0.8 +BuildRequires: vte-devel >= 0.16.13 +Requires(post,postun): scrollkeeper +Requires(post,preun): GConf2 +Requires: libgnomeui >= 2.20.0 +Requires: startup-notification >= 0.8 Requires: terminfo +Requires: vte >= 0.16.13 +# sr@Latn vs. sr@latin +Conflicts: glibc-misc < 6:2.7 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This is a terminal thing that isn't finished at all. -%description -l pl -To jest terminal, na razie ca³kowicie nie dokoñczony. +%description -l pl.UTF-8 +To jest terminal, na razie całkowicie nie dokończony. %prep %setup -q +%if %{with term_voodoo} %patch0 -p1 +%endif +%if %{with disable_prev_next_tab_sensitivity_changes} %patch1 -p1 +%endif +%patch2 -p1 +%if %{with classify_square_brackets_into_url_paths} +%patch4 -p1 +%endif + +sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS +mv po/sr@{Latn,latin}.po %build -%configure +%{__intltoolize} +%{__gnome_doc_common} +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + --disable-schemas-install \ + --disable-scrollkeeper %{__make} %install @@ -49,25 +98,29 @@ rm -rf $RPM_BUILD_ROOT GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \ localedir=%{_localedir} -%find_lang %{name} --with-gnome --all-name +rm -rf $RPM_BUILD_ROOT%{_datadir}/application-registry + +%find_lang %{name} --with-gnome --with-omf --all-name %clean rm -rf $RPM_BUILD_ROOT %post -/usr/bin/scrollkeeper-update -%gconf_schema_install +%gconf_schema_install gnome-terminal.schemas +%scrollkeeper_update_post + +%preun +%gconf_schema_uninstall gnome-terminal.schemas -%postun -p /usr/bin/scrollkeeper-update +%postun +%scrollkeeper_update_postun %files -f %{name}.lang %defattr(644,root,root,755) -%doc README ChangeLog NEWS TODO AUTHORS -%doc %{_omf_dest_dir}/%{name} -%attr(755,root,root) %{_bindir}/* -%{_sysconfdir}/gconf/schemas/* +%doc AUTHORS ChangeLog NEWS README +%attr(755,root,root) %{_bindir}/gnome-terminal +%{_libdir}/bonobo/servers/gnome-terminal.server %{_datadir}/%{name} -%{_libdir}/bonobo/servers/* -%{_desktopdir}/* -%{_pixmapsdir}/* -%{_datadir}/application-registry/* +%{_desktopdir}/gnome-terminal.desktop +%{_pixmapsdir}/gnome-terminal.png +%{_sysconfdir}/gconf/schemas/gnome-terminal.schemas