diff --git a/nted-1.5.0-disable-translated-docs.patch b/nted-1.5.0-disable-translated-docs.patch new file mode 100644 index 0000000..b4dfa45 --- /dev/null +++ b/nted-1.5.0-disable-translated-docs.patch @@ -0,0 +1,11 @@ +--- nted-1.5.0/doc/Makefile.in.orig 2009-02-28 11:42:49.000000000 +0100 ++++ nted-1.5.0/doc/Makefile.in 2009-02-28 11:43:11.000000000 +0100 +@@ -208,7 +208,7 @@ + target_alias = @target_alias@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-SUBDIRS = templates docimages en de it ++SUBDIRS = templates docimages en + all: all-recursive + + .SUFFIXES: diff --git a/nted.spec b/nted.spec index cdee405..abe8c69 100644 --- a/nted.spec +++ b/nted.spec @@ -4,9 +4,13 @@ # ntedfont is a special purpose symbol font, and thus needs # no fontconfig magic. +# Whether to work around broken po2xml/qt +#global broken_po2xml 1 +%global broken_po2xml 0 + Name: nted Version: 1.5.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Musical score editor Summary(de): Partitureditor @@ -18,6 +22,9 @@ URL: http://vsr.informatik.tu-chemnitz.de/staff/jan/nted/nted.xhtml Source0: http://vsr.informatik.tu-chemnitz.de/staff/jan/nted/nted-%{version}.tar.gz Source1: nted.desktop #Source2: %{name}-%{family}-fontconfig.conf +%if %{broken_po2xml} +Patch10: nted-1.5.0-disable-translated-docs.patch +%endif BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: gtk2-devel alsa-lib-devel @@ -65,6 +72,9 @@ NtEd's own special note symbol font. %prep %setup -q +%if %{broken_po2xml} +%patch10 -p1 -b .disable-translated-docs +%endif # Upstream mistakenly ships a header file with its x bit set. test -x dynarray.h # make sure we notice when upstream fixes that chmod -x dynarray.h @@ -120,6 +130,9 @@ rm -rf %{buildroot} %changelog +* Sat Feb 28 2009 Hans Ulrich Niedermann - 1.5.0-4 +- Add (disabled) workaround for broken po2xml (would remove translated docs) + * Thu Feb 26 2009 Hans Ulrich Niedermann - 1.5.0-3 - noarch subpackage for doc - use versioned requirements for subpackages