File project.diff of Package beye
--- beye.spec.orig
+++ beye.spec
@@ -1,15 +1,34 @@
-%global debug_package %{nil}
-
-Name: beye
-Version: 6.1.0
-Release: 3
-Summary: Console hex viewer/editor and disassembler
-License: GPLv2+
-Group: File tools
-URL: http://sourceforge.net/projects/beye/
-Source: biew-610.tar.bz2
-Patch0: biew610-fix-str-fmt.patch
-Provides: biew
+#
+# spec file for package beye
+#
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+
+Name: beye
+Version: 6.1.0
+Release: 0
+Summary: Console hex viewer/editor and disassembler
+License: GPL-2.0+
+Group: Development/Tools/Debuggers
+Url: http://sourceforge.net/projects/beye/
+Source: biew-610.tar.bz2
+Patch0: biew610-fix-str-fmt.patch
+Patch1: biew-no-date.diff
+Provides: biew
+# FIXME: source should be fixed
+BuildRequires: -post-build-checks
%description
BEYE (Binary EYE) is a free, portable, advanced file viewer with built-in editor
@@ -19,39 +38,31 @@ MZ,NE,PE,ELF and other.
%prep
%setup -q -n biew-610
-%patch0 -p0
+%patch0
+%patch1 -p1
+sed -i 's/\r//' doc/*.txt
%build
-CFLAGS=$RPM_OPT_FLAGS" -mmmx -msse"
-CXXFLAGS=$RPM_OPT_FLASG" -mmmx -msse"
-./configure --enable-curses --libdir=%{_libdir} --prefix=%_prefix
-make TARGET_OS=linux USE_MOUSE=n PREFIX=%_prefix
+export CFLAGS="%{optflags}"
+./configure --enable-curses --libdir=%{_libdir} --prefix=%{_prefix}
+make %{?_smp_mflags} TARGET_OS=linux USE_MOUSE=n PREFIX=%{_prefix}
%install
-rm -rf %buildroot
-install -d %buildroot{%{_bindir},%{_datadir}/%{name},%{_mandir}/man1}
-install -m 755 biew %buildroot%{_bindir}/%{name}
-cp -a bin_rc/{xlt,skn,*.hlp} %buildroot%{_datadir}/%{name}
-install doc/biew.1 %buildroot%{_mandir}/man1/%{name}.1
-
-%clean
-rm -rf %buildroot
+install -d %{buildroot}{%{_bindir},%{_mandir}/man1}
+install -d %{buildroot}%{_datadir}/biew
+install -m 755 biew %{buildroot}%{_bindir}/%{name}
+cp -a bin_rc/{xlt,skn,*.hlp} %{buildroot}%{_datadir}/biew
+install -m 644 doc/biew.1 %{buildroot}%{_mandir}/man1/%{name}.1
+#
+cd %{buildroot}%{_bindir}/
+ln -s beye biew
%files
+%defattr(-,root,root)
%doc doc/*.txt
-%{_bindir}/%{name}
-%{_datadir}/%{name}/*
-%{_mandir}/man?/%{name}.1*
+%{_bindir}/beye
+%{_bindir}/biew
+%{_datadir}/biew/*
+%{_mandir}/man?/%{name}.1%{ext_man}
%changelog
-* Tue Oct 15 2013 Huaren Zhong <huaren.zhong@gmail.com> 6.1.0
-- Rebuild for Fedora
-* Fri Jan 11 2013 umeabot <umeabot> 6.1.0-3.mga3
-+ Revision: 346901
-- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
-* Wed Jan 09 2013 boklm <boklm> 6.1.0-2.mga3
-+ Revision: 343936
-- remove unused macros
-* Sun Jun 12 2011 kharec <kharec> 6.1.0-1.mga2
-+ Revision: 104890
-- imported package biew