320 lines
10 KiB
RPMSpec
320 lines
10 KiB
RPMSpec
%define disable_X 0
|
|
%define enable_vfs 1
|
|
|
|
Name: mc
|
|
Version: 4.8.19
|
|
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>
|
|
URL: http://www.midnight-commander.org
|
|
Source: http://www.midnight-commander.org/downloads/%{name}-%{version}.tar.xz
|
|
# see http://www.freedesktop.org/wiki/Software_2fBadSoftware
|
|
Patch1: %{name}-4.6.2-utf8.patch.gz
|
|
Patch5: %{name}-4.7.0.1-extensions.patch
|
|
Patch6: %{name}-4.7.0.1-tty-slang.patch
|
|
Patch7: %{name}-4.7.0.4-cross_compile_slang.patch
|
|
Patch8: mc-4.8.4-remember_file_position.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libglib-devel
|
|
%if "%{stage1}" != "1"
|
|
BuildRequires: libgpm-devel
|
|
%endif
|
|
BuildRequires: libslang-devel
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: bison
|
|
BuildRequires: gettext
|
|
BuildRequires: unzip
|
|
BuildRequires: bash
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pam-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
#%patch1 -p1
|
|
#%patch5 -p1
|
|
#%patch6 -p1
|
|
#%patch8 -p0
|
|
|
|
# FIXME: files in /lib should be converted to UTF-8
|
|
|
|
## convert man pages in /doc to UTF-8
|
|
#cd doc/man
|
|
#for i in mc.1.in xnc.hlp; do
|
|
# iconv -f koi8-r -t utf-8 < ru/${i} > ru/${i}.tmp
|
|
# mv -f ru/${i}.tmp ru/${i}
|
|
#done
|
|
#for i in mc.1.in mcserv.8.in xnc.hlp; do
|
|
# iconv -f iso-8859-5 -t utf-8 < sr/${i} > sr/${i}.tmp
|
|
# mv -f sr/${i}.tmp sr/${i}
|
|
#done
|
|
#for d in es it; do
|
|
# for i in mc.1.in xnc.hlp; do
|
|
# iconv -f iso-8859-3 -t utf-8 < ${d}/${i} > ${d}/${i}.tmp
|
|
# mv -f ${d}/${i}.tmp ${d}/${i}
|
|
# done
|
|
#done
|
|
#for d in hu pl; do
|
|
# for i in mc.1.in xnc.hlp; do
|
|
# iconv -f iso-8859-2 -t utf-8 < ${d}/${i} > ${d}/${i}.tmp
|
|
# mv -f ${d}/${i}.tmp ${d}/${i}
|
|
# done
|
|
#done
|
|
#%if "%{_host}" != "%{_build}"
|
|
#%patch7 -p1
|
|
#%endif
|
|
|
|
%build
|
|
export CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE %{optflags}"
|
|
#autoreconf
|
|
%configure \
|
|
--enable-charset \
|
|
--with-gpm-mouse \
|
|
--with-screen=slang \
|
|
%if "%{stage1}" != "1"
|
|
--with-samba \
|
|
%endif
|
|
--disable-rpath \
|
|
%if %enable_vfs
|
|
--enable-vfs-mcfs \
|
|
%endif
|
|
%if %disable_X
|
|
--without-x \
|
|
%endif
|
|
%if "%{_host}" != "%{_build}"
|
|
--with-slang-includes=/usr/%{_host}/include \
|
|
--with-slang-libs=/usr/%{_host}/lib \
|
|
CPPFLAGS="-lm -ldl"
|
|
%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
|
|
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%{_sysconfdir}/mc/*
|
|
%{_bindir}/*
|
|
#%config %{_sysconfdir}/profile.d/*
|
|
%{_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
|
|
%{_libexecdir}/mc/fish
|
|
%dir %{_libexecdir}/mc/ext.d
|
|
%{_libexecdir}/mc/ext.d/*.sh
|
|
%{_mandir}/man1/*
|
|
%lang(es) %{_mandir}/es/man1/*
|
|
%lang(hu) %{_mandir}/hu/man1/*
|
|
%lang(it) %{_mandir}/it/man1/*
|
|
%lang(pl) %{_mandir}/pl/man1/*
|
|
%lang(ru) %{_mandir}/ru/man1/*
|
|
%lang(sr) %{_mandir}/sr/man1/*
|
|
%doc AUTHORS COPYING
|
|
#NEWS README*
|
|
|
|
%changelog
|
|
* Thu Mar 09 2017 Automatic Build System <autodist@mambasoft.it> 4.8.19-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Oct 03 2016 Automatic Build System <autodist@mambasoft.it> 4.8.18-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon May 09 2016 Automatic Build System <autodist@mambasoft.it> 4.8.17-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Mar 13 2016 Automatic Build System <autodist@mambasoft.it> 4.8.16-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Nov 09 2015 Automatic Build System <autodist@mambasoft.it> 4.8.15-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Mar 26 2015 Automatic Build System <autodist@mambasoft.it> 4.8.14-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Sep 05 2014 Automatic Build System <autodist@mambasoft.it> 4.8.13-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|