Accepting request 183610 from home:subchaser:midnight-commander:latest

Updated to latest released (4.8.9)

OBS-URL: https://build.opensuse.org/request/show/183610
OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=57
This commit is contained in:
OBS User mrdocs
2013-07-18 16:35:38 +00:00
committed by Git OBS Bridge
parent 260c80a841
commit de082762cc
21 changed files with 345 additions and 387 deletions

66
mc.spec
View File

@@ -21,9 +21,9 @@ Summary: Midnight Commander
License: GPL-3.0+
Group: Productivity/File utilities
Url: http://www.midnight-commander.org/
Version: 4.8.1.7
Version: 4.8.9
Release: 0.0
Source: https://www.midnight-commander.org/downloads/mc-%{version}.tar.xz
Source: http://ftp.midnight-commander.org/mc-%{version}.tar.xz
Source1: x11_browser
Source2: %{name}.desktop
Source3: %{name}.png
@@ -31,12 +31,12 @@ Source4: cmake.syntax
Source5: mc-rpmlintrc
Patch18: mc-Syntax.cmake.patch
Patch0: mc-fix_lib_search_path.patch
Patch6: mc-apps.patch
Patch61: mc-apps-mediainfo.patch
Patch62: mc-apps-torrent.patch
Patch7: mc-palmsupport.patch
Patch8: mc-word_docs.patch
Patch9: mc-x11browser.diff
Patch61: mc-extd-misc.patch
Patch62: mc-extd-video.patch
Patch63: mc-extd-doc.patch
Patch64: mc-extd-sound.patch
Patch69: mc-extd-xdg.patch
Patch71: mc-ext-audio.patch
Patch12: mc-wrapper.patch
Patch16: mc-esc-seq.patch
Patch17: mc-rpm.patch
@@ -50,7 +50,6 @@ Patch32: 20_wrong_path_to_wrappers.patch
# PATCH-FIX-UPSTREAM mc-multi-press-f-keys.patch mc287 sbrabec@suse.cz - Fixed Esc + Numeral F-key emulation.
Patch41: mc-multi-press-f-keys.patch
# Patches from Fedora
Patch50: mc-extensions.patch
#Patch adding -fpie and -pie to compilation and linking of setuid binaries
Patch52: mc-pie.patch
@@ -105,12 +104,12 @@ target directory.
%prep
%setup -q
%patch0
%patch6
%patch61
%patch62
%patch7
%patch8
%patch9
%patch63
%patch64
%patch69
%patch71
%patch12
%patch16
%patch17
@@ -121,13 +120,15 @@ target directory.
%patch31
%patch32
%patch41
%patch50
%patch52 -p1
%build
autoreconf --force --install
%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security -Wno-unused-parameter
export CFLAGS="$RPM_OPT_FLAGS %{warn_flags}"
export X11_WWW="%{_datadir}/mc/x11_browser"
%configure \
--localstatedir=/var/lib \
--enable-charset \
@@ -151,7 +152,9 @@ install -D -m 644 %{S:3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -i %name System FileManager
# Remove not supported language
rm -rf %{buildroot}%{_datadir}/locale/be@tarask
%{find_lang} %{name}
%find_lang %name
%fdupes -s %{buildroot}%{_prefix}
%clean
@@ -168,20 +171,21 @@ rm -rf %{buildroot}
%doc ABOUT-NLS COPYING NEWS README
%config %{_sysconfdir}/profile.d/*
%{_bindir}/mc*
%dir %{_sysconfdir}/mc
%dir %{_sysconfdir}/mc/
%config %{_sysconfdir}/mc/filehighlight.ini
%config %{_sysconfdir}/mc/sfs.ini
%config %{_sysconfdir}/mc/mc.menu
%config %{_sysconfdir}/mc/mc.ext
%config %{_sysconfdir}/mc/mc.keymap.emacs
%config %{_sysconfdir}/mc/edit.spell.rc
###config #{_sysconfdir}/mc/edit.spell.rc
%config %{_sysconfdir}/mc/mcedit.menu
%config %{_sysconfdir}/mc/mc.keymap.default
%config %{_sysconfdir}/mc/mc.keymap
%config %{_sysconfdir}/mc/mc.default.keymap
%config %{_sysconfdir}/mc/mc.emacs.keymap
%config %{_sysconfdir}/mc/edit.indent.rc
%dir %{_libexecdir}/mc
#(!)dir #{_libexecdir}/mc
%verify(not mode) %{_libexecdir}/mc/cons.saver
%{_mandir}/man1/*
%exclude %{_mandir}/*/man1/*
%{_datadir}/mc
%{_datadir}/mc/syntax/Syntax
%{_datadir}/mc/mc.charsets
@@ -192,18 +196,26 @@ rm -rf %{buildroot}
%{_datadir}/mc/help/mc.hlp
%exclude %{_datadir}/mc/help/mc.hlp.*
%exclude %{_sysconfdir}/mc/mc.menu.*
%exclude %{_datadir}/locale/*/LC_MESSAGES/mc.mo
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%exclude %{_sysconfdir}/mc/mc.menu.*
%files lang -f %{name}.lang
%files lang -f %name.lang
%defattr(-, root, root)
%lang(es) %doc %{_mandir}/es
%lang(hu) %doc %{_mandir}/hu
%lang(it) %doc %{_mandir}/it
%lang(pl) %doc %{_mandir}/pl
%lang(ru) %doc %{_mandir}/ru
%lang(sr) %doc %{_mandir}/sr
%lang(hu) %dir %{_mandir}/hu/
%lang(hu) %dir %{_mandir}/hu/man1/
%lang(hu) %{_mandir}/hu/man1/mc.1.gz
%lang(pl) %dir %{_mandir}/pl/
%lang(pl) %dir %{_mandir}/pl/man1/
%lang(pl) %{_mandir}/pl/man1/mc.1.gz
%lang(sr) %dir %{_mandir}/sr/
%lang(sr) %dir %{_mandir}/sr/man1/
%lang(sr) %{_mandir}/sr/man1/mc.1.gz
%lang(cs) %doc %{_datadir}/mc/*/mc.*.cs
%lang(es) %doc %{_datadir}/mc/*/mc.*.es
%lang(hu) %doc %{_datadir}/mc/*/mc.*.hu