]> git.pld-linux.org Git - packages/intel-xed.git/commitdiff
- initial auto/th/intel-xed-11.0.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 22 Sep 2019 17:19:00 +0000 (19:19 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 22 Sep 2019 17:19:00 +0000 (19:19 +0200)
intel-xed.spec [new file with mode: 0644]

diff --git a/intel-xed.spec b/intel-xed.spec
new file mode 100644 (file)
index 0000000..350b834
--- /dev/null
@@ -0,0 +1,73 @@
+Summary:       Intel X86 Encoder Decoder (Intel XED)
+Summary(pl.UTF-8):     Dekoder/koder rozkazów procesorów Intel X86 (Intel XED)
+Name:          intel-xed
+Version:       11.0.1
+Release:       1
+License:       Apache v2.0
+Group:         Libraries
+#Source0Download: https://github.com/intelxed/xed/releases
+Source0:       https://github.com/intelxed/xed/archive/%{version}/xed-%{version}.tar.gz
+# Source0-md5: 79d1b08fce1b20042c604df52ac192a5
+%define        mbuild_gitref   f2de5e93ac318e223f6ec61c41f541171db0ada7
+%define        mbuild_snap     20190524
+Source1:       https://github.com/intelxed/mbuild/archive/%{mbuild_gitref}/mbuild-%{mbuild_snap}.tar.gz
+# Source1-md5: ab8443e971e321968390261ddcd4a43f
+URL:           https://github.com/intelxed/xed
+BuildRequires: python3 >= 1:3
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Intel X86 Encoder Decoder (Intel XED).
+
+%description -l pl.UTF-8
+Dekoder/koder rozkazów procesorów Intel X86 (Intel XED).
+
+%package devel
+Summary:       Header files for Intel XED libraries
+Summary(pl.UTF-8):     Pliki nagłówkowe bibliotek Intel XED
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for Intel XED libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek Intel XED.
+
+%prep
+%setup -q -n xed-%{version} -a1
+%{__mv} mbuild-%{mbuild_gitref} mbuild
+
+%build
+PYTHONPATH=$(pwd)/mbuild \
+%{__python3} mfile.py install \
+       CC="%{__cc}" \
+       LINK="%{__cc}" \
+       --extra-ccflags="%{rpmcflags} %{rpmcppflags}" \
+       --extra-linkflags="%{rpmldflags}" \
+       --shared \
+       --verbose 6
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
+
+kit=$(echo kits/xed-install-base-*)
+install $kit/lib/lib*.so $RPM_BUILD_ROOT%{_libdir}
+cp -pr $kit/include/xed $RPM_BUILD_ROOT%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_libdir}/libxed.so
+%attr(755,root,root) %{_libdir}/libxed-ild.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/xed
This page took 0.13612 seconds and 4 git commands to generate.