add trace sub-package

This commit is contained in:
Nicolas Chauvet 2018-02-20 12:37:26 +01:00
parent 23e65e42c1
commit 6b5d201d55

View File

@ -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 <kwizart@gmail.com> - 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 <releng@fedoraproject.org> - 1.1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild