ac26cee
%global _terminals gnome-terminal mate-terminal xfce4-terminal lxterminal qterminal qterminal-qt5 terminology yakuake fourterm roxterm lilyterm termit xterm mrxvt
ac26cee
7119fbf
Name:           deepin-terminal
c450698
Version:        5.0.4.1
5e380d5
Release:        3%{?dist}
7119fbf
Summary:        Default terminal emulation application for Deepin
7119fbf
License:        GPLv3
7119fbf
URL:            https://github.com/linuxdeepin/deepin-terminal
7119fbf
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
c450698
Patch0:         https://github.com/linuxdeepin/deepin-terminal/commit/8d0a761873c2ef898c9977acc0192bf9ef9e7ca4.patch
c450698
Patch1:         https://github.com/linuxdeepin/deepin-terminal/commit/d38f972c8cb958524b326986c6dc72b24fa35dad.patch
7119fbf
7119fbf
BuildRequires:  cmake
50f4e7c
BuildRequires:  gcc-c++
7119fbf
BuildRequires:  gettext
b29de3d
BuildRequires:  vala-devel
b29de3d
BuildRequires:  pkgconfig(fontconfig)
b29de3d
BuildRequires:  pkgconfig(gtk+-3.0)
b29de3d
BuildRequires:  pkgconfig(gee-0.8)
b29de3d
BuildRequires:  pkgconfig(json-glib-1.0)
b29de3d
BuildRequires:  pkgconfig(libsecret-1)
b29de3d
BuildRequires:  pkgconfig(libwnck-3.0)
be4ee51
BuildRequires:  pkgconfig(librsvg-2.0)
d204e3e
BuildRequires:  pkgconfig(vapigen)
b29de3d
BuildRequires:  pkgconfig(vte-2.91)
7f9eef3
BuildRequires:  pkgconfig(gnutls)
7119fbf
# right-click menu style
7119fbf
Requires:       deepin-menu
7119fbf
# run command by create_from_commandline
7119fbf
Requires:       deepin-shortcut-viewer
7119fbf
Requires:       expect
7119fbf
Requires:       xdg-utils
7119fbf
Recommends:     deepin-manual
be4ee51
Recommends:     zssh
7119fbf
Requires:       %{name}-data = %{version}-%{release}
7119fbf
7119fbf
%description
d2706bd
%{summary}.
7119fbf
7119fbf
%package data
7119fbf
Summary:        Data files of Deepin Terminal
7119fbf
BuildArch:      noarch
7119fbf
Requires:       hicolor-icon-theme
7119fbf
7119fbf
%description data
7119fbf
The %{name}-data package provides shared data for Deepin Terminal.
7119fbf
7119fbf
%prep
7119fbf
%setup -q
c450698
%patch0 -p1
c450698
%patch1 -p1
2f03525
sed -i '/ssh_login/s|lib|libexec|' lib/utils.vala CMakeLists.txt
2f03525
sed -i '/stdc++/d' CMakeLists.txt
7119fbf
7119fbf
# remove es_419 locale
7119fbf
rm -rf po/es_419/
7119fbf
sed -i '/es_419/d' deepin-terminal.desktop
7119fbf
7119fbf
%build
f1b739b
%cmake -DCMAKE_BUILD_TYPE=Release \
f1b739b
       -DTEST_BUILD=OFF \
f1b739b
       -DUSE_VENDOR_LIB=OFF \
c2d5bc4
       -DVERSION=%{version}
c2d5bc4
%cmake_build
7119fbf
7119fbf
%install
c2d5bc4
%cmake_install
7119fbf
7119fbf
%find_lang %{name}
7119fbf
7119fbf
%preun
7119fbf
if [ $1 -eq 0 ]; then
7119fbf
  %{_sbindir}/alternatives --remove x-terminal-emulator %{_bindir}/%{name}
7119fbf
fi
7119fbf
7119fbf
%post
7119fbf
if [ $1 -ge 1 ]; then
7119fbf
  %{_sbindir}/alternatives --install %{_bindir}/x-terminal-emulator \
7119fbf
    x-terminal-emulator %{_bindir}/%{name} 20
7119fbf
fi
7119fbf
ac26cee
%triggerin -- konsole5 %_terminals
ac26cee
if [ $1 -ge 1 ]; then
ac26cee
  PRI=20
ac26cee
  for i in konsole %{_terminals}; do
ac26cee
    PRI=$((PRI-1))
ac26cee
    test -x %{_bindir}/$i && \
ac26cee
    %{_sbindir}/alternatives --install %{_bindir}/x-terminal-emulator \
ac26cee
      x-terminal-emulator %{_bindir}/$i $PRI &>/dev/null ||:
ac26cee
  done
ac26cee
fi
ac26cee
ac26cee
%triggerpostun -- konsole5 %_terminals
ac26cee
if [ $2 -eq 0 ]; then
ac26cee
  for i in konsole %{_terminals}; do
ac26cee
    test -x %{_bindir}/$i || \
ac26cee
    %{_sbindir}/alternatives --remove x-terminal-emulator %{_bindir}/$i &>/dev/null ||:
ac26cee
  done
ac26cee
fi
ac26cee
7119fbf
%files
7119fbf
%doc README.md
7119fbf
%license LICENSE
7119fbf
%{_bindir}/%{name}
be4ee51
%{_libexecdir}/%{name}/ssh_login.sh
7119fbf
7119fbf
%files data -f %{name}.lang
7119fbf
%{_datadir}/%{name}/
7119fbf
%{_datadir}/icons/hicolor/*/apps/%{name}*
7119fbf
%{_datadir}/applications/%{name}.desktop
7119fbf
7119fbf
%changelog
c2d5bc4
* Fri Aug  7 2020 Robin Lee <cheeselee@fedoraproject.org> - 5.0.4.1-3
c2d5bc4
- Improve compatibility with new CMake macro
c2d5bc4
5e380d5
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.4.1-3
5e380d5
- Second attempt - Rebuilt for
5e380d5
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5e380d5
6a73874
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.4.1-2
6a73874
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6a73874
c450698
* Fri May  1 2020 Robin Lee <cheeselee@fedoraproject.org> - 5.0.4.1-1
c450698
- Update to 5.0.4.1 (RHBZ#1828023, RHBZ#1699622)
c450698
d22f0f4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
d22f0f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d22f0f4
05c258b
* Mon Aug 05 2019 Robin Lee <cheeselee@fedoraproject.org> - 5.0.0-1
05c258b
- Release 5.0.0
05c258b
9d75236
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-2
9d75236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9d75236
7f9eef3
* Thu Jun 20 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.2.6-1
7f9eef3
- Update to 3.2.6
7f9eef3
e783d12
* Tue Apr 16 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.2.2.1-1
e783d12
- new version
e783d12
ac26cee
* Tue Feb 26 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.2.1.1-2
ac26cee
- Recover triggers and fix triggerin to not generate error
ac26cee
62c11a8
* Tue Feb 26 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.2.1.1-1
62c11a8
- Update to 3.2.1.1
62c11a8
- Remove triggers
62c11a8
e87c5f9
* Thu Jan 31 2019 mosquito <sensor.wen@gmail.com> - 3.2.1-1
e87c5f9
- Update to 3.2.1
e87c5f9
92210ac
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.12-3
92210ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
92210ac
4645939
* Wed Jan 23 2019 Björn Esser <besser82@fedoraproject.org> - 3.0.12-2
4645939
- Append curdir to CMake invokation. (#1668512)
4645939
f1b739b
* Wed Dec 12 2018 mosquito <sensor.wen@gmail.com> - 3.0.12-1
f1b739b
- Update to 3.0.12
f1b739b
62c8927
* Thu Nov 29 2018 mosquito <sensor.wen@gmail.com> - 3.0.11.1-1
62c8927
- Update to 3.0.11.1
62c8927
f1a4be0
* Wed Nov 21 2018 mosquito <sensor.wen@gmail.com> - 3.0.10.2-1
f1a4be0
- Update to 3.0.10.2
f1a4be0
2f03525
* Fri Nov  9 2018 mosquito <sensor.wen@gmail.com> - 3.0.10-1
2f03525
- Update to 3.0.10
2f03525
14e5a4b
* Sat Aug 25 2018 mosquito <sensor.wen@gmail.com> - 3.0.3-1
14e5a4b
- Update to 3.0.3
14e5a4b
d2706bd
* Fri Jul 27 2018 mosquito <sensor.wen@gmail.com> - 3.0.1-1
d2706bd
- Update to 3.0.1
d2706bd
2147b40
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-3
2147b40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2147b40
47077cb
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-2
47077cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
47077cb
be4ee51
* Thu Dec  7 2017 mosquito <sensor.wen@gmail.com> - 2.9.2-1
be4ee51
- Update to 2.9.2
be4ee51
be4ee51
* Wed Nov 15 2017 mosquito <sensor.wen@gmail.com> - 2.7.6-1
be4ee51
- Update to 2.7.6
be4ee51
be4ee51
* Fri Oct 27 2017 mosquito <sensor.wen@gmail.com> - 2.7.4-1
be4ee51
- Update to 2.7.4
be4ee51
be4ee51
* Mon Oct 23 2017 mosquito <sensor.wen@gmail.com> - 2.7.2-1
be4ee51
- Update to 2.7.2
be4ee51
846ff28
* Tue Oct 17 2017 mosquito <sensor.wen@gmail.com> - 2.7-1
846ff28
- Update to 2.7
846ff28
2c0bbfa
* Mon Oct 16 2017 mosquito <sensor.wen@gmail.com> - 2.6.4-1
2c0bbfa
- Update to 2.6.4
2c0bbfa
- Unbundle vte
2c0bbfa
2c0bbfa
* Thu Sep 21 2017 mosquito <sensor.wen@gmail.com> - 2.6.1-1
2c0bbfa
- Update to 2.6.1
2c0bbfa
b29de3d
* Tue Aug 29 2017 mosquito <sensor.wen@gmail.com> - 2.5.5-1
b29de3d
- Update to 2.5.5
b29de3d
b29de3d
* Mon Aug 21 2017 mosquito <sensor.wen@gmail.com> - 2.5.3-1
b29de3d
- Update to 2.5.3
b29de3d
7119fbf
* Mon Jul 31 2017 mosquito <sensor.wen@gmail.com> - 2.5.2-1
7119fbf
- Update to 2.5.2
7119fbf
b29de3d
* Fri Jul 21 2017 mosquito <sensor.wen@gmail.com> - 2.5.1-2.git82c4a12
7119fbf
- Split package
7119fbf
b29de3d
* Tue Jul 18 2017 mosquito <sensor.wen@gmail.com> - 2.5.1-1.git82c4a12
7119fbf
- Update to 2.5.1
7119fbf
b29de3d
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 2.5.0-1.git439ab57
7119fbf
- Update to 2.5.0
7119fbf
b29de3d
* Fri May 19 2017 mosquito <sensor.wen@gmail.com> - 2.4.2-1.git76b20cd
7119fbf
- Update to 2.4.2
7119fbf
b29de3d
* Tue Mar  7 2017 mosquito <sensor.wen@gmail.com> - 2.2.2-1.git3ec5488
7119fbf
- Update to 2.2.2
7119fbf
b29de3d
* Sat Feb 11 2017 mosquito <sensor.wen@gmail.com> - 2.1.12-1.git4f7069e
7119fbf
- Update to 2.1.12
7119fbf
b29de3d
* Sun Feb  5 2017 mosquito <sensor.wen@gmail.com> - 2.1.9-3.git1ded038
7119fbf
- Rewrite Req depends
7119fbf
b29de3d
* Sat Jan 28 2017 mosquito <sensor.wen@gmail.com> - 2.1.9-2.git1ded038
7119fbf
- Add trigger for terminal emulator
7119fbf
b29de3d
* Sat Jan 28 2017 mosquito <sensor.wen@gmail.com> - 2.1.9-1.git1ded038
7119fbf
- Update to 2.1.9
7119fbf
b29de3d
* Sun Jan 22 2017 mosquito <sensor.wen@gmail.com> - 2.1.7-2.git32f96be
7119fbf
- Add x-terminal-emulator command for dde-file-manager
7119fbf
b29de3d
* Tue Jan 17 2017 mosquito <sensor.wen@gmail.com> - 2.1.7-1.git32f96be
7119fbf
- Update to 2.1.7
7119fbf
7119fbf
* Thu Jan 12 2017 Jaroslav <cz.guardian@gmail.com> Stepanek 2.1.6-1
7119fbf
- Updated to version 2.1.6
7119fbf
7119fbf
* Thu Dec 15 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 2.1.5-2
7119fbf
- Fixed icon path
7119fbf
7119fbf
* Mon Dec 12 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 2.1.5-1
7119fbf
- Initial package build