Accepting request 784191 from multimedia:libs

- Fix build wihtout python2 again, if any py interpreter is found
  it tries to build with it (here it is pulled by doxygen)

OBS-URL: https://build.opensuse.org/request/show/784191
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkate?expand=0&rev=22
factory
Dominique Leuenberger 3 years ago committed by Git OBS Bridge
commit 45c12700da

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 12 08:29:56 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build wihtout python2 again, if any py interpreter is found
it tries to build with it (here it is pulled by doxygen)
-------------------------------------------------------------------
Wed May 29 06:22:45 UTC 2019 - Martin Liška <mliska@suse.cz>

@ -1,7 +1,7 @@
#
# spec file for package libkate
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2010 SUSE Dominique Leuenberger, Amsterdam, Netherlands
#
# All modifications and additions to the file contributed by third parties
@ -17,17 +17,12 @@
#
# python2_sitelib isn't defined in Leap:42.3
%if 0%{?suse_version} <= 1315
%define python2_sitelib %{python_sitelib}
%endif
%bcond_without python2
Name: libkate
Version: 0.4.1
Release: 0
Summary: A karaoke and text codec for embedding in Ogg
License: BSD-3-Clause
Group: Productivity/Multimedia/Other
URL: http://libkate.googlecode.com
Source: http://libkate.googlecode.com/files/%{name}-%{version}.tar.gz
Source99: baselibs.conf
@ -55,7 +50,6 @@ color, etc, so scrolling or fading text can be defined.
%package -n %{name}1
Summary: A karaoke and text codec for embedding in Ogg
Group: System/Libraries
%description -n %{name}1
Kate is a codec for karaoke and text encapsulation for Ogg. Most of the
@ -71,7 +65,6 @@ color, etc, so scrolling or fading text can be defined.
%package -n liboggkate1
Summary: A karaoke and text codec for embedding in Ogg
Group: System/Libraries
Conflicts: libkate1 < 0.4.1
%description -n liboggkate1
@ -88,7 +81,6 @@ color, etc, so scrolling or fading text can be defined.
%package devel
Summary: A karaoke and text codec for embedding in Ogg - Development Files
Group: Development/Libraries/C and C++
Requires: %{name}1 = %{version}
Requires: glibc-devel
Requires: liboggkate1 = %{version}
@ -110,7 +102,6 @@ This package contains files for developers.
%package tools
Summary: A karaoke and text codec for embedding in Ogg
Group: Productivity/Multimedia/Other
%description tools
Kate is a codec for karaoke and text encapsulation for Ogg. Most of the
@ -126,7 +117,6 @@ color, etc, so scrolling or fading text can be defined.
%package -n python-katedj
Summary: Editor and remixer for Kate streams in Ogg
Group: Productivity/Multimedia/Other
Requires: %{name}-tools = %{version}
Requires: oggz-tools
Requires: python-wxWidgets
@ -144,9 +134,12 @@ them, and rebuilding the Ogg stream after the Kate tracks are modified.
%build
echo 'HTML_TIMESTAMP=NO' >> doc/kate.doxygen.in
%if !%{with python2}
sed -i -e 's:PYTHON=python:PYTHON=python3:g' misc/autotools/py-compile
%endif
%configure \
--disable-static
make %{?_smp_mflags}
%make_build
%install
%make_install
@ -156,11 +149,14 @@ rm -rf %{buildroot}%{_datadir}/doc/%{name}/{AUTHORS,COPYING,ChangeLog,README,THA
%if %{with python2}
%fdupes %{buildroot}%{python_sitelib}/kdj
%else
# the py3 when found build system tries to compile and install it, and fails miserably
rm -rf %{buildroot}%{_bindir}/KateDJ
rm -rf %{buildroot}%{python3_sitelib}
rm -rf %{buildroot}%{_mandir}/man1/KateDJ.1*
%endif
%check
make %{?_smp_mflags} check
%make_build check
%post -n %{name}1 -p /sbin/ldconfig
%postun -n %{name}1 -p /sbin/ldconfig
@ -198,7 +194,7 @@ make %{?_smp_mflags} check
%files -n python-katedj
%{_bindir}/KateDJ
%{_mandir}/man1/KateDJ.1%{?ext_man}
%{python2_sitelib}/kdj/
%{python_sitelib}/kdj/
%endif
%changelog

Loading…
Cancel
Save