!1 Initial package.

From: @weidongkl
Reviewed-by: @yeqinglong01
Signed-off-by: @yeqinglong01
This commit is contained in:
openeuler-ci-bot 2021-05-10 13:17:59 +08:00 committed by Gitee
commit 55f0e279d3
2 changed files with 81 additions and 0 deletions

BIN
xvidcore-1.3.7.tar.bz2 Normal file

Binary file not shown.

81
xvidcore.spec Normal file
View File

@ -0,0 +1,81 @@
#global pre -rc1
Name: xvidcore
Version: 1.3.7
Release: 1
Summary: MPEG-4 Simple and Advanced Simple Profile codec
License: GPLv2+
URL: https://www.xvid.com/
Source0: https://downloads.xvid.com/downloads/%{name}-%{version}%{?pre}.tar.bz2
BuildRequires: gcc
%ifarch %{ix86} x86_64
BuildRequires: nasm >= 2.0
%endif
%description
The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple
Profile standards. It permits compressing and decompressing digital video
in order to reduce the required bandwidth of video data for transmission
over computer networks or efficient storage on CDs or DVDs. Due to its
unrivalled quality Xvid has gained great popularity and is used in many
other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and
many more.
%package devel
Summary: Development files for the Xvid video codec
Requires: %{name}%{_isa} = %{version}-%{release}
%description devel
This package contains header files, static library and API
documentation for the Xvid video codec.
%prep
%autosetup -p1 -n %{name}
chmod -x examples/*.pl
# Convert to utf-8
for file in AUTHORS ChangeLog; do
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
touch -r $file $file.new && \
mv $file.new $file
done
# Fix rpmlint wrong-file-end-of-line-encoding
for file in ChangeLog; do
sed "s|\r||g" $file > $file.new && \
touch -r $file $file.new && \
mv $file.new $file
done
# Yes, we want to see the build output.
%{__sed} -i -e 's|@$(|$(|g' build/generic/Makefile
# Fix permissions
%{__sed} -i -e 's|644 $(BUILD_DIR)/$(SHARED_LIB)|755 $(BUILD_DIR)/$(SHARED_LIB)|g' build/generic/Makefile
%build
cd build/generic
%configure
%make_build
%install
%make_install -C build/generic
find %{buildroot} -name "*.a" -delete
%ldconfig_scriptlets
%files
%doc README AUTHORS ChangeLog
%license LICENSE
%{_libdir}/libxvidcore.so.*
%files devel
%doc CodingStyle TODO examples/
%{_includedir}/xvid.h
%{_libdir}/libxvidcore.so
%changelog
* Fri May 07 2021 weidong <weidong@uniontech.com> - 1.3.7-1
- Update to 1.3.7