2012-12-28 10:54:10 +00:00
#
# spec file for package xfce4-terminal
#
2024-02-13 02:57:34 +00:00
# Copyright (c) 2024 SUSE LLC
2012-12-28 10:54:10 +00:00
# Copyright (c) 2012 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2019-07-11 08:50:09 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2012-12-28 10:54:10 +00:00
#
2019-07-11 08:50:09 +00:00
%bcond_with git
2012-12-28 10:54:10 +00:00
Name : xfce4-terminal
2024-03-07 09:58:58 +00:00
Version : 1.1.3
2012-12-28 10:54:10 +00:00
Release : 0
Summary : Terminal Emulator for the Xfce Desktop Environment
2018-03-03 21:37:52 +00:00
License : GPL-2.0-or-later
2012-12-28 10:54:10 +00:00
Group : System/X11/Terminals
2019-07-11 08:50:09 +00:00
URL : https://docs.xfce.org/apps/terminal/start
2023-08-28 05:08:13 +00:00
Source0 : https://archive.xfce.org/src/apps/xfce4-terminal/1.1/%{name} -%{version} .tar.bz2
2024-02-13 02:57:34 +00:00
# PATCH-FIX-OPENSUSE: backport fix for crash on window close
2023-11-05 18:25:09 +00:00
Patch0 : gxo-282.patch
2024-03-07 09:58:58 +00:00
# PATCH-FIX-OPENSUSE xfce4-terminal-relax-x11-version.patch lower required X11 version to allow building for Leap which only has 1.6.5, which is enough, though
Patch1 : xfce4-terminal-relax-x11-version.patch
2012-12-28 10:54:10 +00:00
BuildRequires : intltool
2016-08-11 15:11:20 +00:00
BuildRequires : pkgconfig
2019-02-13 09:49:52 +00:00
BuildRequires : update-desktop-files
2018-03-03 21:37:52 +00:00
BuildRequires : utempter-devel
2012-12-28 10:54:10 +00:00
BuildRequires : pkgconfig(dbus-glib-1)
2023-08-28 05:08:13 +00:00
BuildRequires : pkgconfig(gio-2.0) >= 2.44.0
BuildRequires : pkgconfig(glib-2.0) >= 2.44.0
BuildRequires : pkgconfig(gtk+-3.0) >= 3.22.0
BuildRequires : pkgconfig(libpcre2-8) >= 10.00
BuildRequires : pkgconfig(libxfce4kbd-private-3) >= 4.16.0
BuildRequires : pkgconfig(libxfce4ui-2) >= 4.17.5
BuildRequires : pkgconfig(libxfconf-0) >= 4.16.0
2022-04-07 08:49:06 +00:00
BuildRequires : pkgconfig(vte-2.91) >= 0.51.3
2024-03-07 09:58:58 +00:00
BuildRequires : pkgconfig(x11) >= 1.6.5
2016-08-11 15:11:20 +00:00
Recommends: %{name} -lang
2012-12-28 10:54:10 +00:00
%description
xfce4-terminal is a lightweight and easy to use terminal emulator for the Xfce
desktop environment. Its major features include a simple configuration
interface, the ability to use multiple tabs with terminals within a single
window, the possibility to have a pseudo-transparent terminal background, and a
compact mode where both the menubar and the window decorations are hidden which
helps to save space on the desktop.
2016-08-11 15:11:20 +00:00
%lang_package
2012-12-28 10:54:10 +00:00
%prep
2023-11-05 18:25:09 +00:00
%autosetup -p1
2012-12-28 10:54:10 +00:00
%build
2019-07-11 08:50:09 +00:00
%if %{with git}
NOCONFIGURE=1 ./autogen.sh
2018-03-03 21:37:52 +00:00
%configure \
2019-07-11 08:50:09 +00:00
--enable-maintainer-mode \
2019-10-26 10:09:58 +00:00
--with-utempter
2019-07-11 08:50:09 +00:00
%else
%configure \
2019-10-26 10:09:58 +00:00
--with-utempter
2019-07-11 08:50:09 +00:00
%endif
%make_build
2012-12-28 10:54:10 +00:00
%install
%make_install
# create a list of localized man directories, these need to be owned
(
printf '%%%%defattr(-,root,root)\n'
cd '%{buildroot}'
for dir in " . %{_mandir} / " *; do
[ -d " $ { d i r } " ] || continue
case ${dir##*/} in
man*) continue ;;
*) lang=" $ { d i r # # * / } "
printf " % % % % d i r % % % % l a n g ( % % s ) % % s \n " " $ { l a n g } " " $ { d i r # . } "
for subdir in " $ { d i r } / " *; do
[ -d " $ { s u b d i r } " ] || continue
printf " % % % % d i r % % % % l a n g ( % % s ) % % s \n " " $ { l a n g } " \
" $ { s u b d i r # . } "
done
;;
esac
done
) >> %{name} .lang
2019-02-13 09:49:52 +00:00
# Fix name issue with xfce4-terminal-settings desktop file name entries boo#1125146
desktop-file-edit %{buildroot} %{_datadir} /applications/%{name} -settings.desktop --set-name='Xfce Terminal Settings'
2016-08-11 15:11:20 +00:00
%find_lang %{name} --with-man %{?no_lang_C}
2012-12-28 10:54:10 +00:00
%files
2021-01-06 18:39:23 +00:00
%doc AUTHORS HACKING NEWS README.md THANKS
2019-02-13 09:49:52 +00:00
%license COPYING
2012-12-28 10:54:10 +00:00
%{_bindir} /xfce4-terminal
%dir %{_datadir} /xfce4
%{_datadir} /xfce4/terminal
2021-01-06 18:39:23 +00:00
%{_datadir} /icons/hicolor/*/apps/org.xfce.terminal*
2012-12-28 10:54:10 +00:00
%{_datadir} /applications/xfce4-terminal.desktop
2018-05-21 11:45:17 +00:00
%{_datadir} /applications/xfce4-terminal-settings.desktop
2016-08-11 15:11:20 +00:00
%{_mandir} /man1/xfce4-terminal.1*
2012-12-28 10:54:10 +00:00
%files lang -f %{name}.lang
%changelog