Accepting request 110296 from home:subchaser

updated for 4.8.1.1

OBS-URL: https://build.opensuse.org/request/show/110296
OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=37
This commit is contained in:
Robert Milasan
2012-03-23 15:24:31 +00:00
committed by Git OBS Bridge
parent 21c1c458e0
commit 431d28b5c9
15 changed files with 232 additions and 109 deletions

81
mc.spec
View File

@@ -15,19 +15,24 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mc
Summary: Midnight Commander
License: GPL-2.0+
License: GPL-3.0+
Group: Productivity/File utilities
Url: http://www.midnight-commander.org/
Version: 4.7.5.3
Version: 4.8.1.1
Release: 0
Source: mc-%{version}.tar.lzma
Source: mc-%{version}.tar.xz
Source1: x11_browser
Source2: %{name}.desktop
Source3: %{name}.png
Source4: cmake.syntax
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
@@ -68,8 +73,8 @@ BuildRequires: readline-devel
BuildRequires: recode
BuildRequires: slang-devel
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel
BuildRequires: xdg-utils
BuildRequires: xorg-x11-devel
BuildRequires: xz
Requires(pre): permissions
Recommends: %{name}-lang = %{version}
@@ -100,12 +105,15 @@ target directory.
%setup -q
%patch0
%patch6
%patch61
%patch62
%patch7
%patch8
%patch9
%patch12
%patch16
%patch17
%patch18
%patch20
%patch24
%patch30
@@ -116,59 +124,6 @@ target directory.
%patch51
%patch52 -p1
pushd doc/hints
iconv -f iso8859-1 -t utf-8 -o mc.hint.tmp mc.hint && mv mc.hint.tmp mc.hint
iconv -f iso8859-1 -t utf-8 -o mc.hint.es.tmp mc.hint.es && mv mc.hint.es.tmp mc.hint.es
iconv -f iso8859-1 -t utf-8 -o mc.hint.it.tmp mc.hint.it && mv mc.hint.it.tmp mc.hint.it
iconv -f iso8859-1 -t utf-8 -o mc.hint.nl.tmp mc.hint.nl && mv mc.hint.nl.tmp mc.hint.nl
iconv -f iso8859-2 -t utf-8 -o mc.hint.cs.tmp mc.hint.cs && mv mc.hint.cs.tmp mc.hint.cs
iconv -f iso8859-2 -t utf-8 -o mc.hint.hu.tmp mc.hint.hu && mv mc.hint.hu.tmp mc.hint.hu
iconv -f iso8859-2 -t utf-8 -o mc.hint.pl.tmp mc.hint.pl && mv mc.hint.pl.tmp mc.hint.pl
iconv -f iso8859-5 -t utf-8 -o mc.hint.sr.tmp mc.hint.sr && mv mc.hint.sr.tmp mc.hint.sr
iconv -f big5 -t utf8 -o mc.hint.zh.tmp mc.hint.zh && mv mc.hint.zh.tmp mc.hint.zh
popd
pushd misc
iconv -f iso8859-5 -t utf-8 -o mc.menu.sr.tmp mc.menu.sr && mv mc.menu.sr.tmp mc.menu.sr
popd
# convert docs to utf-8
pushd doc
pushd man
pushd es
iconv -f iso8859-1 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
popd
pushd hu
iconv -f iso8859-2 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
popd
pushd it
iconv -f iso8859-1 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
popd
pushd pl
iconv -f iso8859-2 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
popd
pushd sr
iconv -f iso8859-5 -t utf-8 -o mc.1.in.tmp mc.1.in && mv mc.1.in.tmp mc.1.in
iconv -f iso8859-5 -t utf-8 -o mcserv.8.in.tmp mcserv.8.in && mv mcserv.8.in.tmp mcserv.8.in
popd # doc/man
popd # doc/
pushd hlp
pushd es
iconv -f iso8859-1 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
pushd hu
iconv -f iso8859-2 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
pushd it
iconv -f iso8859-1 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
pushd pl
iconv -f iso8859-2 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd
pushd sr
iconv -f iso8859-5 -t utf-8 -o xnc.hlp.tmp xnc.hlp && mv xnc.hlp.tmp xnc.hlp
popd # doc/hlp
popd # doc/
popd
%build
autoreconf --force --install
%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security -Wno-unused-parameter
@@ -183,8 +138,9 @@ make %{?jobs:-j%{jobs}}
make DESTDIR=%{buildroot} install
# clean up this setuid problem for now
chmod 755 %{buildroot}/%{_libexecdir}/mc/cons.saver
# copy Korean mc hint message,
# install -m 0644 %{SOURCE3} %{datadir}/mc/
install -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/mc/syntax/
#install the shell functions for bourne shell and csh
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
ln -fs -t %{buildroot}%{_sysconfdir}/profile.d %{_datadir}/mc/mc.{,c}sh
@@ -201,7 +157,7 @@ rm -rf %{buildroot}%{_datadir}/locale/be@tarask
rm -rf %{buildroot}
%post
%run_permissions
%set_permissions %{_libexecdir}/mc/cons.saver
%verifyscript
%verify_permissions -e %{_libexecdir}/mc/cons.saver
@@ -218,7 +174,7 @@ rm -rf %{buildroot}
%config %{_sysconfdir}/mc/mc.ext
%config %{_sysconfdir}/mc/mc.keymap.emacs
%config %{_sysconfdir}/mc/edit.spell.rc
%config %{_sysconfdir}/mc/cedit.menu
%config %{_sysconfdir}/mc/mcedit.menu
%config %{_sysconfdir}/mc/mc.keymap.default
%config %{_sysconfdir}/mc/mc.keymap
%config %{_sysconfdir}/mc/edit.indent.rc
@@ -230,11 +186,14 @@ rm -rf %{buildroot}
%{_datadir}/mc/mc.charsets
%{_datadir}/mc/mc.lib
%{_libexecdir}/mc
%{_datadir}/mc/hints/mc.hint
%exclude %{_datadir}/mc/hints/mc.hint.*
%{_datadir}/mc/help/mc.hlp
%exclude %{_datadir}/mc/help/mc.hlp.*
%exclude %{_sysconfdir}/mc/mc.menu.*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%exclude %{_sysconfdir}/mc/mc.menu.*
%files lang -f %{name}.lang
%defattr(-, root, root)