2024-01-06 07:01:08 +01:00
|
|
|
%define disable_X 0
|
|
|
|
%define enable_vfs 1
|
|
|
|
|
|
|
|
Name: mc
|
2024-01-28 09:16:33 +01:00
|
|
|
Version: 4.8.31
|
2024-01-06 07:01:08 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A user-friendly file manager and visual shell
|
|
|
|
Group: Applications/Shells
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 07:01:12 +01:00
|
|
|
URL: http://midnight-commander.org/
|
2024-01-06 07:01:08 +01:00
|
|
|
Source: http://www.midnight-commander.org/downloads/%{name}-%{version}.tar.xz
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-28 09:16:33 +01:00
|
|
|
BuildRequires: libe2fs-devel
|
2024-01-06 07:01:08 +01:00
|
|
|
BuildRequires: libglib-devel
|
|
|
|
BuildRequires: libgpm-devel
|
2024-01-28 09:16:33 +01:00
|
|
|
BuildRequires: libperl
|
2024-01-06 07:01:08 +01:00
|
|
|
BuildRequires: libslang-devel
|
2024-01-28 09:16:33 +01:00
|
|
|
BuildRequires: libssh2-devel
|
2024-01-06 07:01:08 +01:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: bash
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
Midnight Commander is a visual shell much like a file manager, only with way more features.
|
|
|
|
It is text mode, but also includes mouse support if you are running GPM.
|
|
|
|
Its coolest feature is the ability to ftp, view tar, zip files, and poke into RPMs for specific files.
|
|
|
|
|
2024-01-28 09:16:33 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 07:01:08 +01:00
|
|
|
%prep
|
2024-01-28 09:16:33 +01:00
|
|
|
%setup -q
|
2024-01-06 07:01:08 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE %{optflags}"
|
|
|
|
%configure \
|
|
|
|
--enable-charset \
|
|
|
|
--with-gpm-mouse \
|
|
|
|
--with-screen=slang \
|
|
|
|
--with-samba \
|
|
|
|
--disable-rpath \
|
|
|
|
%if %enable_vfs
|
|
|
|
--enable-vfs-mcfs \
|
|
|
|
%endif
|
|
|
|
%if %disable_X
|
|
|
|
--without-x \
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%make CFLAGS="%optflags -I%{_includedir}/slang"
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%if "%{_build}" != "%{_host}"
|
|
|
|
(cd src; rm -f man2hlp; gcc man2hlp.c -o man2hlp `pkg-config glib-2.0 --cflags --libs` -I..)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
# install profile files
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/profile.d
|
|
|
|
install -m 755 contrib/{mc.sh,mc.csh} %{buildroot}%{_sysconfdir}/profile.d
|
|
|
|
|
|
|
|
# install man pages in various languages
|
|
|
|
for lang in es hu it pl ru sr; do
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/${lang}
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/${lang}/man1
|
|
|
|
gzip -nf9 doc/man/${lang}/mc.1
|
|
|
|
install -m 644 doc/man/${lang}/mc.1.gz %{buildroot}%{_mandir}/${lang}/man1
|
|
|
|
done
|
|
|
|
|
2024-01-28 09:16:33 +01:00
|
|
|
%find_lang %{name} --with-man
|
2024-01-06 07:01:08 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/mc/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_sysconfdir}/profile.d/*sh
|
|
|
|
%dir %{_datadir}/mc
|
|
|
|
%{_datadir}/mc/*
|
|
|
|
%dir %{_libexecdir}/mc
|
|
|
|
%{_libexecdir}/mc/cons.saver
|
|
|
|
%{_libexecdir}/mc/mc-wrapper.csh
|
|
|
|
%{_libexecdir}/mc/mc-wrapper.sh
|
|
|
|
%{_libexecdir}/mc/mc.csh
|
|
|
|
%{_libexecdir}/mc/mc.sh
|
|
|
|
%{_libexecdir}/mc/extfs.d
|
2024-01-28 09:16:33 +01:00
|
|
|
#%{_libexecdir}/mc/fish
|
2024-01-06 07:01:08 +01:00
|
|
|
%dir %{_libexecdir}/mc/ext.d
|
|
|
|
%{_libexecdir}/mc/ext.d/*.sh
|
2024-01-28 09:16:33 +01:00
|
|
|
%dir %{_libexecdir}/mc/shell
|
|
|
|
%{_libexecdir}/mc/shell/*
|
2024-01-06 07:01:08 +01:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
#NEWS README*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-28 09:16:33 +01:00
|
|
|
* Sat Jan 27 2024 Automatic Build System <autodist@openmamba.org> 4.8.31-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:14 +01:00
|
|
|
* Mon Aug 14 2023 Automatic Build System <autodist@mambasoft.it> 4.8.30-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:13 +01:00
|
|
|
* Mon Jan 23 2023 Automatic Build System <autodist@mambasoft.it> 4.8.29-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:12 +01:00
|
|
|
* Sun Mar 27 2022 Automatic Build System <autodist@mambasoft.it> 4.8.28-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:12 +01:00
|
|
|
* Tue Aug 17 2021 Automatic Build System <autodist@mambasoft.it> 4.8.27-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:11 +01:00
|
|
|
* Fri Jan 22 2021 Automatic Build System <autodist@mambasoft.it> 4.8.26-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:11 +01:00
|
|
|
* Sun Jul 19 2020 Automatic Build System <autodist@mambasoft.it> 4.8.25-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:11 +01:00
|
|
|
* Mon Jan 20 2020 Automatic Build System <autodist@mambasoft.it> 4.8.24-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:10 +01:00
|
|
|
* Sun Jun 23 2019 Automatic Build System <autodist@mambasoft.it> 4.8.23-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:10 +01:00
|
|
|
* Wed Jan 02 2019 Automatic Build System <autodist@mambasoft.it> 4.8.22-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:10 +01:00
|
|
|
* Sun Jun 03 2018 Automatic Build System <autodist@mambasoft.it> 4.8.21-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:10 +01:00
|
|
|
* Sun Feb 04 2018 Automatic Build System <autodist@mambasoft.it> 4.8.20-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:09 +01:00
|
|
|
* Thu Mar 09 2017 Automatic Build System <autodist@mambasoft.it> 4.8.19-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:09 +01:00
|
|
|
* Mon Oct 03 2016 Automatic Build System <autodist@mambasoft.it> 4.8.18-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:09 +01:00
|
|
|
* Mon May 09 2016 Automatic Build System <autodist@mambasoft.it> 4.8.17-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:09 +01:00
|
|
|
* Sun Mar 13 2016 Automatic Build System <autodist@mambasoft.it> 4.8.16-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:09 +01:00
|
|
|
* Mon Nov 09 2015 Automatic Build System <autodist@mambasoft.it> 4.8.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:08 +01:00
|
|
|
* Thu Mar 26 2015 Automatic Build System <autodist@mambasoft.it> 4.8.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:08 +01:00
|
|
|
* Fri Sep 05 2014 Automatic Build System <autodist@mambasoft.it> 4.8.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:01:08 +01:00
|
|
|
* Tue Apr 01 2014 Automatic Build System <autodist@mambasoft.it> 4.8.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Dec 02 2013 Automatic Build System <autodist@mambasoft.it> 4.8.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Aug 15 2013 Automatic Build System <autodist@mambasoft.it> 4.8.10-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Jul 11 2013 Automatic Build System <autodist@mambasoft.it> 4.8.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Apr 05 2013 Automatic Build System <autodist@mambasoft.it> 4.8.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Jan 02 2013 Automatic Build System <autodist@mambasoft.it> 4.8.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 18 2012 Automatic Build System <autodist@mambasoft.it> 4.8.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Sep 17 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.4-2mamba
|
|
|
|
- added an upstream patch to fix a regression in remembering mcedit file position (https://www.midnight-commander.org/ticket/2853?cversion=0&cnum_hist=4)
|
|
|
|
- re-enabled X11 events support
|
|
|
|
|
|
|
|
* Fri Aug 17 2012 Automatic Build System <autodist@mambasoft.it> 4.8.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Jul 19 2012 Automatic Build System <autodist@mambasoft.it> 4.8.1.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Apr 26 2012 Automatic Build System <autodist@mambasoft.it> 4.8.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Apr 22 2012 Automatic Build System <autodist@mambasoft.it> 4.8.1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Mar 20 2012 Automatic Build System <autodist@mambasoft.it> 4.8.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Mar 14 2012 Automatic Build System <autodist@mambasoft.it> 4.8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Nov 14 2011 Automatic Build System <autodist@mambasoft.it> 4.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Oct 01 2011 Automatic Build System <autodist@mambasoft.it> 4.7.5.5-1mamba
|
|
|
|
- update to 4.7.5.5
|
|
|
|
|
|
|
|
* Thu Sep 15 2011 Automatic Build System <autodist@mambasoft.it> 4.7.5.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Aug 01 2011 Automatic Build System <autodist@mambasoft.it> 4.7.5.3-1mamba
|
|
|
|
- update to 4.7.5.3
|
|
|
|
|
|
|
|
* Mon Apr 11 2011 Automatic Build System <autodist@mambasoft.it> 4.7.5.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Feb 06 2011 Automatic Build System <autodist@mambasoft.it> 4.7.5.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Dec 28 2010 Automatic Build System <autodist@mambasoft.it> 4.7.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Nov 14 2010 Automatic Build System <autodist@mambasoft.it> 4.7.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Nov 08 2010 Automatic Build System <autodist@mambasoft.it> 4.7.0.10-1mamba
|
|
|
|
- automatic update to 4.7.0.10 by autodist
|
|
|
|
|
|
|
|
* Tue Sep 07 2010 Automatic Build System <autodist@mambasoft.it> 4.7.0.9-1mamba
|
|
|
|
- automatic update to 4.7.0.9 by autodist
|
|
|
|
|
|
|
|
* Sun Sep 05 2010 Automatic Build System <autodist@mambasoft.it> 4.7.0.8-1mamba
|
|
|
|
- automatic update to 4.7.0.8 by autodist
|
|
|
|
|
|
|
|
* Sun Jul 11 2010 Davide Madrisan <davide.madrisan@gmail.com> 4.7.0.7-1mamba
|
|
|
|
- own %{_libexecdir}/mc
|
|
|
|
- update to 4.7.0.7
|
|
|
|
|
|
|
|
* Mon Apr 12 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.0.4-2mamba
|
|
|
|
- use standard make install
|
|
|
|
|
|
|
|
* Sun Apr 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.0.4-1mamba
|
|
|
|
- update to 4.7.0.4
|
|
|
|
|
|
|
|
* Fri Mar 05 2010 Automatic Build System <autodist@mambasoft.it> 4.7.0.3-1mamba
|
|
|
|
- automatic update to 4.7.0.3 by autodist
|
|
|
|
|
|
|
|
* Wed Feb 10 2010 Automatic Build System <autodist@mambasoft.it> 4.7.0.2-1mamba
|
|
|
|
- automatic update to 4.7.0.2 by autodist
|
|
|
|
|
|
|
|
* Mon Jan 18 2010 Automatic Build System <autodist@mambasoft.it> 4.7.0.1-1mamba
|
|
|
|
- automatic update to 4.7.0.1 by autodist
|
|
|
|
|
|
|
|
* Mon Dec 07 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6.2-2mamba
|
|
|
|
- added utf-8 patch for this version; rebuilt with X events support enabled
|
|
|
|
|
|
|
|
* Mon Feb 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6.2-1mamba
|
|
|
|
- update to 4.6.2
|
|
|
|
|
|
|
|
* Tue Dec 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6.1-6mamba
|
|
|
|
- added bash32 and debian_fixes patches
|
|
|
|
|
|
|
|
* Mon Dec 31 2007 Aleph0 <aleph0@openmamba.org> 4.6.1-5mamba
|
|
|
|
- fix permissions for profile files
|
|
|
|
- do not create insecure temporary files in mc-wrapper.[c]sh
|
|
|
|
|
|
|
|
* Sat Aug 18 2007 Fabio Giani <fabio.giani@email.it> 4.6.1-4mamba
|
|
|
|
- specfile updates
|
|
|
|
|
|
|
|
* Tue Jan 31 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.6.1-3qilnx
|
|
|
|
- enabled support for samba
|
|
|
|
- do use slang instead of mcslang
|
|
|
|
- converted to UTF-8 charset and install all the available man pages
|
|
|
|
- added missing build requirements
|
|
|
|
|
|
|
|
* Wed Sep 14 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6.1-2qilnx
|
|
|
|
- stable 4.6.1 version build
|
|
|
|
|
|
|
|
* Mon May 02 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.6.1-1qilnx
|
|
|
|
- update from CVS
|
|
|
|
- also fixes security issues QSA-2005-059
|
|
|
|
(CAN-2004-100[4,5,9], CAN-2004-109[0,1,2,3], CAN-2004-117[4,5,6])
|
|
|
|
|
|
|
|
* Tue May 18 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.6.0-5qilnx
|
|
|
|
- specfile updates
|
|
|
|
|
|
|
|
* Mon May 03 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.6.0-4qilnx
|
|
|
|
- fixed CVE-CAN-2004-{0226,0231,0232} vulnerabilities
|
|
|
|
|
|
|
|
* Wed Jan 28 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.6.0-3qilnx
|
|
|
|
- conditional disable_X flag
|
|
|
|
- /usr/lib/mc directory ownership
|
|
|
|
|
|
|
|
* Wed Jan 21 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.6.0-2qilnx
|
|
|
|
- fixed CVE-CAN-2003-1023 vulnerability
|
|
|
|
- specfile updated
|
|
|
|
|
|
|
|
* Mon Apr 14 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it>
|
|
|
|
- creation of mc package
|