-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpublican-libvirt.spec
42 lines (34 loc) · 1 KB
/
publican-libvirt.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%define brand libvirt
Name: publican-libvirt
Summary: Common documentation files for %{brand}
Version: 0.1
Release: 0%{?dist}
License: CC-BY-SA
Group: Applications/Text
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Buildarch: noarch
Source: http://libvirt.org/ftp/source/%{name}-%{version}.tgz
Requires: publican >= 1.0
BuildRequires: publican >= 1.0
URL: http://libvirt.org/
%description
This package provides common files and templates needed to build documentation
for %{brand} with publican.
%prep
%setup -q
%build
publican build --formats=xml --langs=all --publish
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p -m755 $RPM_BUILD_ROOT%{_datadir}/publican/Common_Content
publican install_brand --path=$RPM_BUILD_ROOT%{_datadir}/publican/Common_Content
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
%doc COPYING
%{_datadir}/publican/Common_Content/%{brand}
%changelog
* Tue Nov 17 2009 Daniel P. Berrange <berrange@redhat.com> 0.1-1
- Created initial libvirt brand