diff --git a/dia-0.96-pre3-docs.patch b/dia-0.96-pre3-docs.patch new file mode 100644 index 0000000..354dce8 --- /dev/null +++ b/dia-0.96-pre3-docs.patch @@ -0,0 +1,11 @@ +--- dia-0.96-pre3/doc/en/usage-layers.xml~ 2007-01-21 17:12:45.000000000 +0100 ++++ dia-0.96-pre3/doc/en/usage-layers.xml 2007-02-05 10:23:02.000000000 +0100 +@@ -26,7 +26,7 @@ + + + +- Each new diagram comes with the default layer labelled “Background”. Of course you can change its name and settings to customize it to your needs as you can do with any other layer. ++ Each new diagram comes with the default layer labelled “Background”. Of course you can change its name and settings to customize it to your needs as you can do with any other layer. + + + You can use layers to create overlay slide show by drawing each incremental slide in a diff --git a/dia-help.patch b/dia-help.patch new file mode 100644 index 0000000..ce0af3f --- /dev/null +++ b/dia-help.patch @@ -0,0 +1,40 @@ +Index: dia-0.96.1/doc/Makefile.am +=================================================================== +--- dia-0.96.1.orig/doc/Makefile.am ++++ dia-0.96.1/doc/Makefile.am +@@ -7,11 +7,11 @@ EXTRA_DIST = \ + shape.dtd \ + sheet.dtd + +-if HAVE_GNOME ++#if HAVE_GNOME + helpdir = $(datadir)/gnome/help/dia +-else +-helpdir = $(pkgdatadir)/help +-endif ++#else ++#helpdir = $(pkgdatadir)/help ++#endif + + # a simple rule to symlink en to C + install-data-local: +Index: dia-0.96.1/xmldocs.make +=================================================================== +--- dia-0.96.1.orig/xmldocs.make ++++ dia-0.96.1/xmldocs.make +@@ -36,11 +36,11 @@ + # ********** Begin of section some packagers may need to modify ********** + # This variable (docdir) specifies where the documents should be installed. + # This default value should work for most packages. +-if HAVE_GNOME ++#if HAVE_GNOME + docdir = $(datadir)/gnome/help/$(docname)/$(lang) +-else +-docdir = $(datadir)/help/$(docname)/$(lang) +-endif ++#else ++#docdir = $(datadir)/help/$(docname)/$(lang) ++#endif + + # ********** You should not have to edit below this line ********** + xml_files = $(entities) $(docname).xml diff --git a/dia.changes b/dia.changes index 616b23e..aaa9dd7 100644 --- a/dia.changes +++ b/dia.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 31 16:30:00 MDT 2007 - btimothy@suse.de + +- Force xmldocs.make and doc/Makefile.am to use GNOME + configuration for help files (BNC #157798). +- Fix en language help file XML parsing (BGO #404535). + ------------------------------------------------------------------- Thu Aug 16 22:42:30 CEST 2007 - jpr@suse.de diff --git a/dia.spec b/dia.spec index cf161b3..022366b 100644 --- a/dia.spec +++ b/dia.spec @@ -20,10 +20,10 @@ Requires: ghostscript-fonts-std python-gtk python-numeric # Warning: Missing "Requires: glibc-devel" in dependency chain (/usr/lib/dia/libdia.la from dia requires /usr/lib/libm.so). # Warning: Missing "Requires: zlib-devel" in dependency chain (/usr/lib/dia/libdia.la from dia requires /usr/lib/libz.so). # Requires: glibc-devel libpng-devel zlib-devel -Autoreqprov: on +AutoReqProv: on Summary: A Diagram Creation Program Version: 0.96.1 -Release: 1 +Release: 41 Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/dia/%{name}-%{version}.tar.bz2 Source1: font-test-japanese.dia Source2: font-test-czech.dia @@ -34,7 +34,11 @@ Patch5: dia_bugfixes.diff Patch8: dia-group-props-size.patch Patch13: dia-64bit-clean.patch Patch14: dia-python-acinclude.patch -URL: http://live.gnome.org/Dia +# PATCH-FIX-OPENSUSE dia-help.patch bnc157798 +Patch15: dia-help.patch +# PATCH-FIX-UPSTREAM dia-0.96-pre3-docs.patch bgo404535 +Patch16: dia-0.96-pre3-docs.patch +Url: http://live.gnome.org/Dia BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %suse_version > 1020 Requires: %{name}-lang = %{version} @@ -69,6 +73,8 @@ Authors: %patch8 %patch13 %patch14 +%patch15 -p1 +%patch16 -p1 # Work around gettext bug #186174 LANG=en_US.UTF-8 msgconv po/ko.po -o po/ko.po.new mv po/ko.po.new po/ko.po @@ -82,17 +88,15 @@ autoreconf -f -i --with-python\ --with-cairo\ --with-gnomeprint -make docdir=%{_docdir}/%{name} %{?jobs:-j%jobs} +make %{?jobs:-j%jobs} %install -%makeinstall docdir=%{_docdir}/%{name} +%makeinstall %suse_update_desktop_file -r -N Dia -C "" -G "Diagram Editor" dia Office FlowChart GNOME %find_lang %{name} -cp -a AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO samples/*.dia font-test*dia $RPM_BUILD_ROOT%{_docdir}/%{name}/ # No need for mime-info-to-mime, application/x-dia-diagram is defined in freedesktop.org.xml rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info %if %suse_version > 1020 - %fdupes -s $RPM_BUILD_ROOT %endif @@ -101,17 +105,22 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%doc %{_docdir}/%{name} %{_bindir}/* %{_libdir}/dia %{_datadir}/applications/*.desktop %{_datadir}/dia %{_datadir}/pixmaps/* %doc %{_mandir}/man1/*.* +%doc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO samples/*.dia font-test*dia %files lang -f %{name}.lang - +%defattr(-,root,root) +%{_datadir}/gnome/help/dia/* %changelog +* Wed Oct 31 2007 - btimothy@suse.de +- Force xmldocs.make and doc/Makefile.am to use GNOME + configuration for help files (BNC #157798). +- Fix en language help file XML parsing (BGO #404535). * Thu Aug 16 2007 - jpr@suse.de - Update to 0.96.1 * Empty initial lines in shapes crashes Dia (BGO #421250).