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