From 88c0b8cd65b9edf7f717aff058846a5e3c57c4fe Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 23 2020 15:53:16 +0000 Subject: Add spec-file for the distribution --- diff --git a/SPECS/mingw-libvorbis.spec b/SPECS/mingw-libvorbis.spec new file mode 100644 index 0000000..b2459b7 --- /dev/null +++ b/SPECS/mingw-libvorbis.spec @@ -0,0 +1,166 @@ +%?mingw_package_header + +Name: mingw-libvorbis +Version: 1.3.5 +Release: 4%{?dist} +Summary: MinGW Windows libvorbis library + +License: BSD +URL: http://www.xiph.org/ +Source0: http://downloads.xiph.org/releases/vorbis/libvorbis-%{version}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{ix86} x86_64 %{arm} + +BuildRequires: mingw32-filesystem >= 95 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-binutils +BuildRequires: mingw32-libogg + +BuildRequires: mingw64-filesystem >= 95 +BuildRequires: mingw64-gcc +BuildRequires: mingw64-binutils +BuildRequires: mingw64-libogg + + +%description +Ogg Vorbis is a fully open, non-proprietary, patent- and royalty-free, +general-purpose compressed audio format for audio and music at fixed +and variable bitrates from 16 to 128 kbps/channel. + +This package contains the MinGW Windows cross compiled libvorbis library. + + +# Win32 +%package -n mingw32-libvorbis +Summary: MinGW Windows libvorbis library + +%description -n mingw32-libvorbis +Ogg Vorbis is a fully open, non-proprietary, patent- and royalty-free, +general-purpose compressed audio format for audio and music at fixed +and variable bitrates from 16 to 128 kbps/channel. + +This package contains the MinGW Windows cross compiled libvorbis library. + +# Win64 +%package -n mingw64-libvorbis +Summary: MinGW Windows libvorbis library + +%description -n mingw64-libvorbis +Ogg Vorbis is a fully open, non-proprietary, patent- and royalty-free, +general-purpose compressed audio format for audio and music at fixed +and variable bitrates from 16 to 128 kbps/channel. + +This package contains the MinGW Windows cross compiled libvorbis library. + + +%?mingw_debug_package + + +%prep +%setup -q -n libvorbis-%{version} + + +%build +%mingw_configure --disable-static + +%mingw_make %{?_smp_mflags} V=1 + + +%install +%mingw_make install DESTDIR=$RPM_BUILD_ROOT + +rm -rf $RPM_BUILD_ROOT%{mingw32_libdir}/*.la +rm -rf $RPM_BUILD_ROOT%{mingw64_libdir}/*.la +rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/doc/ +rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/doc/ + + +# Win32 +%files -n mingw32-libvorbis +%license COPYING +%{mingw32_bindir}/libvorbis-0.dll +%{mingw32_bindir}/libvorbisenc-2.dll +%{mingw32_bindir}/libvorbisfile-3.dll +%{mingw32_includedir}/vorbis/ +%{mingw32_libdir}/libvorbis.dll.a +%{mingw32_libdir}/libvorbisenc.dll.a +%{mingw32_libdir}/libvorbisfile.dll.a +%{mingw32_libdir}/pkgconfig/vorbis.pc +%{mingw32_libdir}/pkgconfig/vorbisenc.pc +%{mingw32_libdir}/pkgconfig/vorbisfile.pc +%{mingw32_datadir}/aclocal/vorbis.m4 + +# Win64 +%files -n mingw64-libvorbis +%license COPYING +%{mingw64_bindir}/libvorbis-0.dll +%{mingw64_bindir}/libvorbisenc-2.dll +%{mingw64_bindir}/libvorbisfile-3.dll +%{mingw64_includedir}/vorbis/ +%{mingw64_libdir}/libvorbis.dll.a +%{mingw64_libdir}/libvorbisenc.dll.a +%{mingw64_libdir}/libvorbisfile.dll.a +%{mingw64_libdir}/pkgconfig/vorbis.pc +%{mingw64_libdir}/pkgconfig/vorbisenc.pc +%{mingw64_libdir}/pkgconfig/vorbisfile.pc +%{mingw64_datadir}/aclocal/vorbis.m4 + + +%changelog +* Tue Aug 14 2018 Victor Toso - 1.3.5-4 +- ExclusiveArch: i686, x86_64 +- Related: rhbz#1615874 + +* Thu Feb 08 2018 Fedora Release Engineering - 1.3.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.3.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Jun 20 2017 Kalev Lember - 1.3.5-1 +- Update to 1.3.5 +- Use license macro for COPYING + +* Fri Feb 10 2017 Fedora Release Engineering - 1.3.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.3.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.3.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu May 22 2014 Kalev Lember - 1.3.4-1 +- Update to 1.3.4 + +* Sat Aug 03 2013 Fedora Release Engineering - 1.3.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Oct 07 2012 Kalev Lember - 1.3.3-1 +- Update to 1.3.3 + +* Fri Jul 20 2012 Fedora Release Engineering - 1.3.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Mar 18 2012 Erik van Pienbroek - 1.3.2-5 +- Added win64 support (contributed by Marc-André Lureau) +- Use mingw macros without leading underscore + +* Tue Feb 28 2012 Kalev Lember - 1.3.2-4 +- Remove the .la files + +* Mon Feb 27 2012 Erik van Pienbroek - 1.3.2-3 +- Rebuild against the mingw-w64 toolchain + +* Fri Jan 13 2012 Fedora Release Engineering - 1.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Jul 17 2011 Kalev Lember - 1.3.2-1 +- Initial RPM release