File wiithon.spec of Package wiithon
Name: wiithon
Version: 1.2.svn455
Summary: WBFS Partition Manager
Release: 3
License: GPL
Group: Utility/Archiving
#Group: Game
Source: %{name}-%{version}.tar.bz2
Patch0: directory_fix.patch
Patch1: dir_.bazaar_verif.patch
Patch2: link_fix.patch
Patch3: fixdesktopfile.patch
BuildRoot: %{_tmppath}/buildroot-%{name}-%{version}
%ifarch x86_64
BuildRequires: gcc-32bit glibc-devel-32bit
Requires: glibc-32bit
%endif
BuildRequires: bzr gcc-c++ gettext-tools patch python-xml
#Requires: python python-sqlite2 ImageMagick gnome-icon-theme gtk2 python-gtk python-xml unzip python-sqlalchemy
Requires: python ImageMagick gnome-icon-theme gtk2 python-gtk python-xml unzip python-sqlalchemy
Packager: Ciro Iriarte
#Distribution: openSuSE
Url: https://launchpad.net/wiithon
%description
Wiithon es un software desarrollado en python, c, c++ y bash.
Es utilizado para una fácil gestión de los juegos de Wii en particiones WBFS.
Wiithon tiene una versión de comandos y un interfaz gráfico.
%prep
#rm -rf $RPM_BUILD_ROOT
#mkdir $RPM_BUILD_ROOT
%setup -q -n %{name}-%{version}
%patch0
%patch1
%patch2
%patch3
%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %{__make}
%install
%{__make} DESTDIR="${RPM_BUILD_ROOT}" install
%{__make} DESTDIR="${RPM_BUILD_ROOT}" generate_changelog
%post
echo "=================================================================="
echo "If you want run witthon as normal user you must add it to 'disk' group."
echo "=================================================================="
%clean
[ -d ${RPM_BUILD_ROOT} -a "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf "${RPM_BUILD_ROOT}"
%files
%defattr(-,root,root)
%dir /usr/games/wiithon
/usr/games/wiithon_*
/usr/share/applications/wiithon_usuario.desktop
%dir /usr/share/doc/packages/wiithon/
/usr/share/doc/packages/wiithon/*
#%dir /usr/share/locale/
#/usr/share/locale/*
/usr/share/pixmaps/wiithon.*
%dir /usr/share/wiithon/
/usr/share/wiithon/*
%doc /usr/share/man/es/man1/wiithon.1.gz
%doc /usr/share/man/man1/wiithon.1.gz
/usr/share/locale/*/LC_MESSAGES/wiithon.mo
%dir /usr/share/locale/ca_ES
%dir /usr/share/locale/da_DK
%dir /usr/share/locale/ja_JP
%dir /usr/share/locale/ko_KR
%dir /usr/share/locale/nl_NL
%dir /usr/share/locale/sv_SE
%dir /usr/share/locale/ca_ES/LC_MESSAGES
%dir /usr/share/locale/da_DK/LC_MESSAGES
%dir /usr/share/locale/ja_JP/LC_MESSAGES
%dir /usr/share/locale/ko_KR/LC_MESSAGES
%dir /usr/share/locale/nl_NL/LC_MESSAGES
%dir /usr/share/locale/sv_SE/LC_MESSAGES
%attr(755,-,-) /usr/share/wiithon/recursos/imagenes/caratulas/3d
%attr(755,-,-) /usr/share/wiithon/recursos/imagenes/discos
%attr(755,-,-) /usr/share/wiithon/recursos/imagenes/discos/custom
%attr(755,-,-) /usr/share/wiithon/recursos/imagenes/caratulas
%attr(755,-,-) /usr/share/wiithon/recursos/imagenes/caratulas/total
%attr(655,-,-) /usr/share/doc/packages/wiithon/VERSION
%changelog
* Sat Oct 16 2010 eyecreate@gmail.com
- Changed file permissoins
* Sun Jan 2 2010 ciro.iriarte@gmail.com
- First OpenSUSE package for wiithon