- updated to 3.42.0; uses meson now
[packages/gnome-terminal.git] / gnome-terminal.spec
CommitLineData
8490ddb9
JB
1#
2# Conditional build:
3%bcond_without nautilus # Nautilus extension
385d8513 4%bcond_without transparency # restore transparency feature
1f264225 5%bcond_without search_provider # build GNOME Shell search provder
d7796de8 6
5a403dc3 7Summary: GNOME Terminal
efc40c78 8Summary(pl.UTF-8): Terminal dla GNOME
36e1892e 9Name: gnome-terminal
69a77a74 10Version: 3.42.0
8ff297c4 11Release: 1
8490ddb9 12License: GPL v3+
5a403dc3 13Group: X11/Applications
69a77a74
JB
14Source0: https://download.gnome.org/sources/gnome-terminal/3.42/%{name}-%{version}.tar.xz
15# Source0-md5: 401ef2b1b7af62448d11dae251c2a159
d4bc1a2d 16Patch1: %{name}-transparency.patch
385d8513 17URL: https://wiki.gnome.org/Apps/Terminal/
46a85323 18BuildRequires: dconf-devel >= 0.14
2e2de373 19BuildRequires: desktop-file-utils
bbf66d5a 20BuildRequires: docbook-dtd412-xml
4de6f867 21BuildRequires: gettext-tools >= 0.19.8
636978f6 22BuildRequires: glib2-devel >= 1:2.52.0
1f264225 23%{?with_search_provider:BuildRequires: gnome-shell-devel >= 3.12.0}
7c66af6c 24BuildRequires: gsettings-desktop-schemas-devel >= 0.1.0
4de6f867 25BuildRequires: gtk+3-devel >= 3.22.27
69a77a74 26BuildRequires: libstdc++-devel >= 6:4.8.1
46a85323 27BuildRequires: libuuid-devel
19bc7ba1 28BuildRequires: libxml2-progs
2e2de373 29BuildRequires: libxslt-progs
69a77a74 30BuildRequires: meson >= 0.49.0
4de6f867 31%{?with_nautilus:BuildRequires: nautilus-devel >= 3.28.0}
69a77a74 32BuildRequires: ninja >= 1.5
d4bc1a2d 33BuildRequires: pcre2-8-devel >= 10.00
9c69e06f 34BuildRequires: pkgconfig >= 1:0.12.0
436e2987 35BuildRequires: rpmbuild(find_lang) >= 1.23
69a77a74 36BuildRequires: rpmbuild(macros) >= 1.736
c63cf62d 37BuildRequires: tar >= 1:1.22
2e2de373 38BuildRequires: vte-devel >= 0.63.0
69a77a74 39BuildRequires: xorg-lib-libX11-devel
c63cf62d 40BuildRequires: xz
07b03922 41BuildRequires: yelp-tools
636978f6 42Requires(post,postun): glib2 >= 1:2.52.0
46a85323 43Requires: dconf >= 0.14
636978f6 44Requires: glib2 >= 1:2.52.0
7c66af6c 45Requires: gsettings-desktop-schemas >= 0.1.0
4de6f867 46Requires: gtk+3 >= 3.22.27
ca41d96f 47Requires: terminfo
2e2de373 48Requires: vte >= 0.63.0
36e1892e
AF
49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
36e1892e 51%description
5a403dc3 52This is a terminal thing that isn't finished at all.
36e1892e 53
41640346
JR
54%description -l pl.UTF-8
55To jest terminal, na razie całkowicie nie dokończony.
36e1892e 56
46a85323
MB
57%package -n nautilus-extension-terminal
58Summary: GNOME Terminal extension for Nautilus
8490ddb9 59Summary(pl.UTF-8): Rozszerzenie GNOME Terminal dla Nautilusa
46a85323
MB
60Group: X11/Applications
61Requires: %{name} = %{version}-%{release}
4de6f867 62Requires: nautilus >= 3.28.0
46a85323
MB
63Obsoletes: nautilus-open-terminal < 0.20-2
64
65%description -n nautilus-extension-terminal
66This package provides a Nautilus extension that adds the 'Open in
67Terminal' option to the right-click context menu in Nautilus.
68
8490ddb9
JB
69%description -n nautilus-extension-terminal -l pl.UTF-8
70Ten pakiet dostarcza rozszerzenie Nautilusa dodające opcję "Otwórz w
71terminalu" do menu kontekstowego uaktywnianego prawym klawiszem myszy
72w Nautilusie.
73
36e1892e 74%prep
0a626983 75%setup -q
d4bc1a2d 76%{?with_transparency:%patch1 -p1}
436e2987 77
36e1892e 78%build
69a77a74
JB
79%meson build \
80 %{!?with_nautilus:-Dnautilus_extension=false} \
81 %{!?with_search_provider:-Dsearch_provider=false}
82
83%ninja_build -C build
36e1892e
AF
84
85%install
86rm -rf $RPM_BUILD_ROOT
36e1892e 87
69a77a74 88%ninja_install -C build
46a85323 89
952cda75 90%find_lang %{name} --with-gnome --all-name
36e1892e
AF
91
92%clean
93rm -rf $RPM_BUILD_ROOT
94
b9163d02 95%post
952cda75 96%glib_compile_schemas
3c681562 97
98%postun
952cda75 99if [ "$1" = "0" ]; then
4de6f867 100 %glib_compile_schemas
952cda75 101fi
2702513a 102
36e1892e
AF
103%files -f %{name}.lang
104%defattr(644,root,root,755)
69a77a74 105%doc AUTHORS ChangeLog
98a016ef 106%attr(755,root,root) %{_bindir}/gnome-terminal
bb11d6bf 107%attr(755,root,root) %{_libexecdir}/gnome-terminal-server
fce9038f
JB
108%dir %{_libdir}/gnome-terminal
109%{_libdir}/gnome-terminal/gschemas.compiled
952cda75
ŁK
110%{_datadir}/dbus-1/services/org.gnome.Terminal.service
111%{_datadir}/glib-2.0/schemas/org.gnome.Terminal.gschema.xml
1f264225 112%{?with_search_provider:%{_datadir}/gnome-shell/search-providers/gnome-terminal-search-provider.ini}
69a77a74 113%{_datadir}/metainfo/org.gnome.Terminal.metainfo.xml
2b7dad92 114%{_desktopdir}/org.gnome.Terminal.desktop
385d8513
JB
115%{_iconsdir}/hicolor/scalable/apps/org.gnome.Terminal.svg
116%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Terminal-symbolic.svg
2b7dad92 117%{systemduserunitdir}/gnome-terminal-server.service
636978f6 118%{_mandir}/man1/gnome-terminal.1*
46a85323 119
8490ddb9 120%if %{with nautilus}
46a85323
MB
121%files -n nautilus-extension-terminal
122%defattr(644,root,root,755)
8490ddb9 123%attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libterminal-nautilus.so
d4bc1a2d 124%{_datadir}/metainfo/org.gnome.Terminal.Nautilus.metainfo.xml
8490ddb9 125%endif
This page took 0.067451 seconds and 4 git commands to generate.