File eaglemode.spec of Package eaglemode

#
# spec file for package eaglemode
#
# Copyright (c) 2013 SUSE LINUX Products 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:           eaglemode
Version:        0.84.0
Release:        0
Summary:        Eagle Mode the deep application Cosmos
License:        GPL-3.0
Group:          Development/Tools/Other
Url:            http://eaglemode.sourceforge.net/
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Source2:        %{name}_16x16.png
Source3:        %{name}_24x24.png
Source4:        %{name}_32x32.png
Source5:        %{name}_48x48.png
Source6:        %{name}-rpmlintrc
Patch0:         01-eaglemode.patch
BuildRequires:  gcc-c++
BuildRequires:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  libtiff-devel
BuildRequires:  perl
%if 0%{?sles_version}
BuildRequires:  gtk2-devel
%else
BuildRequires:  pkgconfig(gtk+-2.0)
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires:  libpoppler-glib-devel
BuildRequires:  librsvg-devel
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel
%endif
%if 0%{?mandriva_version}
BuildRequires:  libpoppler-glib-devel
BuildRequires:  librsvg2-devel
BuildRequires:  libxine-devel
BuildRequires:  x11-server-devel
%endif
%if 0%{?fedora_version}
BuildRequires:  libX11-devel
BuildRequires:  librsvg2-devel
BuildRequires:  poppler-glib-devel
BuildRequires:  xine-lib-devel
%endif
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
Requires:       abiword
Requires:       xorg-x11
%if 0%{?suse_version}
#Requires:       arc
Requires:       binutils
Requires:       bzip2
Requires:       gcc
Requires:       gedit
Requires:       ghostscript-x11
Requires:       gzip
#Requires:       lha
Requires:       libjpeg-devel
Requires:       libpng-devel
Requires:       libtiff-devel
Requires:       libxine-devel
Requires:       lzop
Requires:       p7zip
Requires:       perl
Requires:       tar
Requires:       texlive-bin-dvilj
Requires:       transfig
#Requires:       unarj
Recommends:     unrar
Requires:       unzip
Requires:       xorg-x11-libX11-devel
Requires:       xterm
Requires:       zip
Requires:       zoo
%endif

%description
Eagle Mode is an advanced solution for a futuristic style of man-machine communication in which the user can visit almost everything simply by zooming in. It has a professional file manager, file viewers and players for most of the common file types, a chess game, a 3D mines game, a netwalk game, a multi-function clock and some fractal fun, all integrated in a virtual cosmos. Besides, that cosmos also provides a Linux kernel configurator in form of a kernel patch.

%prep
%setup -q
%patch0 -p1

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
perl make.pl build

%install
perl make.pl install dir=%{buildroot}/%{_libdir}/eaglemode
cd %{buildroot}/%{_libdir}/eaglemode
mkdir -p  ../../../%{_docdir}/eaglemode
cp -r doc ../../../%{_docdir}/eaglemode
mkdir -p ../../share/eaglemode
cp -r res ../../share/eaglemode
mkdir -p %{buildroot}%{_sysconfdir}/eaglemode
cp -r etc/* %{buildroot}%{_sysconfdir}/eaglemode
mkdir -p %{buildroot}%{_prefix}/bin
cd %{buildroot}%{_prefix}/bin
ln -s ../../%{_libdir}/eaglemode/eaglemode.sh eaglemode
mkdir -p %{buildroot}%{_prefix}/lib
cd %{buildroot}/%{_libdir}
ln -s eaglemode/lib/*.so .
mkdir -p %{buildroot}%{_prefix}/include
cd %{buildroot}%{_prefix}/include
ln -s ../../%{_libdir}/eaglemode/include/* .
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
mkdir -p %{buildroot}%{_datadir}/applications
cp -avL %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/eaglemode.png
cp -avL %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/eaglemode.png
cp -avL %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/eaglemode.png
cp -avL %{SOURCE5} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/eaglemode.png
cp -avL %{SOURCE1} %{buildroot}%{_datadir}/applications/eaglemode.desktop
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%endif
%if 0%{?suse_version} > 1020
%fdupes -s %{buildroot}
%endif

%files
%defattr(-,root,root)
%{_bindir}/*
%dir %{_docdir}/%{name}
%dir %{_docdir}/%{name}/*
%doc %{_docdir}/%{name}/*/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*/
%{_libdir}/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*/
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/*/
%{_includedir}/*
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/24x24
%dir %{_datadir}/icons/hicolor/24x24/apps
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/48x48/apps
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

%changelog
openSUSE Build Service is sponsored by