Пакет rox-base: Specfile

%define base_name rox-filer
Name: rox-base
Version: 2.5
Release: alt1.1.qa2

Summary: ROX desktop enviroment
License: GNU GPL
Group: Graphical desktop/Other

Url: http://rox.sourceforge.net/
Source: http://prdownloads.sourceforge.net/%base_name/%base_name-%version.tar.bz2
Source1: rox-startup.sh
Packager: Eugene Ostapets <eostapets@altlinux.ru>

Patch0: rox-i18n-standard-path.patch
Patch1: rox-images-standard-path.patch
Patch2: rox-user-config.patch
Patch3: rox-fix-help-path.patch

Patch50: rox-2.3-rootmenu.patch
Patch51: rox-2.3-workplace.patch
Patch52: rox-2.5-alt-DSO.patch

# Automatically added by buildreq on Thu Oct 05 2006
BuildRequires: fontconfig imake libXt-devel libgtk+2-devel libxml2-devel xorg-cf-files pkgconfig 

%description
ROX is a desktop environment, like GNOME, KDE and XFCE.  It is an attempt to bring some of the good features from RISC OS to Unix and Linux.
%prep
%setup -q -n %base_name-%version
%patch0 -p1
%patch1 -p1
#%%patch2 -p1
%patch3 -p1

#%%patch50 -p1
#%%patch51 -p1
%patch52 -p2

%build
%__mkdir ROX-Filer/build
cd ROX-Filer/build
../src/configure \
	--enable-rox 
%make

%install
%__mkdir -p %buildroot%_libdir/rox/ROX-Filer
%__mkdir -p %buildroot/usr/{bin,share/{mime/packages,Choices,man/man1,rox/{images,help,ROX/MIME}}}
%__install -m 755 ROX-Filer/ROX-Filer %buildroot%_libdir/rox/ROX-Filer
%__install -m 755 ROX-Filer/AppRun %buildroot%_libdir/rox/ROX-Filer
%__install -m 644 rox.xml %buildroot%_datadir/mime/packages
%__install -m 644 rox.1 %buildroot%_mandir/man1
ln -s %buildroot%_mandir/man1/rox.1 %buildroot%_mandir/man1/ROX-Filer.1
%__install -m 755 Choices/MIME-types/application_postscript %buildroot%_datadir/Choices
%__install -m 755 Choices/MIME-types/text %buildroot%_datadir/Choices
%__install -m 755 Choices/MIME-types/text_html %buildroot%_datadir/Choices
#install languages
%__install -Dm 644 ROX-Filer/Messages/cs.gmo %buildroot%_datadir/locale/cs/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/da.gmo %buildroot%_datadir/locale/da/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/de.gmo %buildroot%_datadir/locale/de/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/es.gmo %buildroot%_datadir/locale/es/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/fi.gmo %buildroot%_datadir/locale/fi/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/fr.gmo %buildroot%_datadir/locale/fr/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/hu.gmo %buildroot%_datadir/locale/hu/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/it.gmo %buildroot%_datadir/locale/it/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/ja.gmo %buildroot%_datadir/locale/ja/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/nl.gmo %buildroot%_datadir/locale/nl/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/no.gmo %buildroot%_datadir/locale/no/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/pl.gmo %buildroot%_datadir/locale/pl/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/pt_BR.gmo %buildroot%_datadir/locale/pt_BR/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/ro.gmo %buildroot%_datadir/locale/ro/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/ru.gmo %buildroot%_datadir/locale/ru/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/sv.gmo %buildroot%_datadir/locale/sv/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/zh_CN.gmo %buildroot%_datadir/locale/zh_CN/LC_MESSAGES/ROX-Filer.mo
%__install -Dm 644 ROX-Filer/Messages/zh_TW.gmo %buildroot%_datadir/locale/zh_TW/LC_MESSAGES/ROX-Filer.mo

#install default theme
%__install -m 644 ROX-Filer/ROX/index.theme %buildroot%_datadir/rox/ROX
%__cp ROX-Filer/ROX/MIME/* %buildroot%_datadir/rox/ROX/MIME/
%__cp ROX-Filer/images/* %buildroot%_datadir/rox/images/


%__cp ROX-Filer/Help/*.html %buildroot%_datadir/rox/help
%__install -m 644 ROX-Filer/.DirIcon %buildroot%_libdir/rox/ROX-Filer
%__install -m 644 ROX-Filer/AppInfo.xml %buildroot%_libdir/rox/ROX-Filer
%__install -m 644 ROX-Filer/Options.xml %buildroot%_libdir/rox/ROX-Filer
%__install -m 644 ROX-Filer/style.css %buildroot%_libdir/rox/ROX-Filer
%__install -m 755 %SOURCE1 %buildroot%_bindir/rox
%__subst "s|@LIBDIR@|%_libdir|g" %buildroot%_bindir/rox

%files
%_bindir/*
%_libdir/rox/*
%_datadir/rox/*
%_datadir/mime/packages/*
%_datadir/Choices
%_datadir/locale/*/*/*
%_mandir/man*/*
%doc ROX-Filer/Help/README ROX-Filer/Help/TODO ROX-Filer/Help/Changes

%changelog
* Fri Feb 28 2014 Andrey Cherepanov <cas@altlinux.org> 2.5-alt1.1.qa2
- Fixed build

* Fri Apr 19 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 2.5-alt1.1.qa1
- NMU: rebuilt for updated dependencies.

* Mon Jul 16 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.5-alt1.1
- Fixed build

* Thu Oct 05 2006 Eugene Ostapets <eostapets@altlinux.ru> 2.5-alt1
- new version

* Fri Aug 12 2005 Eugene Ostapets <eostapets@altlinux.ru> 2.3-alt1
- new version

* Wed Aug 10 2005 Eugene Ostapets <eostapets@altlinux.ru> 2.2.0-alt1
- initial build