x265/x265.spec

84 lines
2.0 KiB
RPMSpec
Raw Normal View History

Name: x265
Version: 3.6
Release: 1mamba
Summary: x265 HEVC Encoder
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://bitbucket.org/multicoreware/x265_git/wiki/Home
Source: https://bitbucket.org/multicoreware/x265_git/downloads/x265_%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libnuma-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
x265 HEVC Encoder.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n %{name}_%{version}
%build
%cmake -d build_x265 \
-S ../source
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build_x265
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/x265
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libx265.so.*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/x265.h
%{_includedir}/x265_config.h
%{_libdir}/libx265.a
%{_libdir}/libx265.so
%{_libdir}/pkgconfig/x265.pc
%changelog
* Mon Apr 15 2024 Automatic Build System <autodist@openmamba.org> 3.6-1mamba
- automatic version update by autodist
* Sun Nov 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5-1mamba
- package created using the webbuild interface