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