File project.diff of Package mingw64-libtheora

--- mingw64-libtheora.spec.orig
+++ mingw64-libtheora.spec
@@ -16,26 +16,21 @@
 #
 
 
-Name:           mingw64-libtheora
-Version:        1.1.1
+%define realname libtheora
+Name:           mingw64-%{realname}
+Version:        1.2.0
 Release:        0
 Summary:        The ogg/theora video codec library
 License:        BSD-3-Clause
 Group:          Development/Libraries/C and C++
-Url:            http://www.theora.com
-Source0:        http://downloads.xiph.org/releases/theora/libtheora-%{version}.tar.bz2
-#!BuildIgnore: post-build-checks
+URL:            https://www.theora.org/
+Source0:        https://gitlab.xiph.org/xiph/theora/-/archive/v%{version}/theora-v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
 BuildRequires:  autoconf
 BuildRequires:  automake
-BuildRequires:  dos2unix
 BuildRequires:  libtool
-BuildRequires:  mingw64-cross-binutils
-BuildRequires:  mingw64-cross-gcc
-BuildRequires:  mingw64-cross-pkg-config
-BuildRequires:  mingw64-filesystem >= 23
+BuildRequires:  mingw64-cross-cmake
+BuildRequires:  mingw64-cross-gcc-c++
 BuildRequires:  mingw64-libogg-devel
-BuildRequires:  mingw64-libpng-devel
-BuildRequires:  mingw64-libvorbis-devel
 %_mingw64_package_header_debug
 BuildArch:      noarch
 
@@ -44,31 +39,29 @@ Theora is Xiph.Org's first publicly rele
 for use within the Ogg's project's Ogg multimedia streaming system.
 Theora is derived directly from On2's VP3 codec.
 
-%package -n mingw64-libtheora0
+%package -n mingw64-libtheora1
 Summary:        The ogg/theora video codec library
 Group:          System/Libraries
-Obsoletes:      %{name}
-Provides:       %{name}
 
-%description -n mingw64-libtheora0
+%description -n mingw64-libtheora1
 Theora is Xiph.Org's first publicly released video codec, intended
 for use within the Ogg's project's Ogg multimedia streaming system.
 Theora is derived directly from On2's VP3 codec.
 
-%package -n mingw64-libtheoradec1
+%package -n mingw64-libtheoradec2
 Summary:        The ogg/theora video codec library
 Group:          System/Libraries
 
-%description -n mingw64-libtheoradec1
+%description -n mingw64-libtheoradec2
 Theora is Xiph.Org's first publicly released video codec, intended
 for use within the Ogg's project's Ogg multimedia streaming system.
 Theora is derived directly from On2's VP3 codec.
 
-%package -n mingw64-libtheoraenc1
+%package -n mingw64-libtheoraenc2
 Summary:        The ogg/theora video codec library
 Group:          System/Libraries
 
-%description -n mingw64-libtheoraenc1
+%description -n mingw64-libtheoraenc2
 Theora is Xiph.Org's first publicly released video codec, intended
 for use within the Ogg's project's Ogg multimedia streaming system.
 Theora is derived directly from On2's VP3 codec.
@@ -85,36 +78,36 @@ Theora is derived directly from On2's VP
 %_mingw64_debug_package
 
 %prep
-%setup -q -n libtheora-%{version}
-dos2unix win32/xmingw*/*.def
+%autosetup -p1 -n theora-v%{version}
+sed -i "s,EXPORTS,," "win32/xmingw32/libtheoradec-all.def"
+sed -i "s,EXPORTS,," "win32/xmingw32/libtheoraenc-all.def"
 
 %build
-./autogen.sh --help
-echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
-PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
+autoreconf -fiv
 %{_mingw64_configure} \
-	--enable-shared --disable-static \
-	--disable-oggtest --disable-vorbistest \
-	--disable-sdltest --disable-examples
-%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
+	--disable-static \
+	--disable-oggtest \
+	--disable-vorbistest \
+	--disable-examples
+%{_mingw64_make} V=1 %{?_smp_mflags}
 
 %install
-%{_mingw64_make} DESTDIR=%{buildroot} install
+%{_mingw64_make_install}
+# remove empty file
+find %{buildroot} -type f -name "doxygen-build.stamp" -exec rm {} \;
 
-%files -n mingw64-libtheora0
-%defattr(-,root,root)
-%{_mingw64_bindir}/libtheora-0.dll
-
-%files -n mingw64-libtheoradec1
-%defattr(-,root,root)
-%{_mingw64_bindir}/libtheoradec-1.dll
-
-%files -n mingw64-libtheoraenc1
-%defattr(-,root,root)
-%{_mingw64_bindir}/libtheoraenc-1.dll
+%files -n mingw64-libtheora1
+%{_mingw64_bindir}/libtheora-1.dll
+
+%files -n mingw64-libtheoradec2
+%{_mingw64_bindir}/libtheoradec-2.dll
+
+%files -n mingw64-libtheoraenc2
+%{_mingw64_bindir}/libtheoraenc-2.dll
 
 %files devel
-%defattr(-,root,root)
+%license COPYING LICENSE
+%doc AUTHORS CHANGES README.md
 %{_mingw64_includedir}/theora
 %{_mingw64_libdir}/libtheora.dll.a
 %{_mingw64_libdir}/libtheoradec.dll.a
@@ -122,6 +115,6 @@ PATH="%{_mingw64_bindir}:$PATH"; export
 %{_mingw64_libdir}/pkgconfig/theoradec.pc
 %{_mingw64_libdir}/pkgconfig/theoraenc.pc
 %{_mingw64_libdir}/pkgconfig/theora.pc
-%{_mingw64_datadir}/doc/libtheora-%{version}
+%{_mingw64_docdir}/%{realname}
 
 %changelog
openSUSE Build Service is sponsored by