- updated to 3.42.0; uses meson now
[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 %bcond_without  search_provider # build GNOME Shell search provder
6
7 Summary:        GNOME Terminal
8 Summary(pl.UTF-8):      Terminal dla GNOME
9 Name:           gnome-terminal
10 Version:        3.42.0
11 Release:        1
12 License:        GPL v3+
13 Group:          X11/Applications
14 Source0:        https://download.gnome.org/sources/gnome-terminal/3.42/%{name}-%{version}.tar.xz
15 # Source0-md5:  401ef2b1b7af62448d11dae251c2a159
16 Patch1:         %{name}-transparency.patch
17 URL:            https://wiki.gnome.org/Apps/Terminal/
18 BuildRequires:  dconf-devel >= 0.14
19 BuildRequires:  desktop-file-utils
20 BuildRequires:  docbook-dtd412-xml
21 BuildRequires:  gettext-tools >= 0.19.8
22 BuildRequires:  glib2-devel >= 1:2.52.0
23 %{?with_search_provider: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:  libstdc++-devel >= 6:4.8.1
27 BuildRequires:  libuuid-devel
28 BuildRequires:  libxml2-progs
29 BuildRequires:  libxslt-progs
30 BuildRequires:  meson >= 0.49.0
31 %{?with_nautilus:BuildRequires: nautilus-devel >= 3.28.0}
32 BuildRequires:  ninja >= 1.5
33 BuildRequires:  pcre2-8-devel >= 10.00
34 BuildRequires:  pkgconfig >= 1:0.12.0
35 BuildRequires:  rpmbuild(find_lang) >= 1.23
36 BuildRequires:  rpmbuild(macros) >= 1.736
37 BuildRequires:  tar >= 1:1.22
38 BuildRequires:  vte-devel >= 0.63.0
39 BuildRequires:  xorg-lib-libX11-devel
40 BuildRequires:  xz
41 BuildRequires:  yelp-tools
42 Requires(post,postun):  glib2 >= 1:2.52.0
43 Requires:       dconf >= 0.14
44 Requires:       glib2 >= 1:2.52.0
45 Requires:       gsettings-desktop-schemas >= 0.1.0
46 Requires:       gtk+3 >= 3.22.27
47 Requires:       terminfo
48 Requires:       vte >= 0.63.0
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.28.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 %{?with_transparency:%patch1 -p1}
77
78 %build
79 %meson build \
80         %{!?with_nautilus:-Dnautilus_extension=false} \
81         %{!?with_search_provider:-Dsearch_provider=false}
82
83 %ninja_build -C build
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %ninja_install -C build
89
90 %find_lang %{name} --with-gnome --all-name
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post
96 %glib_compile_schemas
97
98 %postun
99 if [ "$1" = "0" ]; then
100         %glib_compile_schemas
101 fi
102
103 %files -f %{name}.lang
104 %defattr(644,root,root,755)
105 %doc AUTHORS ChangeLog
106 %attr(755,root,root) %{_bindir}/gnome-terminal
107 %attr(755,root,root) %{_libexecdir}/gnome-terminal-server
108 %dir %{_libdir}/gnome-terminal
109 %{_libdir}/gnome-terminal/gschemas.compiled
110 %{_datadir}/dbus-1/services/org.gnome.Terminal.service
111 %{_datadir}/glib-2.0/schemas/org.gnome.Terminal.gschema.xml
112 %{?with_search_provider:%{_datadir}/gnome-shell/search-providers/gnome-terminal-search-provider.ini}
113 %{_datadir}/metainfo/org.gnome.Terminal.metainfo.xml
114 %{_desktopdir}/org.gnome.Terminal.desktop
115 %{_iconsdir}/hicolor/scalable/apps/org.gnome.Terminal.svg
116 %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Terminal-symbolic.svg
117 %{systemduserunitdir}/gnome-terminal-server.service
118 %{_mandir}/man1/gnome-terminal.1*
119
120 %if %{with nautilus}
121 %files -n nautilus-extension-terminal
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libterminal-nautilus.so
124 %{_datadir}/metainfo/org.gnome.Terminal.Nautilus.metainfo.xml
125 %endif
This page took 0.14682 seconds and 3 git commands to generate.