]> git.pld-linux.org Git - packages/gnome-terminal.git/blob - gnome-terminal.spec
- updated to 2.22.3
[packages/gnome-terminal.git] / gnome-terminal.spec
1 #
2 # Conditional build:
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
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
10 # This allows to mark on-terminal urls containing square brackets (eg. to
11 # copy them or to open in external browser).
12 %bcond_with     classify_square_brackets_into_url_paths
13 #
14 Summary:        GNOME Terminal
15 Summary(pl.UTF-8):      Terminal dla GNOME
16 Name:           gnome-terminal
17 Version:        2.22.3
18 Release:        1
19 License:        GPL v2+
20 Group:          X11/Applications
21 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-terminal/2.22/%{name}-%{version}.tar.bz2
22 # Source0-md5:  ef61930fbafe81406c934dcf97efec09
23 Patch0:         %{name}-TERM.patch
24 Patch1:         %{name}-disable-prev_next-tab-sensitivity-changes.patch
25 Patch2:         %{name}-desktop.patch
26 Patch4:         %{name}-url-regex.patch
27 URL:            http://www.gnome.org/
28 BuildRequires:  GConf2-devel >= 2.22.0
29 BuildRequires:  autoconf >= 2.53
30 BuildRequires:  automake >= 1:1.9
31 BuildRequires:  gettext-devel
32 BuildRequires:  glib2-devel >= 1:2.16.0
33 BuildRequires:  gnome-common >= 2.20.0
34 BuildRequires:  gnome-doc-utils >= 0.12.0
35 BuildRequires:  gnome-vfs2-devel >= 2.22.0
36 BuildRequires:  gtk+2-devel >= 2:2.12.0
37 BuildRequires:  intltool >= 0.36.2
38 BuildRequires:  libglade2-devel >= 1:2.6.2
39 BuildRequires:  libgnomeui-devel >= 2.22.0
40 BuildRequires:  libtool
41 BuildRequires:  pkgconfig >= 1:0.12.0
42 BuildRequires:  rpmbuild(find_lang) >= 1.23
43 BuildRequires:  rpmbuild(macros) >= 1.197
44 BuildRequires:  scrollkeeper
45 BuildRequires:  sed >= 4.0
46 BuildRequires:  startup-notification-devel >= 0.8
47 BuildRequires:  vte-devel >= 0.16.13
48 Requires(post,postun):  scrollkeeper
49 Requires(post,preun):   GConf2
50 Requires:       libgnomeui >= 2.20.0
51 Requires:       startup-notification >= 0.8
52 Requires:       terminfo
53 Requires:       vte >= 0.16.13
54 # sr@Latn vs. sr@latin
55 Conflicts:      glibc-misc < 6:2.7
56 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58 %description
59 This is a terminal thing that isn't finished at all.
60
61 %description -l pl.UTF-8
62 To jest terminal, na razie całkowicie nie dokończony.
63
64 %prep
65 %setup -q
66 %if %{with term_voodoo}
67 %patch0 -p1
68 %endif
69 %if %{with disable_prev_next_tab_sensitivity_changes}
70 %patch1 -p1
71 %endif
72 %patch2 -p1
73 %if %{with classify_square_brackets_into_url_paths}
74 %patch4 -p1
75 %endif
76
77 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
78 mv po/sr@{Latn,latin}.po
79
80 %build
81 %{__intltoolize}
82 %{__gnome_doc_common}
83 %{__libtoolize}
84 %{__aclocal}
85 %{__autoconf}
86 %{__autoheader}
87 %{__automake}
88 %configure \
89         --disable-schemas-install \
90         --disable-scrollkeeper
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT \
98         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \
99         localedir=%{_localedir}
100
101 rm -rf $RPM_BUILD_ROOT%{_datadir}/application-registry
102
103 %find_lang %{name} --with-gnome --with-omf --all-name
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post
109 %gconf_schema_install gnome-terminal.schemas
110 %scrollkeeper_update_post
111
112 %preun
113 %gconf_schema_uninstall gnome-terminal.schemas
114
115 %postun
116 %scrollkeeper_update_postun
117
118 %files -f %{name}.lang
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog NEWS README
121 %attr(755,root,root) %{_bindir}/gnome-terminal
122 %{_libdir}/bonobo/servers/gnome-terminal.server
123 %{_datadir}/%{name}
124 %{_desktopdir}/gnome-terminal.desktop
125 %{_pixmapsdir}/gnome-terminal.png
126 %{_sysconfdir}/gconf/schemas/gnome-terminal.schemas
This page took 0.074528 seconds and 4 git commands to generate.