Toshaan Bharvani
2 years ago
commit
a6d038eb95
2 changed files with 82 additions and 0 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh |
||||
|
||||
if [[ -z "$1" ]]; then |
||||
echo "Usage: $0 <version>" 1>&2 |
||||
exit 1 |
||||
fi |
||||
|
||||
VERSION=$1 |
||||
NAME=AMF |
||||
|
||||
wget -q -c https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/v$VERSION/$NAME-$VERSION.tar.gz |
||||
|
||||
tar -xzf $NAME-$VERSION.tar.gz |
||||
rm -f $NAME-$VERSION.tar.gz |
||||
rm -fr $NAME-$VERSION/Thirdparty |
||||
|
||||
tar -czf $NAME-cleaned-$VERSION.tar.gz --remove-files $NAME-$VERSION |
@ -0,0 +1,65 @@
@@ -0,0 +1,65 @@
|
||||
Name: AMF |
||||
Version: 1.4.24 |
||||
Release: 1%{?dist} |
||||
Summary: Advanced Media Framework (AMF) SDK |
||||
License: MIT |
||||
URL: https://gpuopen.com/advanced-media-framework/ |
||||
BuildArch: noarch |
||||
|
||||
# Cleaned up tarballi without Thirdparty folder: |
||||
Source0: %{name}-cleaned-%{version}.tar.gz |
||||
Source1: %{name}-tarball.sh |
||||
|
||||
%description |
||||
A light-weight, portable multimedia framework that abstracts away most of the |
||||
platform and API-specific details. %{name} is supported on the closed source AMD |
||||
Pro driver and OpenMax on the open source AMD Mesa driver. |
||||
|
||||
%package devel |
||||
Summary: Development files for %{name} |
||||
|
||||
%description devel |
||||
A light-weight, portable multimedia framework that abstracts away most of the |
||||
platform and API-specific details. %{name} is supported on the closed source AMD |
||||
Pro driver and OpenMax on the open source AMD Mesa driver. |
||||
|
||||
The %{name}-devel package contains libraries and header files for developing |
||||
applications that use %{name}. |
||||
|
||||
%package samples |
||||
Summary: Sample files for %{name} |
||||
|
||||
%description samples |
||||
The %{name}-samples package contains sample programs and source for applications |
||||
that use %{name}. |
||||
|
||||
%prep |
||||
%autosetup -p1 |
||||
|
||||
%install |
||||
mkdir -p %{buildroot}%{_includedir}/%{name} |
||||
cp -fr amf/public/include/* %{buildroot}%{_includedir}/%{name}/ |
||||
|
||||
mkdir -p %{buildroot}%{_usrsrc}/%{name} |
||||
cp -fr amf/public/* %{buildroot}%{_usrsrc}/%{name}/ |
||||
rm -fr %{buildroot}%{_usrsrc}/%{name}/include |
||||
ln -sf ../../include/AMF %{buildroot}%{_usrsrc}/%{name}/include |
||||
|
||||
%files devel |
||||
%license LICENSE.txt |
||||
%doc amf/doc/* |
||||
%{_includedir}/%{name}/ |
||||
|
||||
%files samples |
||||
%{_usrsrc}/%{name} |
||||
|
||||
%changelog |
||||
* Thu Apr 07 2022 Simone Caronni <negativo17@gmail.com> - 1.4.24-1 |
||||
- Update to 1.4.24. |
||||
|
||||
* Sun Feb 13 2022 Simone Caronni <negativo17@gmail.com> - 1.4.23-2 |
||||
- Remove Thirdparty folder from sources and provide script to recreate tarball. |
||||
- Remove duplicated docs in samples subpackage. |
||||
|
||||
* Thu Feb 10 2022 Simone Caronni <negativo17@gmail.com> - 1.4.23-1 |
||||
- First build. |
Loading…
Reference in new issue