# # spec file for package libkate # # Copyright (c) 2020 SUSE LLC # Copyright (c) 2010 SUSE Dominique Leuenberger, Amsterdam, Netherlands # Copyright (c) 2025 Andreas Stieger # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define sover 1 Name: libkate Version: 0.4.3 Release: 1.1 Summary: A karaoke and text codec for embedding in Ogg License: BSD-3-Clause URL: https://gitlab.xiph.org/xiph/kate Source: https://downloads.xiph.org/releases/kate/%{name}-%{version}.tar.gz Source99: baselibs.conf BuildRequires: doxygen BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(ogg) %description Kate is a codec for karaoke and text encapsulation for Ogg. Most of the time, this would be multiplexed with audio/video to carry subtitles, song lyrics (with or without karaoke data), etc, but doesn't have to be. A possible use of a lone Kate stream would be an e-book. Moreover, the motion feature gives Kate a powerful means to describe arbitrary curves, so hand drawing of shapes can be achieved. This was originally meant for karaoke use, but can be used for any purpose. Motions can be attached to various semantics, like position, color, etc, so scrolling or fading text can be defined. %package -n %{name}%{sover} Summary: A karaoke and text codec for embedding in Ogg %description -n %{name}%{sover} Kate is a codec for karaoke and text encapsulation for Ogg. Most of the time, this would be multiplexed with audio/video to carry subtitles, song lyrics (with or without karaoke data), etc, but doesn't have to be. A possible use of a lone Kate stream would be an e-book. Moreover, the motion feature gives Kate a powerful means to describe arbitrary curves, so hand drawing of shapes can be achieved. This was originally meant for karaoke use, but can be used for any purpose. Motions can be attached to various semantics, like position, color, etc, so scrolling or fading text can be defined. %package -n liboggkate%{sover} Summary: A karaoke and text codec for embedding in Ogg Conflicts: libkate1 < 0.4.1 %description -n liboggkate%{sover} Kate is a codec for karaoke and text encapsulation for Ogg. Most of the time, this would be multiplexed with audio/video to carry subtitles, song lyrics (with or without karaoke data), etc, but doesn't have to be. A possible use of a lone Kate stream would be an e-book. Moreover, the motion feature gives Kate a powerful means to describe arbitrary curves, so hand drawing of shapes can be achieved. This was originally meant for karaoke use, but can be used for any purpose. Motions can be attached to various semantics, like position, color, etc, so scrolling or fading text can be defined. %package devel Summary: A karaoke and text codec for embedding in Ogg - Development Files Requires: %{name}%{sover} = %{version} Requires: liboggkate%{sover} = %{version} %description devel Kate is a codec for karaoke and text encapsulation for Ogg. Most of the time, this would be multiplexed with audio/video to carry subtitles, song lyrics (with or without karaoke data), etc, but doesn't have to be. A possible use of a lone Kate stream would be an e-book. Moreover, the motion feature gives Kate a powerful means to describe arbitrary curves, so hand drawing of shapes can be achieved. This was originally meant for karaoke use, but can be used for any purpose. Motions can be attached to various semantics, like position, color, etc, so scrolling or fading text can be defined. This package contains files for developers. %package tools Summary: A karaoke and text codec for embedding in Ogg %description tools Kate is a codec for karaoke and text encapsulation for Ogg. Most of the time, this would be multiplexed with audio/video to carry subtitles, song lyrics (with or without karaoke data), etc, but doesn't have to be. A possible use of a lone Kate stream would be an e-book. Moreover, the motion feature gives Kate a powerful means to describe arbitrary curves, so hand drawing of shapes can be achieved. This was originally meant for karaoke use, but can be used for any purpose. Motions can be attached to various semantics, like position, color, etc, so scrolling or fading text can be defined. %package -n python-katedj Summary: Editor and remixer for Kate streams in Ogg Requires: %{name}-tools = %{version} Requires: oggz-tools Requires: python-wxWidgets Provides: katedj = 0.4.1 Obsoletes: katedj < 0.4.1 BuildArch: noarch %description -n python-katedj KateDJ allows extracting Kate tracks embedded in an Ogg stream, editing them, and rebuilding the Ogg stream after the Kate tracks are modified. %prep %autosetup -p1 %build echo 'HTML_TIMESTAMP=NO' >> doc/kate.doxygen.in %configure \ --disable-static %make_build %install %make_install find %{buildroot} -type f -name "*.la" -delete -print # Remove files that we install with %%doc rm -rf %{buildroot}%{_datadir}/doc/%{name}/{AUTHORS,COPYING,ChangeLog,README,THANKS,html} %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_build check %ldconfig_scriptlets -n %{name}%{sover} %ldconfig_scriptlets -n liboggkate%{sover} %files -n %{name}%{sover} %doc AUTHORS ChangeLog README THANKS %license COPYING %{_libdir}/%{name}.so.%{sover} %{_libdir}/%{name}.so.%{sover}.* %files -n liboggkate%{sover} %license COPYING %doc AUTHORS ChangeLog README THANKS %{_libdir}/liboggkate.so.%{sover} %{_libdir}/liboggkate.so.%{sover}.* %files devel %license COPYING %doc doc/html/ %{_includedir}/kate/ %{_libdir}/%{name}.so %{_libdir}/liboggkate.so %{_libdir}/pkgconfig/kate.pc %{_libdir}/pkgconfig/oggkate.pc %files tools %license COPYING %{_bindir}/katedec %{_bindir}/kateenc %{_bindir}/katalyzer %{_mandir}/man1/katalyzer.1%{?ext_man} %{_mandir}/man1/katedec.1%{?ext_man} %{_mandir}/man1/kateenc.1%{?ext_man} %changelog * Sun Mar 9 2025 Andreas Stieger - update to 0.4.3: * full Python 3 compatibility - includes changes from 0.4.2: * Adjust decoder to allow zero sized metadata content * Adjust text parsing to better recognize invalid UNICODE * Eliminate timing precision issues in writing to kate format, and ensure seconds are written with a leading 0 if less than 10 * Fixes to build systems, compiler warnings * Correct option handling in KateDJ. * Adust kate_high_decode_init() to avoid use after free - drop disable-namespace-test.patch * Thu Feb 29 2024 pgajdos@suse.com - Use %%autosetup macro. Allows to eliminate the usage of deprecated %%patchN * Thu Mar 12 2020 Tomáš Chvátal - 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 2019 Martin Liška - Remove a strange test that fails with LTO (boo#1136670): * disable-namespace-test.patch * Wed Feb 7 2018 davejplater@gmail.com - Allow Leap:42.3 to build by defining %%python2_sitearch to python_sitearch. - Use %%license on license file. * Wed Feb 7 2018 tchvatal@suse.com - Mention baselibs.conf * Wed Feb 7 2018 tchvatal@suse.com - Make python2 dependency conditional bsc#1076407 - Remove few path based requires/etc - Conflict properly with older libkate in order to allow migration and not clash with liboggkate1 library * Wed May 28 2014 crrodriguez@opensuse.org - Tell doxygen not to include timestamps to help build-compare * Sun Mar 4 2012 davejplater@gmail.com - Renamed kate-tools to libkate-tools. * Mon Feb 13 2012 coolo@suse.com - patch license to follow spdx.org standard * Sun Sep 25 2011 coolo@suse.com - fix rename of sub packages * Fri Sep 23 2011 davejplater@gmail.com - Update to 0.4.1 and added download service. - Split liboggkate into it's own package and updated baselibs.conf. - Renamed katedj python-katedj in line with python naming policy. - Upstream changes since 0.3.8 : * update bitstream and shared library versioning missed from 0.4.0 * timed and object metadata support * fix various precision issues with large timestamps * fix KateDJ editor with newer versions of wxPython * katedec now tries to avoid escaping non ASCII glyphs * misc error handling improvements/fixes * misc build and documentation fixes * Fri Sep 16 2011 andrea.turrini@gmail.com - fix typos * Fri Apr 29 2011 jw@novell.com - Really removed "Other uncritical OpenSource License" from all the license fields and retained BSD3c. * Wed Apr 27 2011 davejplater@gmail.com - Removed "Other uncritical OpenSource License" from the license field and retained BSD3c. * Thu Apr 14 2011 toddrme2178@gmail.com - added 32bit compatibility libraries - properly escaped commented macro (fix for RPMLINT warning) * Wed Dec 29 2010 sbrabec@suse.cz - Updated python-wxWidgets name. * Thu Dec 9 2010 cristian.rodriguez@opensuse.org - run make check - fix -devel package dependencies * Mon Sep 27 2010 dominique-vlc.suse@leuenberger.net - katedj can only be noarch on openSUSE >= 1130. RPM in older versions does not support mixed arch packages. * Sun Sep 26 2010 dimstar@opensuse.org - Fix build on openSUSE 11.1 by defining the python_site* macros. * Fri Sep 24 2010 reddwarf@opensuse.org - Make katedj noarch. - Add Requires for various oggz tools to katedj. - Use fdupes. * Tue Sep 21 2010 vuntz@opensuse.org - Add python-base BuildRequires to build KateDJ, and create a katedj subpackage. - Rename kate-utils to libkate-tools. - Install the API documentation at a more standard place. * Tue Sep 21 2010 dimstar@opensuse.org - Clean up spec file for Factory inclusion. * Wed Sep 8 2010 dimstar@opensuse.org - Update to version 0.3.8: + various build fixes + KateDJ can now decode to LRC and SRT formats + add a missing check for memory allocation failure + fix a bug in SRT output when decoding more than one stream at a time + flush output so live encoding/decoding is possible without delay + katalyzer improvements in page/hole tracking + tools now recognize long options --help and --version + kateenc now adds an ENCODER comment by default - Drop kate-png14.patch, upstream included. * Tue Apr 20 2010 dimstar@opensuse.org - Update to 0.3.7: + new encoding functions to specify timing in granule rate units + fix SRT timing precision problems + new -M option to kateenc to allow HTML-like markup in SRT files + allow the last event in an SRT file to not be followed by an empty line - Added kate-png14.patch to fix build with libpng 1.4. * Mon Aug 31 2009 dimstar@opensuse.org - Update to 0.3.4 + fix canvas size encoding/decoding on big endian hosts * Sat May 30 2009 dimstar@opensuse.org - Update to 0.3.3 + recognize old oggz tools names in configure + remove unnecessary shebangs from python source - Update to 0.3.2 + increased robustness against corrupt/malicious streams + misc build and compatibility tweaks + fix py-compile invokation and older oggz tools names