Accepting request 588146 from home:tiwai:branches:multimedia:libs
- Split libvorbis-doc subpackage to a separate spec file for reducing the dependencies - Split from libvorbis.spec to reduce the build dependencies OBS-URL: https://build.opensuse.org/request/show/588146 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvorbis?expand=0&rev=57
This commit is contained in:
parent
d1ae3d83a0
commit
649d0c7e7a
5
libvorbis-doc.changes
Normal file
5
libvorbis-doc.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 17 14:55:12 CET 2018 - tiwai@suse.de
|
||||
|
||||
- Split from libvorbis.spec to reduce the build dependencies
|
||||
|
96
libvorbis-doc.spec
Normal file
96
libvorbis-doc.spec
Normal file
@ -0,0 +1,96 @@
|
||||
#
|
||||
# spec file for package libvorbis-doc
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1320
|
||||
%define build_docs 1
|
||||
%else
|
||||
%define build_docs 0
|
||||
%endif
|
||||
|
||||
Name: libvorbis-doc
|
||||
Version: 1.3.6
|
||||
Release: 0
|
||||
Summary: Documentation of Ogg/Vorbis library
|
||||
License: BSD-3-Clause
|
||||
Group: Documentation/Other
|
||||
Url: http://www.vorbis.com/
|
||||
Source: http://downloads.xiph.org/releases/vorbis/libvorbis-%{version}.tar.xz
|
||||
Patch1: libvorbis-lib64.dif
|
||||
Patch2: libvorbis-m4.dif
|
||||
Patch12: vorbis-ocloexec.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libogg-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: xz
|
||||
%if %build_docs
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: texlive-babel-english
|
||||
BuildRequires: texlive-latex
|
||||
BuildRequires: texlive-tex4ht
|
||||
BuildRequires: tex(a4wide.sty)
|
||||
BuildRequires: tex(capt-of.sty)
|
||||
BuildRequires: tex(csquotes.sty)
|
||||
BuildRequires: tex(enumitem.sty)
|
||||
BuildRequires: tex(fancyvrb.sty)
|
||||
BuildRequires: tex(grffile.sty)
|
||||
BuildRequires: tex(parskip.sty)
|
||||
BuildRequires: tex(ulem.sty)
|
||||
BuildRequires: tex(underscore.sty)
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
This package contains documents for Ogg/Vorbis library, including the
|
||||
API reference.
|
||||
|
||||
%prep
|
||||
%setup -q -n libvorbis-%{version}
|
||||
%patch2
|
||||
# %%patch5 -p1
|
||||
if [ "%{_lib}" == "lib64" ]; then
|
||||
%patch1
|
||||
fi
|
||||
%patch12
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
%if %build_docs
|
||||
--enable-docs \
|
||||
%endif
|
||||
--disable-examples \
|
||||
--disable-static
|
||||
# parallel-build of docs may fail
|
||||
make -C doc
|
||||
# we don't build anything but docs
|
||||
|
||||
%install
|
||||
make -C doc DESTDIR=%{buildroot} install
|
||||
mkdir -p %{buildroot}%{_docdir}
|
||||
mv %{buildroot}%{_datadir}/doc/libvorbis-* %{buildroot}%{_docdir}/%{name}
|
||||
# remove unneeded files
|
||||
find %{buildroot}%{_docdir}/ -empty -delete
|
||||
%fdupes -s %{buildroot}%{_docdir}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}
|
||||
|
||||
%changelog
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 17 14:54:44 CET 2018 - tiwai@suse.de
|
||||
|
||||
- Split libvorbis-doc subpackage to a separate spec file for
|
||||
reducing the dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 16 22:12:35 CET 2018 - tiwai@suse.de
|
||||
|
||||
|
@ -16,12 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1320
|
||||
%define build_docs 1
|
||||
%else
|
||||
%define build_docs 0
|
||||
%endif
|
||||
|
||||
Name: libvorbis
|
||||
Version: 1.3.6
|
||||
Release: 0
|
||||
@ -34,26 +28,10 @@ Source1: baselibs.conf
|
||||
Patch1: libvorbis-lib64.dif
|
||||
Patch2: libvorbis-m4.dif
|
||||
Patch12: vorbis-ocloexec.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libogg-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: xz
|
||||
%if %build_docs
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: texlive-babel-english
|
||||
BuildRequires: texlive-latex
|
||||
BuildRequires: texlive-tex4ht
|
||||
BuildRequires: tex(a4wide.sty)
|
||||
BuildRequires: tex(capt-of.sty)
|
||||
BuildRequires: tex(csquotes.sty)
|
||||
BuildRequires: tex(enumitem.sty)
|
||||
BuildRequires: tex(fancyvrb.sty)
|
||||
BuildRequires: tex(grffile.sty)
|
||||
BuildRequires: tex(parskip.sty)
|
||||
BuildRequires: tex(ulem.sty)
|
||||
BuildRequires: tex(underscore.sty)
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# bug437293 (SLES10 -> SLES11 upgrade path)
|
||||
%ifarch ppc64
|
||||
@ -130,15 +108,6 @@ Obsoletes: libvorbis-devel-64bit
|
||||
This package contains all necessary include files and libraries needed
|
||||
to compile and develop applications that use libvorbis.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation of Ogg/Vorbis library
|
||||
Group: Documentation/Other
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
This package contains documents for Ogg/Vorbis library, including the
|
||||
API reference.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch2
|
||||
@ -154,24 +123,16 @@ sed -i s,-O20,-O3,g configure.ac
|
||||
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
%if %build_docs
|
||||
--enable-docs \
|
||||
%endif
|
||||
--disable-examples \
|
||||
--disable-static
|
||||
# parallel-build of docs may fail, so build docs at first
|
||||
make -C doc
|
||||
# do parallel-build the rest
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
mv %{buildroot}%{_datadir}/doc/libvorbis-* %{buildroot}%{_docdir}/%{name}
|
||||
# docs are built in a separate spec file
|
||||
rm -rf %{buildroot}%{_datadir}/doc/*
|
||||
# remove unneeded files
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
find %{buildroot}%{_docdir}/ -empty -delete
|
||||
%fdupes -s %{buildroot}%{_docdir}
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
@ -209,8 +170,4 @@ make %{?_smp_mflags} check
|
||||
%{_libdir}/lib*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user