summaryrefslogtreecommitdiffstats
path: root/packaging/fedora-doc-common.spec
blob: c03176476588596964d29298e84e2e55271986ad (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This spec file is only for building supporting common files from the
# docs-common module.  It is not for use with other docs modules at
# this time.

Summary:        Fedora Documentation common files
Name:           fedora-doc-common
# To be defined in Makefile
Version:        %version
Release: 	%release
License:        FDL
Url:		http://fedora.redhat.com/projects/docs/
Source0:	fedora-doc-common-%release.src.tar.gz
Group:          Documentation
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)


%description
This package contains the following official Fedora Documentation components:
- Common entities and XML fragments
- Desktop menu integration
- Help system integration for GNOME and KDE


%prep
%setup -q -n %{name}-%{release}


%build


%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/bin/
for i in xmlformat xmldiff copy-figs tidy-bowl fdpsh doctype
do
	install -m 755 $RPM_BUILD_DIR/%{name}-%{release}/bin/${i} \
		$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/bin/
done
for i in xmlformat-fdp.conf xmldiff.pl active fdp-functions
do
	install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/bin/${i} \
		$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/bin/
done
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/common/
install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/common/*.{xml,ent} \
	$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/common/
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/css/
install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/css/* \
	$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/css/
install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/xdg/menus/applications-merged/
install -m 644 \
	$RPM_BUILD_DIR/%{name}-%{release}/packaging/fedora-documentation.menu \
	$RPM_BUILD_ROOT/%{_sysconfdir}/xdg/menus/applications-merged/
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/stylesheet-images/
install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/stylesheet-images/* \
	$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/stylesheet-images/
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/packaging/
install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/packaging/*.{xsl,dtd} \
	$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/packaging/
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/xsl/
install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/xsl/* \
	$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/xsl/
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/images/
install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/images/* \
	$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/images/
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/apps/khelpcenter/plugins/Fedora
install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/packaging/khelpcenter-fdp.directory $RPM_BUILD_ROOT/%{_datadir}/apps/khelpcenter/plugins/Fedora/.directory
install -m 644 $RPM_BUILD_DIR/%{name}-%{release}/Makefile.common \
	$RPM_BUILD_ROOT/%{_datadir}/fedora/doc/docs-common/Makefile.common


%clean 
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-, root, root,-)
%docdir %{_datadir}/fedora/doc/docs-common/common/
%{_datadir}/fedora/doc/docs-common/Makefile.common
%{_datadir}/fedora/doc/docs-common/bin/*
%{_datadir}/fedora/doc/docs-common/common/*
%{_datadir}/fedora/doc/docs-common/css/*
%{_datadir}/fedora/doc/docs-common/images/*
%{_datadir}/fedora/doc/docs-common/packaging/*
%{_datadir}/fedora/doc/docs-common/stylesheet-images/*
%{_datadir}/fedora/doc/docs-common/xsl/*
%{_datadir}/apps/khelpcenter/plugins/Fedora/.directory
%{_sysconfdir}/xdg/menus/applications-merged/*

%changelog