diff --git a/orc-0.4.32.tar.gz b/orc-0.4.32.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5941ed951c96333681d38add3e2c93d0b2d21355 Binary files /dev/null and b/orc-0.4.32.tar.gz differ diff --git a/orc.spec b/orc.spec new file mode 100644 index 0000000000000000000000000000000000000000..1a1dd10e3b67dd5947bd3fe540147bdfec76c346 --- /dev/null +++ b/orc.spec @@ -0,0 +1,96 @@ +%define anolis_release 1 + +Name: orc +Version: 0.4.32 +Release: %{anolis_release}%{?dist} +Summary: The Oil Run-time Compiler + +License: BSD +URL: http://cgit.freedesktop.org/gstreamer/orc/ +Source0: https://gitlab.freedesktop.org/gstreamer/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: meson >= 0.47.0 +BuildRequires: gcc +BuildRequires: gtk-doc + +%description +Orc is a library and set of tools for compiling and executing +very simple programs that operate on arrays of data. The "language" +is a generic assembly language that represents many of the features +available in SIMD architectures, including saturated addition and +subtraction, and many arithmetic operations. + +%package doc +Summary: Documentation for Orc +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for Orc. + +%package devel +Summary: Development files and libraries for Orc +Requires: %{name} = %{version}-%{release} +Requires: %{name}-compiler +Requires: pkgconfig + +%description devel +This package contains the files needed to build packages that depend +on orc. + +%package compiler +Summary: Orc compiler +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description compiler +The Orc compiler, to produce optimized code. + + +%prep +%setup -q + +##%patch0 -p1 + +%build +%meson -D default_library=shared +%meson_build + +%install +%meson_install + +# Remove unneeded files. +find %{buildroot}/%{_libdir} -name \*.a -delete +rm -rf %{buildroot}/%{_libdir}/orc + +%check +%ifnarch s390 s390x ppc %{power64} %{arm} i686 aarch64 +%meson_test +%endif + +%ldconfig_scriptlets + + +%files +%doc COPYING README +%{_libdir}/liborc-*.so.* +%{_bindir}/orc-bugreport + +%files doc +%doc %{_datadir}/gtk-doc/html/orc/ + +%files devel +%doc examples/*.c +%{_includedir}/%{name}-0.4/ +%{_libdir}/liborc-*.so +%{_libdir}/pkgconfig/orc-0.4.pc +%{_libdir}/pkgconfig/orc-test-0.4.pc +%{_datadir}/aclocal/orc.m4 + +%files compiler +%{_bindir}/orcc + + +%changelog +* Mon Apr 18 2022 zhang xianting - 0.4.32-1 +- Initial build for Anolis V23