[packages/libtheora] - updated to 1.2.0 (new sonames)

qboosh qboosh at pld-linux.org
Fri May 16 22:26:09 CEST 2025


commit 4dc2e1b7e64f6a65ee262f7198887ab6ce674cc7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 16 22:22:57 2025 +0200

    - updated to 1.2.0 (new sonames)

 libpng16.patch | 14 -----------
 libtheora.spec | 77 ++++++++++++++++++++++++++++++++++------------------------
 link.patch     | 11 ---------
 3 files changed, 45 insertions(+), 57 deletions(-)
---
diff --git a/libtheora.spec b/libtheora.spec
index 09cbfa9..de2dc63 100644
--- a/libtheora.spec
+++ b/libtheora.spec
@@ -1,31 +1,29 @@
 #
 # Conditional build:
-%if "%{pld_release}" == "ac"
-%bcond_with		apidocs		# do not build and package API docs
-%else
-%bcond_without	apidocs		# do not build and package API docs
-%endif
+%bcond_without	apidocs		# API documentation
 
 Summary:	Theora - video codec intended for use within Ogg multimedia streaming system
 Summary(pl.UTF-8):	Theora - kodek obrazu do używania w systemie strumieni multimedialnych Ogg
 Name:		libtheora
-Version:	1.1.1
-Release:	3
+Version:	1.2.0
+Release:	1
 License:	BSD-like
 Group:		Libraries
-Source0:	http://downloads.xiph.org/releases/theora/%{name}-%{version}.tar.bz2
-# Source0-md5:	292ab65cedd5021d6b7ddd117e07cd8e
-Patch0:		link.patch
-Patch1:		libpng16.patch
-URL:		http://www.theora.org/
+Source0:	https://downloads.xiph.org/releases/theora/%{name}-%{version}.tar.xz
+# Source0-md5:	ec64ed07bffb5f45dca0ae7faa68f814
+URL:		https://www.theora.org/
 BuildRequires:	SDL-devel
-BuildRequires:	autoconf >= 2.50
-BuildRequires:	automake
-BuildRequires:	libogg-devel >= 2:1.1
-BuildRequires:	libtool
+BuildRequires:	autoconf >= 2.71
+BuildRequires:	automake >= 1:1.11
+BuildRequires:	libogg-devel >= 2:1.3.4
+BuildRequires:	libpng-devel
+BuildRequires:	libtiff-devel
+BuildRequires:	libtool >= 2:2
 BuildRequires:	libvorbis-devel >= 1:1.0.1
 BuildRequires:	pkgconfig
-BuildRequires:	rpm >= 4.4.9-56
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
 %if %{with apidocs}
 BuildRequires:	doxygen
 BuildRequires:	tetex-format-pdflatex
@@ -33,14 +31,12 @@ BuildRequires:	tetex-latex-bibtex
 BuildRequires:	tetex-latex-ltablex
 BuildRequires:	transfig
 %endif
-Requires:	libogg >= 2:1.1
+Requires:	libogg >= 2:1.3.4
 Requires:	libvorbis >= 1:1.0.1
 Provides:	libtheora-mmx
 Obsoletes:	libtheora-mmx
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		no_install_post_check_so	1
-
 %description
 Theora is Xiph.Org's first publicly released video codec, intended for
 use within the Ogg's project's Ogg multimedia streaming system. Theora
@@ -60,7 +56,7 @@ Summary:	Header files for Theora library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki Theora
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	libogg-devel >= 2:1.1
+Requires:	libogg-devel >= 2:1.3.4
 Provides:	libtheora-mmx-devel
 Obsoletes:	libtheora-mmx-devel
 
@@ -84,17 +80,29 @@ Static Theora library.
 %description static -l pl.UTF-8
 Statyczna biblioteka Theora.
 
+%package apidocs
+Summary:	API documentation for Theora library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki Theora
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for Theora library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki Theora.
+
 %prep
 %setup -q
-%patch -P0 -p1
-%patch -P1 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
 %{__automake}
-%configure
+%configure \
+	--disable-silent-rules
 
 %{__make}
 %if %{with apidocs}
@@ -108,6 +116,11 @@ rm -rf $RPM_BUILD_ROOT
 	DESTDIR=$RPM_BUILD_ROOT \
 	docdir=%{_docdir}/libtheora-docs
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtheora*.la
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libtheora-docs
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -116,23 +129,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS CHANGES COPYING LICENSE README
+%doc AUTHORS CHANGES COPYING LICENSE README.md
 %attr(755,root,root) %{_libdir}/libtheora.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtheora.so.0
+%attr(755,root,root) %ghost %{_libdir}/libtheora.so.1
 %attr(755,root,root) %{_libdir}/libtheoradec.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtheoradec.so.1
+%attr(755,root,root) %ghost %{_libdir}/libtheoradec.so.2
 %attr(755,root,root) %{_libdir}/libtheoraenc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtheoraenc.so.1
+%attr(755,root,root) %ghost %{_libdir}/libtheoraenc.so.2
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/{color.html,draft-ietf-avt-rtp-theora-00.txt,vp3-format.txt} doc/libtheora/html doc/spec/Theora.pdf
 %attr(755,root,root) %{_libdir}/libtheora.so
 %attr(755,root,root) %{_libdir}/libtheoradec.so
 %attr(755,root,root) %{_libdir}/libtheoraenc.so
-%{_libdir}/libtheora.la
-%{_libdir}/libtheoradec.la
-%{_libdir}/libtheoraenc.la
 %{_includedir}/theora
 %{_pkgconfigdir}/theora.pc
 %{_pkgconfigdir}/theoradec.pc
@@ -143,3 +152,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libtheora.a
 %{_libdir}/libtheoradec.a
 %{_libdir}/libtheoraenc.a
+
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/{color.html,draft-ietf-avt-rtp-theora-00.txt,vp3-format.txt} doc/libtheora/html doc/spec/Theora.pdf
diff --git a/libpng16.patch b/libpng16.patch
deleted file mode 100644
index 36c05bf..0000000
--- a/libpng16.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- libtheora-1.1.1/examples/png2theora.c~	2009-08-22 18:14:04.000000000 +0000
-+++ libtheora-1.1.1/examples/png2theora.c	2014-12-30 17:19:20.795690627 +0000
-@@ -462,9 +462,9 @@
-   png_set_strip_alpha(png_ptr);
- 
-   row_data = (png_bytep)png_malloc(png_ptr,
--    3*height*width*png_sizeof(*row_data));
-+    3*height*width*sizeof(*row_data));
-   row_pointers = (png_bytep *)png_malloc(png_ptr,
--    height*png_sizeof(*row_pointers));
-+    height*sizeof(*row_pointers));
-   for(y = 0; y < height; y++) {
-     row_pointers[y] = row_data + y*(3*width);
-   }
diff --git a/link.patch b/link.patch
deleted file mode 100644
index cfc4122..0000000
--- a/link.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libtheora-1.1.1/examples/Makefile.am~	2009-08-31 20:18:36.000000000 +0000
-+++ libtheora-1.1.1/examples/Makefile.am	2014-12-30 17:16:19.505697021 +0000
-@@ -22,7 +22,7 @@
- 
- player_example_SOURCES = player_example.c
- player_example_CFLAGS = $(SDL_CFLAGS) $(OGG_CFLAGS) $(VORBIS_CFLAGS)
--player_example_LDADD = $(LDADDDEC) $(SDL_LIBS) $(VORBIS_LIBS) $(OSS_LIBS)
-+player_example_LDADD = $(LDADDDEC) $(SDL_LIBS) $(VORBIS_LIBS) $(OSS_LIBS) -lm
- 
- encoder_example_SOURCES = encoder_example.c
- EXTRA_encoder_example_SOURCES = getopt.c getopt1.c getopt.h
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtheora.git/commitdiff/2f9b32130b7ed919af313e27e05c379773031629



More information about the pld-cvs-commit mailing list