Blame SPECS/libmpeg2.spec

111814
Name:           libmpeg2
111814
Version:        0.5.1
111814
Release:        24%{?dist}
111814
Summary:        MPEG-2 decoder libraries
111814
111814
License:        GPLv2+
111814
URL:            http://libmpeg2.sourceforge.net
111814
Source0:        %{url}/files/libmpeg2-%{version}.tar.gz
111814
# https://github.com/videolan/vlc/blob/master/contrib/src/libmpeg2/libmpeg2-inline.patch
111814
Patch0:         libmpeg2-inline.patch
111814
111814
BuildRequires:  gcc
111814
BuildRequires:  SDL-devel
111814
BuildRequires:  libXt-devel
111814
BuildRequires:  libXv-devel
111814
# bootstrap deps
111814
BuildRequires:  automake
111814
BuildRequires:  libtool
111814
BuildRequires: make
111814
111814
111814
%description
111814
libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video
111814
streams. It is released under the terms of the GPL license.
111814
111814
%package -n     mpeg2dec
111814
Summary:        MPEG-2 decoder program
111814
Requires:       %{name}%{?_isa} = %{version}-%{release}
111814
111814
%description -n mpeg2dec
111814
The %{name}-devel package contains libraries and header files for
111814
developing applications that use %{name}.
111814
111814
%package        devel
111814
Summary:        Development files for %{name}
111814
Requires:       %{name}%{?_isa} = %{version}-%{release}
111814
111814
111814
%description    devel
111814
The %{name}-devel package contains libraries and header files for
111814
developing applications that use %{name}.
111814
111814
111814
%prep
111814
%setup -q
111814
%patch0 -p1
111814
autoreconf -fiv
111814
111814
iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp
111814
touch -r AUTHORS AUTHORS.tmp 
111814
cp -p -f AUTHORS.tmp AUTHORS
111814
rm AUTHORS.tmp
111814
111814
#Disable ppc altivec case
111814
sed -i -e 's/ppc-/noppc64-/' configure.ac configure
111814
sed -i -e 's/powerpc-/nopowerpc64-/' configure.ac configure
111814
111814
%build
111814
%configure --disable-static \
111814
%ifarch %{ix86} ppc
111814
  --disable-accel-detect \
111814
%endif
111814
111814
# mpeg2dec have rpath
111814
# remove rpath from libtool
111814
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
111814
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
111814
111814
%{make_build} \
111814
%ifarch %{ix86}
111814
  OPT_CFLAGS="-fPIC -DPIC" \
111814
%else
111814
  OPT_CFLAGS="" \
111814
%endif
111814
111814
111814
%install
111814
%{make_install}
111814
find %{buildroot} -name '*.la' -exec rm -f {} ';'
111814
111814
111814
#Fix datatype internal definitions
111814
install -pm 0644 libmpeg2/mpeg2_internal.h \
111814
  %{buildroot}%{_includedir}/mpeg2dec/
111814
111814
%ldconfig_scriptlets
111814
111814
%files
111814
%doc AUTHORS ChangeLog NEWS README TODO
111814
%license COPYING
111814
%{_libdir}/*.so.*
111814
111814
%files -n mpeg2dec
111814
%{_bindir}/corrupt_mpeg2
111814
%{_bindir}/extract_mpeg2
111814
%{_bindir}/mpeg2dec
111814
%{_mandir}/man1/*.1*
111814
111814
%files devel
111814
%doc CodingStyle doc/libmpeg2.txt doc/sample*.c
111814
%{_includedir}/mpeg2dec/
111814
%{_libdir}/*.so
111814
%{_libdir}/pkgconfig/libmpeg2.pc
111814
%{_libdir}/pkgconfig/libmpeg2convert.pc
111814
111814
111814
%changelog
111814
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.5.1-24
111814
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
111814
  Related: rhbz#1991688
111814
111814
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.5.1-23
111814
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
111814
111814
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-22
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
111814
111814
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-21
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
111814
111814
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-20
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
111814
111814
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-19
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
111814
111814
* Wed May 08 2019 Yaakov Selkowitz <yselkowi@redhat.com> - 0.5.1-18
111814
- Rebuilt for inclusion in Fedora
111814
111814
* Mon Mar 04 2019 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 0.5.1-17
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
111814
111814
* Thu Jul 26 2018 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 0.5.1-16
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
111814
111814
* Sun Apr 29 2018 Leigh Scott <leigh123linux@googlemail.com> - 0.5.1-15
111814
- Add patch to fix inline warnings
111814
- Spec file clean up
111814
111814
* Thu Mar 01 2018 RPM Fusion Release Engineering <leigh123linux@googlemail.com> - 0.5.1-14
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
111814
111814
* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart@rpmfusion.org> - 0.5.1-13
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
111814
111814
* Sun Mar 19 2017 RPM Fusion Release Engineering <kwizart@rpmfusion.org> - 0.5.1-12
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
111814
111814
* Sun Aug 31 2014 Sérgio Basto <sergio@serjux.com> - 0.5.1-11
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
111814
111814
* Sun Mar 03 2013 Nicolas Chauvet <kwizart@gmail.com> - 0.5.1-10
111814
- Mass rebuilt for Fedora 19 Features
111814
111814
* Wed Jan 25 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.5.1-9
111814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
111814
111814
* Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.5.1-8
111814
- Rebuild for F-12
111814
111814
* Wed Apr  8 2009 kwizart < kwizart at gmail.com > - 0.5.1-7
111814
- New attempt
111814
111814
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.5.1-6
111814
- rebuild for new F11 features
111814
111814
* Fri Mar 27 2009 kwizart < kwizart at gmail.com > - 0.5.1-5
111814
- Rebuild
111814
- Fix target_arch conditionals
111814
- Provides internal definitions mpeg2_internal.h
111814
- Disable ppc altivec optim (TODO improve asm optim later)
111814
 
111814
* Sat Oct  4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3
111814
- Fix CFLAGS on x86 producing selinux denials.
111814
111814
* Wed Jul 30 2008 Thorsten Leemhuis 
111814
- rebuild for buildsys cflags issue
111814
111814
* Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 0.5.1-1
111814
- Update to 0.5.1
111814
111814
* Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1
111814
- Initial package (based on mpeg2dec)
111814