Ai
13 Star 2 Fork 10

src-openEuler/tmux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tmux.spec 2.60 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2024-10-05 21:00 +08:00 . 3.5a
%global _hardened_build 1
Name: tmux
Version: 3.5a
Release: 1
Summary: A terminal multiplexer
# SOURCE0 licensed under ISC AND BSD, SOURCE1 licensed under GPL-2.0-only
License: ISC AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only
URL: https://tmux.github.io/
Source0: https://github.com/tmux/tmux/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/imomaliev/tmux-bash-completion/raw/refs/heads/master/completions/tmux
BuildRequires: gcc
BuildRequires: (pkgconfig(libevent_core) >= 2 or pkgconfig(libevent) >= 2)
BuildRequires: (pkgconfig(tinfo) or pkgconfig(ncurses) or pkgconfig(ncursesw))
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libutf8proc)
BuildRequires: libutempter-devel
BuildRequires: bison
%description
%{name} is a terminal multiplexer. It lets you switch easily between several
programs in one terminal, detach them (they keep running in the background)
and reattach them to a different terminal.
%package_help
%prep
%autosetup
%build
%configure --enable-sixel --enable-systemd --enable-utempter --enable-utf8proc
%make_build
%install
%make_install
install -Dpm 644 %{S:1} %{buildroot}%{_datadir}/bash-completion/completions/%{name}
%post
if [ "$1" = 1 ]; then
if [ ! -f %{_sysconfdir}/shells ] ; then
touch %{_sysconfdir}/shells
fi
for binpath in %{_bindir} /bin; do
if ! grep -q "^${binpath}/tmux$" %{_sysconfdir}/shells; then
(cat %{_sysconfdir}/shells; echo "$binpath/tmux") > %{_sysconfdir}/shells.new
mv %{_sysconfdir}/shells{.new,}
fi
done
fi
%postun
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
sed -e '\!^%{_bindir}/tmux$!d' -e '\!^/bin/tmux$!d' < %{_sysconfdir}/shells > %{_sysconfdir}/shells.new
mv %{_sysconfdir}/shells{.new,}
fi
%files
%license COPYING
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
%files help
%{_mandir}/man1/%{name}.1*
%changelog
* Sat Oct 05 2024 Funda Wang <fundawang@yeah.net> - 3.5a-1
- update to version 3.5a
* Thu Feb 29 2024 wangqia <wangqia@uniontech.com> - 3.4-1
- Update to version 3.4
* Sat Feb 04 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 3.3a-2
- fix CVE-2022-47016
* Wed Jul 13 2022 zhaomengmeng <zhaomengmeng@kylinos.cn> - 3.3a-1
- DESC:upgrade to 3.3a
* Fri Dec 3 2021 yangcheng <yangcheng87@huawei.com> - 3.2a-1
- DESC:upgrade to 3.2a
* Sat Nov 28 2020 wangye <wangye70@huawei.com> - 3.1-2
- DESC:fix CVE
* Sat Jun 20 2020 weiwei_150212 <tianwei12@huawei.com> - 3.1-1
- DESC:update to release 3.1
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.9a-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/tmux.git
git@gitee.com:src-openeuler/tmux.git
src-openeuler
tmux
tmux
master

搜索帮助