diff --git a/orc.changes b/orc.changes index 41abde5..f51d906 100644 --- a/orc.changes +++ b/orc.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Oct 9 13:53:25 UTC 2014 - dimstar@opensuse.org + +- Fix version dependency for gtk-doc (min 1.12). +- Disable building of gtk-doc for SLE11, where this version of + gtk-doc is not available (by means of bcond_with/without). + The pre-built documentation, as shipped in the tarball will be + installed in this case. + +------------------------------------------------------------------- +Thu Oct 9 13:41:02 UTC 2014 - dimstar@opensuse.org + +- Add xz BuildRequires for openSUSE < 11.3 (and thus also SLE11). + ------------------------------------------------------------------- Tue Sep 23 20:58:44 UTC 2014 - zaitor@opensuse.org diff --git a/orc.spec b/orc.spec index 5779c34..c5aa9d7 100644 --- a/orc.spec +++ b/orc.spec @@ -17,6 +17,12 @@ # +%if 0%{?suse_version} < 1200 +%bcond_with gtkdoc +%else +%bcond_without gtkdoc +%endif + Name: orc Version: 0.4.22 Release: 0 @@ -26,8 +32,14 @@ Group: Productivity/Multimedia/Other Url: http://cgit.freedesktop.org/gstreamer/orc Source: http://gstreamer.freedesktop.org/src/orc/%{name}-%{version}.tar.xz Source99: baselibs.conf -BuildRequires: gtk-doc +%if %{with gtkdoc} +BuildRequires: gtk-doc >= 1.12 +%endif BuildRequires: pkg-config +%if 0%{?suse_version} <= 1130 +#openSUSE until 11.3 and also SLE11 do not bring in xz on their own. +BuildRequires: xz +%endif Provides: %{name}-devel = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -66,7 +78,11 @@ arithmetic operations. %build %configure \ --disable-static \ +%if %{with gtkdoc} --enable-gtk-doc +%else + --disable-gtk-doc +%endif make %{?_smp_mflags} %install @@ -99,6 +115,8 @@ make check %{?_smp_mflags} %files doc %defattr(-,root,root) +%dir /usr/share/gtk-doc +%dir /usr/share/gtk-doc/html %{_datadir}/gtk-doc/html/orc/ %files -n liborc-0_4-0