]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without nautilus # Nautilus extension | |
4 | ||
5 | Summary: GNOME Terminal | |
6 | Summary(pl.UTF-8): Terminal dla GNOME | |
7 | Name: gnome-terminal | |
8 | Version: 3.16.2 | |
9 | Release: 2 | |
10 | License: GPL v3+ | |
11 | Group: X11/Applications | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-terminal/3.16/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 17d15e7d226826ca1853eee1c99645b0 | |
14 | Patch0: %{name}-desktop.patch | |
15 | Patch1: bug-730632.patch | |
16 | Patch2: wordseps.patch | |
17 | URL: http://www.gnome.org/ | |
18 | BuildRequires: GConf2-devel >= 2.32.0 | |
19 | BuildRequires: autoconf >= 2.53 | |
20 | BuildRequires: automake >= 1:1.9 | |
21 | BuildRequires: dconf-devel >= 0.14 | |
22 | BuildRequires: docbook-dtd412-xml | |
23 | BuildRequires: gettext-tools | |
24 | BuildRequires: glib2-devel >= 1:2.40.0 | |
25 | BuildRequires: gnome-common | |
26 | BuildRequires: gnome-shell-devel >= 3.12.0 | |
27 | BuildRequires: gsettings-desktop-schemas-devel >= 0.1.0 | |
28 | BuildRequires: gtk+3-devel >= 3.10.0 | |
29 | BuildRequires: intltool >= 0.50.0 | |
30 | BuildRequires: libtool | |
31 | BuildRequires: libuuid-devel | |
32 | BuildRequires: libxml2-progs | |
33 | %{?with_nautilus:BuildRequires: nautilus-devel >= 3.0.0} | |
34 | BuildRequires: pkgconfig >= 1:0.12.0 | |
35 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
36 | BuildRequires: rpmbuild(macros) >= 1.197 | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: vte-devel >= 0.40.2 | |
39 | BuildRequires: xz | |
40 | BuildRequires: yelp-tools | |
41 | Requires(post,postun): glib2 >= 1:2.33.2 | |
42 | Requires: dconf >= 0.14 | |
43 | Requires: glib2 >= 1:2.40.0 | |
44 | Requires: gsettings-desktop-schemas >= 0.1.0 | |
45 | Requires: gtk+3 >= 3.10.0 | |
46 | Requires: terminfo | |
47 | Requires: vte >= 0.40.2 | |
48 | # sr@Latn vs. sr@latin | |
49 | Conflicts: glibc-misc < 6:2.7 | |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | %description | |
53 | This is a terminal thing that isn't finished at all. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | To jest terminal, na razie całkowicie nie dokończony. | |
57 | ||
58 | %package -n nautilus-extension-terminal | |
59 | Summary: GNOME Terminal extension for Nautilus | |
60 | Summary(pl.UTF-8): Rozszerzenie GNOME Terminal dla Nautilusa | |
61 | Group: X11/Applications | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | Requires: nautilus >= 3.0.0 | |
64 | Obsoletes: nautilus-open-terminal < 0.20-2 | |
65 | ||
66 | %description -n nautilus-extension-terminal | |
67 | This package provides a Nautilus extension that adds the 'Open in | |
68 | Terminal' option to the right-click context menu in Nautilus. | |
69 | ||
70 | %description -n nautilus-extension-terminal -l pl.UTF-8 | |
71 | Ten pakiet dostarcza rozszerzenie Nautilusa dodające opcję "Otwórz w | |
72 | terminalu" do menu kontekstowego uaktywnianego prawym klawiszem myszy | |
73 | w Nautilusie. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
77 | %patch0 -p1 | |
78 | %patch1 -p1 | |
79 | %patch2 -p1 | |
80 | ||
81 | %build | |
82 | %{__intltoolize} | |
83 | %{__gnome_doc_common} | |
84 | %{__libtoolize} | |
85 | %{__aclocal} | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
89 | %configure \ | |
90 | --disable-silent-rules \ | |
91 | --disable-static \ | |
92 | %{?with_nautilus:--with-nautilus-extension} | |
93 | ||
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT \ | |
101 | localedir=%{_localedir} | |
102 | ||
103 | %if %{with nautilus} | |
104 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/libterminal-nautilus.la | |
105 | %endif | |
106 | ||
107 | %find_lang %{name} --with-gnome --all-name | |
108 | ||
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post | |
113 | %glib_compile_schemas | |
114 | ||
115 | %postun | |
116 | if [ "$1" = "0" ]; then | |
117 | %glib_compile_schemas | |
118 | fi | |
119 | ||
120 | %files -f %{name}.lang | |
121 | %defattr(644,root,root,755) | |
122 | %doc AUTHORS ChangeLog NEWS | |
123 | %attr(755,root,root) %{_bindir}/gnome-terminal | |
124 | %attr(755,root,root) %{_libdir}/gnome-terminal-migration | |
125 | %attr(755,root,root) %{_libdir}/gnome-terminal-server | |
126 | %{_datadir}/appdata/gnome-terminal.appdata.xml | |
127 | %{_datadir}/dbus-1/services/org.gnome.Terminal.service | |
128 | %{_datadir}/glib-2.0/schemas/org.gnome.Terminal.gschema.xml | |
129 | %{_datadir}/gnome-shell/search-providers/gnome-terminal-search-provider.ini | |
130 | %{_desktopdir}/gnome-terminal.desktop | |
131 | ||
132 | %if %{with nautilus} | |
133 | %files -n nautilus-extension-terminal | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libterminal-nautilus.so | |
136 | %endif |