From 6b5d201d55b53d1da13f7cc06e1aec40dcf4afea Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Feb 20 2018 11:37:26 +0000 Subject: add trace sub-package --- diff --git a/libvdpau.spec b/libvdpau.spec index 6489d5f..b6cf7fc 100644 --- a/libvdpau.spec +++ b/libvdpau.spec @@ -28,6 +28,16 @@ VDPAU is the Video Decode and Presentation API for UNIX. It provides an interface to video decode acceleration and presentation hardware present in modern GPUs. +%package trace +Summary: Trace library for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%if 0%{?fedora} > 26 || 0%{?rhel} > 7 +Supplements: %{name}-debuginfo%{?_isa} +%endif + +%description trace +The %{name}-trace package contains trace library for %{name}. + %package docs Summary: Documentation for %{name} BuildArch: noarch @@ -40,6 +50,8 @@ The %{name}-docs package contains documentation for %{name}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} +#Multilibs trace +Requires: %{name}-trace%{?_isa} = %{version}-%{release} Requires: libX11-devel Requires: pkgconfig @@ -56,27 +68,28 @@ applications that use %{name}. %build autoreconf -vif %configure --disable-static -make %{?_smp_mflags} +%make_build %install -make install DESTDIR=%{buildroot} INSTALL="install -p" +%make_install INSTALL="install -p" find %{buildroot} -name '*.la' -delete # Let %%doc macro create the correct location in the rpm file, creates a # versioned docdir in <= f19 and an unversioned docdir in >= f20. rm -fr %{buildroot}%{_docdir} mv doc/html-out html -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%ldconfig_scriptlets + %files -%doc AUTHORS COPYING +%doc AUTHORS +%license COPYING %config(noreplace) %{_sysconfdir}/vdpau_wrapper.cfg %{_libdir}/*.so.* %dir %{_libdir}/vdpau -%files debuginfo +%files trace %{_libdir}/vdpau/%{name}_trace.so* %files docs @@ -87,9 +100,11 @@ mv doc/html-out html %{_libdir}/%{name}.so %{_libdir}/pkgconfig/vdpau.pc + %changelog * Tue Feb 20 2018 Nicolas Chauvet - 1.1.1-8 -- Move libvdpau_trace to debuginfo +- Move libvdpau_trace to trace sub-package +- Spec file clean-up * Wed Feb 07 2018 Fedora Release Engineering - 1.1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild