diff --git a/.cvsignore b/.cvsignore index f6dcb16..21d73df 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ comix-3.6.5.tar.gz +comix-4.0-svn199_trunk.tar.gz diff --git a/comix.spec b/comix.spec index bd28806..f7b8dfe 100644 --- a/comix.spec +++ b/comix.spec @@ -1,12 +1,28 @@ +# To create svn tarball use: +# svn co https://comix.svn.sourceforge.net/svnroot/comix/trunk +# mv trunk comix-%%mainver +# tar czf comix-%%mainver-%%alphatag.tar.gz comix-%%mainver + +%define mainver 4.0 +%define alphatag svn199_trunk +%define comix4 1 + +%define ifalpha 1 +%define fedorarel 1 + Name: comix -Version: 3.6.5 -Release: 1%{?dist} +Version: %{mainver} +Release: %{?ifalpha:0.}%{fedorarel}%{?ifalpha:.%alphatag}%{?dist} Summary: A user-friendly, customizable image viewer Group: Amusements/Graphics URL: http://comix.sourceforge.net/ License: GPLv2+ +%if 0%{?ifalpha} +Source0: %{name}-%{mainver}-%{alphatag}.tar.gz +%else Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -32,6 +48,10 @@ uses GTK+ through the PyGTK bindings. %prep %setup -q +%{__mkdir_p} TMPBIN +%{__ln_s} -f /bin/true update-mime-database +%{__ln_s} -f /bin/true gconftool-2 + %build %{__sed} -i -e 's|shutil.copy|shutil.copy2|' install.py @@ -42,12 +62,17 @@ uses GTK+ through the PyGTK bindings. %install %{__rm} -rf $RPM_BUILD_ROOT %{__mkdir_p} $RPM_BUILD_ROOT%{_prefix} +export PATH=$(pwd)/TMPBIN:${PATH} -export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 -%{__python} install.py --installdir $RPM_BUILD_ROOT%{_prefix} install +%{__python} install.py \ +%if %{comix4} + --dir \ +%else + --installdir \ +%endif + $RPM_BUILD_ROOT%{_prefix} \ + install -%{__sed} -i -e 's|comix.png|comix|' \ - $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop desktop-file-install \ --vendor fedora \ --delete-original \ @@ -126,12 +151,25 @@ exit 0 %{_mandir}/man1/* %{_datadir}/icons/hicolor/*/apps/%{name}* +%if %{comix4} +%{_datadir}/icons/hicolor/*/mimetypes/application-x-*.png +%endif + +%if ! %{comix4} %{_datadir}/pixmaps/%{name}.png %dir %{_datadir}/pixmaps/%{name} %{_datadir}/pixmaps/%{name}/*.png +%else +%dir %{_datadir}/%{name}/ +%{_datadir}/%{name}/images/ +%{_datadir}/%{name}/src/ +%endif %changelog +* Fri Oct 3 2008 Mamoru Tasaka +- 4.0 branch, rev 199 + * Thu Jul 10 2008 Mamoru Tasaka - 3.6.5-1 - 3.6.5 (2 patches applied upstream) diff --git a/sources b/sources index b3f502c..91b2a7c 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 4f6210ee04b5b01cb37ab58638278a03 comix-3.6.5.tar.gz +cb79e3b4161408c33ae4bab02966735f comix-4.0-svn199_trunk.tar.gz