Blame SPECS/libmpeg2.spec

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