Save some space in the -doc subpackage by hardlinking duplicate files
This commit is contained in:
parent
e643033a29
commit
21057a2f3f
15
xalan-c.spec
15
xalan-c.spec
@ -29,6 +29,8 @@ BuildRequires: cmake
|
||||
# Either make or ninja is supported.
|
||||
BuildRequires: ninja-build
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: hardlink
|
||||
|
||||
BuildRequires: xerces-c-devel
|
||||
%if %{with icu}
|
||||
BuildRequires: libicu-devel
|
||||
@ -94,6 +96,11 @@ rm -vf samples/configure samples/configure.in
|
||||
# the HTML version of the API documentation.
|
||||
rm -rf %{buildroot}%{_prefix}/share/doc/xalan-c/api
|
||||
|
||||
install -t '%{buildroot}%{_docdir}/%{name}-doc' -D -p -m 0644 \
|
||||
CREDITS KEYS NOTICE README.md docs/*.md
|
||||
cp -rvp docs/images/ samples/ '%{buildroot}%{_docdir}/%{name}-doc'
|
||||
hardlink -c -v '%{buildroot}%{_docdir}/%{name}-doc'
|
||||
|
||||
|
||||
%check
|
||||
%ctest
|
||||
@ -128,13 +135,7 @@ rm -rf %{buildroot}%{_prefix}/share/doc/xalan-c/api
|
||||
%files doc
|
||||
%license LICENSE
|
||||
|
||||
%doc CREDITS
|
||||
%doc KEYS
|
||||
%doc NOTICE
|
||||
%doc README.md
|
||||
%doc docs/*.md
|
||||
%doc docs/images/
|
||||
%doc samples/
|
||||
%{_docdir}/%{name}-doc/
|
||||
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user