docs-alt-virtualization-one/docs.spec

45 lines
1016 B
RPMSpec
Raw Normal View History

%define variant variant
%define Variant Variant
2009-10-23 10:55:52 +04:00
%define _documentationdir %_defaultdocdir/documentation
%define _docsinstalldir %_defaultdocdir/%variant
2009-10-23 10:55:52 +04:00
%define variants docs-office-server docs-backup-server docs-desktop docs-school-master docs-school-junior docs-school-lite docs-school-server docs-kdesktop docs-school-terminal
2009-10-23 10:55:52 +04:00
Name: docs-%variant
2009-10-23 10:55:52 +04:00
Version: 5.0
Release: alt1
Summary: %Variant documentation
2009-10-23 10:55:52 +04:00
License: %fdl
Group: Documentation
Packager: ALT Docs Team <docs@packages.altlinux.org>
BuildArch: noarch
Source: %name-%version-%release.tar
Conflicts: %(for n in %variants ; do [ "$n" = %name ] || echo -n "$n "; done)
BuildRequires(pre):rpm-build-licenses
BuildRequires: asciidoc-a2x
%description
%Variant documentation.
2009-10-23 10:55:52 +04:00
%prep
%setup -n %name-%version-%release
%build
%make_build
%install
%make_install DESTDIR=%buildroot docdir=%_docsinstalldir install
ln -s $(relative %_docsinstalldir %_documentationdir) %buildroot%_documentationdir
2009-10-23 10:55:52 +04:00
%files
%_docsinstalldir
2009-10-23 10:55:52 +04:00
%_documentationdir
%changelog