put API docs into extra subpackage
This commit is contained in:
parent
e458363cd4
commit
fde9e97e41
22
libwpg.spec
22
libwpg.spec
@ -29,6 +29,15 @@ The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation of %{name} API
|
||||
Group: Documentation
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
The %{name}-doc package contains API documentation for %{name}.
|
||||
|
||||
|
||||
%package tools
|
||||
Summary: Tools to convert WordPerfect Graphics images
|
||||
Group: Applications/Multimedia
|
||||
@ -60,11 +69,10 @@ find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg
|
||||
|
||||
|
||||
%install
|
||||
# Documentation is intentionally not installed here,
|
||||
# it is included as -devel %%doc
|
||||
make SUBDIRS="" install DESTDIR=$RPM_BUILD_ROOT
|
||||
make -C src install DESTDIR=$RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
# we install API docs directly from build
|
||||
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
@ -77,12 +85,16 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
|
||||
%files devel
|
||||
%doc docs/doxygen/html
|
||||
%{_includedir}/%{name}-%{apiversion}
|
||||
%{_libdir}/%{name}-%{apiversion}.so
|
||||
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
||||
|
||||
|
||||
%files doc
|
||||
%doc COPYING.LGPL COPYING.MPL
|
||||
%doc docs/doxygen/html
|
||||
|
||||
|
||||
%files tools
|
||||
%doc COPYING.LGPL COPYING.MPL
|
||||
%{_bindir}/wpg2raw
|
||||
|
Loading…
Reference in New Issue
Block a user