Name: comix Version: 3.6.3 Release: 1%{?dist} Summary: A user-friendly, customizable image viewer Group: Amusements/Graphics License: GPL URL: http://comix.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: pygtk2 BuildRequires: python-imaging BuildRequires: desktop-file-utils BuildRequires: %{_bindir}/jpegtran Requires: pygtk2 Requires: python-imaging Requires: %{_bindir}/jpegtran Requires(pre): GConf2 Requires(preun): GConf2 Requires(post): GConf2 %description Comix is a user-friendly, customizable image viewer. It is specifically designed to handle comic books, but also serves as a generic viewer. It reads images in ZIP, RAR or tar archives (also gzip or bzip2 compressed) as well as plain image files. It is written in Python and uses GTK+ through the PyGTK bindings. %prep %setup -q %build %{__sed} -i -e 's|shutil.copy|shutil.copy2|' install.py %{__sed} -e 's|\r||g' COPYING > COPYING.tmp && \ ( touch -r COPYING COPYING.tmp ; %{__mv} -f COPYING.tmp COPYING ) %{__rm} -f COPYING.tmp %install %{__rm} -rf $RPM_BUILD_ROOT %{__mkdir_p} $RPM_BUILD_ROOT%{_prefix} export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %{__python} install.py --installdir $RPM_BUILD_ROOT%{_prefix} install desktop-file-install \ --vendor fedora \ --delete-original \ --remove-category Application \ --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/mime/ %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mime/packages %{__install} -c -p -m644 mime/comix.xml \ $RPM_BUILD_ROOT%{_datadir}/mime/packages/%{name}.xml %{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas %{__install} -c -p -m644 mime/comicbook.schemas \ $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/%{name}.schemas %find_lang %{name} %clean %{__rm} -rf $RPM_BUILD_ROOT %pre [ "$1" -gt 1 ] || exit 0 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || : # If the schema file has ever been renamed:: # gconftool-2 --makefile-uninstall-rule \ # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || : killall -HUP gconfd-2 || : %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : killall -HUP gconfd-2 || : touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : update-desktop-database &> /dev/null ||: update-mime-database %{_datadir}/mime &> /dev/null || : %preun [ "$1" -eq 0 ] || exit 0 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : killall -HUP gconfd-2 || : %postun touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : update-desktop-database &> /dev/null ||: update-mime-database %{_datadir}/mime &> /dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING ChangeLog README # Hey!! No package (required by this package) owns # /etc/gconf /etc/gconf/schemas? %dir %{_sysconfdir}/gconf %dir %{_sysconfdir}/gconf/schemas %{_sysconfdir}/gconf/schemas/%{name}.schemas %{_bindir}/* %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_mandir}/man1/* %{_datadir}/icons/hicolor/*/apps/%{name}* %{_datadir}/pixmaps/%{name}.png %dir %{_datadir}/pixmaps/%{name} %{_datadir}/pixmaps/%{name}/*.png %changelog * Sat Mar 17 2007 Mamoru Tasaka - 3.6.3-1 - 3.6.3 * Wed Jan 31 2007 Mamoru Tasaka - 3.6.2-2 - Surely remove ja.po, upstream included it. * Wed Jan 31 2007 Mamoru Tasaka - 3.6.2-1 - 3.6.2 * Wed Jan 31 2007 Mamoru Tasaka - 3.6.1-2 - Add Japanese translation * Thu Oct 19 2006 Mamoru Tasaka - 3.6.1-1 - 3.6.1 * Fri Oct 06 2006 Mamoru Tasaka - 3.6-2 - Specify URL. * Fri Oct 06 2006 Mamoru Tasaka - 3.6-1 - Initial packaging, importing to Fedora extras.