mc/mc.spec

105 lines
2.8 KiB
RPMSpec
Raw Normal View History

2019-12-14 18:57:54 +08:00
Name: mc
Summary: a feature rich full-screen text mode application
2023-04-19 14:53:42 +08:00
Version: 4.8.29
2022-07-20 11:10:28 +08:00
Release: 1
2019-12-14 18:57:54 +08:00
Epoch: 1
License: GPLv3+
URL: http://www.midnight-commander.org/
2022-07-20 11:10:28 +08:00
Source0: https://github.com/MidnightCommander/mc/archive/%{version}.tar.gz
2019-12-14 18:57:54 +08:00
2022-07-20 11:10:28 +08:00
Patch0: %{name}-spec.syntax.patch
Patch1: %{name}-python3.patch
Patch2: %{name}-default_setup.patch
Patch3: %{name}-tmpdir.patch
2019-12-14 18:57:54 +08:00
2022-07-20 11:10:28 +08:00
BuildRequires: gcc e2fsprogs-devel glib2-devel gpm-devel groff-base
2019-12-14 18:57:54 +08:00
BuildRequires: libssh2-devel >= 1.2.5 perl-generators pkgconfig slang-devel
2022-07-20 11:10:28 +08:00
BuildRequires: make autoconf automake gettext-devel libtool python3-boto3
2019-12-14 18:57:54 +08:00
%description
GNU Midnight Commander is a visual file manager, licensed under GNU General Public
License and therefore qualifies as Free Software. It's a feature rich full-screen
text mode application that allows you to copy, move and delete files and whole
directory trees, search for files and run commands in the subshell. Internal viewer
and editor are included.
Midnight Commander is based on versatile text interfaces, such as Ncurses or S-Lang,
which allows it to work on a regular console, inside an X Window terminal, over SSH
connections and all kinds of remote shells.
2022-07-20 11:10:28 +08:00
%package python
Summary: Midnight Commander s3+ and UC1541 EXTFS backend scripts
BuildArch: noarch
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: python3-boto3
%description python
Midnight Commander s3+ and UC1541 EXTFS backend scripts.
2019-12-14 18:57:54 +08:00
%package_help
%prep
2022-07-20 11:10:28 +08:00
%autosetup -n %{name}-%{version} -p1
2019-12-14 18:57:54 +08:00
%build
2022-07-20 11:10:28 +08:00
sed -i "s,PREV_MC_VERSION=\"unknown\",PREV_MC_VERSION=\"%{version}\"," version.sh
./autogen.sh
2019-12-14 18:57:54 +08:00
%configure \
2022-07-20 11:10:28 +08:00
PYTHON=%{__python3} \
2019-12-14 18:57:54 +08:00
CFLAGS="%{optflags} -Wno-strict-aliasing" \
--enable-vfs-sfs \
2022-07-20 11:10:28 +08:00
--disable-vfs-sftp \
--disable-vfs-smb \
2019-12-14 18:57:54 +08:00
--enable-vfs-ftp \
--enable-charset \
--enable-largefile \
--enable-vfs-cpio \
--enable-vfs-extfs \
--enable-vfs-fish \
--enable-vfs-tar \
--disable-rpath \
--with-x \
--with-gpm-mouse \
--with-screen=slang \
%{nil}
%make_build
%install
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d
%make_install
install contrib/mc.{sh,csh} ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d
%find_lang %{name} --with-man
%files -f %{name}.lang
/etc/profile.d/*
%dir %{_sysconfdir}/%{name}
2022-07-20 11:10:28 +08:00
%{_sysconfdir}/%{name}/edit*
2019-12-14 18:57:54 +08:00
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/*
%dir %{_libexecdir}/%{name}
%attr(755,root,root) %{_libexecdir}/%{name}/cons.saver
%{_libexecdir}/%{name}/*
%{_datadir}/%{name}
2022-07-20 11:10:28 +08:00
%exclude %{_libexecdir}/mc/extfs.d/{s3+,uc1541}
%files python
%{_libexecdir}/mc/extfs.d/{s3+,uc1541}
2019-12-14 18:57:54 +08:00
%files help
%{_mandir}/man1/*
%license doc/COPYING
%doc doc/FAQ doc/NEWS doc/README
%changelog
2023-04-19 14:53:42 +08:00
* Wed Apr 19 2023 wangkai <13474090681@163.com> - 1:4.8.29-1
- Update to 4.8.29
2022-07-20 11:10:28 +08:00
* Wed Jul 20 2022 yaoxin <yaoxin30@h-partners.com> - 1:4.8.28-1
- Update to 4.8.28 to fix CVE-2021-36370
2019-12-14 18:57:54 +08:00
* Tue Nov 19 2019 caomeng<caomeng5@huawei.com> - 1:4.8.21-3
- Package init