]>
Commit | Line | Data |
---|---|---|
c429904b | 1 | # |
957ec054 | 2 | # Conditional build: |
c429904b MM |
3 | # This causes <prev-tab> key do nothing on the first tab (instead of |
4 | # passing the keypress to the application running in the terminal). Ditto | |
5 | # for the last tab. This is kinda annoying. | |
6 | %bcond_with disable_prev_next_tab_sensitivity_changes | |
2df50a1b | 7 | # This is specific to PLD and causes an "unknown term type" on most other |
8 | # hosts I have to work on (the rest of the world uses xterm for g-t) | |
9 | %bcond_with term_voodoo | |
94c48507 MG |
10 | # This allows to mark on-terminal urls containing square brackets (eg. to |
11 | # copy them or to open in external browser). | |
834cc1a8 | 12 | %bcond_with classify_square_brackets_into_url_paths |
c429904b | 13 | # |
5a403dc3 | 14 | Summary: GNOME Terminal |
efc40c78 | 15 | Summary(pl.UTF-8): Terminal dla GNOME |
36e1892e | 16 | Name: gnome-terminal |
436e2987 MB |
17 | Version: 2.18.3 |
18 | Release: 1 | |
36e1892e | 19 | License: GPL |
5a403dc3 | 20 | Group: X11/Applications |
43bd2a3b | 21 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-terminal/2.18/%{name}-%{version}.tar.bz2 |
436e2987 | 22 | # Source0-md5: 735ebb86205e6fa9591cbb4930451d25 |
6e74da7b | 23 | Patch0: %{name}-TERM.patch |
bc981883 | 24 | Patch1: %{name}-disable-prev_next-tab-sensitivity-changes.patch |
25 | Patch2: %{name}-desktop.patch | |
436ba71d | 26 | Patch3: %{name}-save-session-crash.patch |
94c48507 | 27 | Patch4: %{name}-url-regex.patch |
36e1892e | 28 | URL: http://www.gnome.org/ |
436e2987 | 29 | BuildRequires: GConf2-devel >= 2.20.0 |
7ab0ecc4 | 30 | BuildRequires: autoconf >= 2.53 |
78f0c218 | 31 | BuildRequires: automake |
43bd2a3b MB |
32 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
33 | BuildRequires: gnome-common >= 2.20.0 | |
34 | BuildRequires: gnome-doc-utils >= 0.12.0 | |
35 | BuildRequires: gnome-vfs2-devel >= 2.20.0 | |
36 | BuildRequires: intltool >= 0.36.2 | |
37 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
436e2987 | 38 | BuildRequires: libgnomeui-devel >= 2.20.0 |
7f9c0d4a | 39 | BuildRequires: libtool |
9c69e06f | 40 | BuildRequires: pkgconfig >= 1:0.12.0 |
436e2987 | 41 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
a19a64fd | 42 | BuildRequires: rpmbuild(macros) >= 1.197 |
9c6680eb | 43 | BuildRequires: scrollkeeper |
436e2987 | 44 | BuildRequires: sed >= 4.0 |
4859694d | 45 | BuildRequires: startup-notification-devel >= 0.8 |
43bd2a3b | 46 | BuildRequires: vte-devel >= 0.16.9 |
dcbdfea9 | 47 | Requires(post,preun): GConf2 |
a19a64fd | 48 | Requires(post,postun): scrollkeeper |
436e2987 | 49 | Requires: libgnomeui >= 2.20.0 |
9581d2cc | 50 | Requires: startup-notification >= 0.8 |
43bd2a3b | 51 | Requires: vte >= 0.16.9 |
ca41d96f | 52 | Requires: terminfo |
d557b31a | 53 | # sr@Latn vs. sr@latin |
54 | Conflicts: glibc-misc < 6:2.7 | |
36e1892e AF |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
36e1892e | 57 | %description |
5a403dc3 | 58 | This is a terminal thing that isn't finished at all. |
36e1892e | 59 | |
41640346 JR |
60 | %description -l pl.UTF-8 |
61 | To jest terminal, na razie całkowicie nie dokończony. | |
36e1892e AF |
62 | |
63 | %prep | |
0a626983 | 64 | %setup -q |
2df50a1b | 65 | %if %{with term_voodoo} |
6e74da7b | 66 | %patch0 -p1 |
2df50a1b | 67 | %endif |
c429904b | 68 | %if %{with disable_prev_next_tab_sensitivity_changes} |
6c9e6d9f | 69 | %patch1 -p1 |
c429904b | 70 | %endif |
6c9e6d9f | 71 | %patch2 -p1 |
436ba71d | 72 | %patch3 -p1 |
94c48507 MG |
73 | %if %{with classify_square_brackets_into_url_paths} |
74 | %patch4 -p1 | |
75 | %endif | |
7f9c0d4a | 76 | |
436e2987 MB |
77 | sed -i -e 's#sr\@Latn#sr\@latin#' po/LINGUAS |
78 | mv po/sr\@{Latn,latin}.po | |
79 | ||
36e1892e | 80 | %build |
2df50a1b | 81 | %{__intltoolize} |
fecbfb8a | 82 | %{__gnome_doc_common} |
7f9c0d4a | 83 | %{__libtoolize} |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__automake} | |
fe6ba419 | 87 | %configure \ |
88 | --disable-schemas-install \ | |
89 | --disable-scrollkeeper | |
36e1892e AF |
90 | %{__make} |
91 | ||
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
36e1892e | 94 | |
2702513a AF |
95 | %{__make} install \ |
96 | DESTDIR=$RPM_BUILD_ROOT \ | |
88f1cbe7 | 97 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \ |
98 | localedir=%{_localedir} | |
36e1892e | 99 | |
3c681562 | 100 | rm -rf $RPM_BUILD_ROOT%{_datadir}/application-registry |
bc981883 | 101 | |
436e2987 | 102 | %find_lang %{name} --with-gnome --with-omf --all-name |
36e1892e AF |
103 | |
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
b9163d02 | 107 | %post |
3c681562 | 108 | %gconf_schema_install gnome-terminal.schemas |
109 | %scrollkeeper_update_post | |
36e1892e | 110 | |
3c681562 | 111 | %preun |
112 | %gconf_schema_uninstall gnome-terminal.schemas | |
113 | ||
114 | %postun | |
115 | %scrollkeeper_update_postun | |
2702513a | 116 | |
36e1892e AF |
117 | %files -f %{name}.lang |
118 | %defattr(644,root,root,755) | |
2df50a1b | 119 | %doc AUTHORS ChangeLog NEWS README |
36e1892e | 120 | %attr(755,root,root) %{_bindir}/* |
044b9079 | 121 | %{_libdir}/bonobo/servers/* |
2df50a1b | 122 | %{_datadir}/%{name} |
c3ea948a | 123 | %{_desktopdir}/*.desktop |
b9163d02 | 124 | %{_pixmapsdir}/* |
2df50a1b | 125 | %{_sysconfdir}/gconf/schemas/gnome-terminal.schemas |