source: projects/vine-developers-guide/tags/R_5_9_0/vine-developers-guide.spec.in @ 3041

Revision 3041, 1.4 KB checked in by yasumichi, 12 years ago (diff)

新しいマニュアルビルド方式に対応

Line 
1Name:           @PACKAGE_NAME@
2Version:        @VERSION@
3Release:        1%{?_dist_release}
4License:        GFDL
5Group:          Applications/Documentation
6Source0:        %{name}-%{version}.tar.bz2
7BuildRoot:      %{_tmppath}/%{name}-%{version}-root
8BuildArch:      noarch
9
10Vendor:         Project Vine
11Distribution:   Vine Linux
12Packager:       yasumichi
13
14Summary:        Vine Linux Developers Guide
15Summary(ja):    Vine Linux 開発者ガイド
16
17# Dependency
18Requires:       vine-manual-base
19
20BuildRequires:  vine-manual-base
21BuildRequires:  vine-manual-build
22
23%description
24Vine Linux Developers Guide
25
26%description -l ja
27Vine Linux 開発者ガイド
28
29# Prepare
30%prep
31%setup -q
32
33# Build
34%build
35%configure
36%{__make} html
37
38# Install
39%install
40%{__rm} -rf ${RPM_BUILD_ROOT}
41%{__make} install DESTDIR=${RPM_BUILD_ROOT}
42%{__make} install-html DESTDIR=${RPM_BUILD_ROOT}
43
44# Clean
45%clean
46%{__rm} -rf ${RPM_BUILD_ROOT}
47
48# after install
49%post
50scrollkeeper-update > /dev/null 2>&1 || :
51vine-manual-regist -p 80 %{_docdir}/Vine/developers-guide/vine-developers-guide.html
52vine-manual-index-update
53
54%postun
55if [ $1 -eq 0 ]; then
56        scrollkeeper-update > /dev/null 2>&1 || :
57        vine-manual-regist -r %{_docdir}/Vine/developers-guide/vine-developers-guide.html
58        vine-manual-index-update
59fi
60
61# File list
62%files
63%defattr(-,root,root)
64%doc AUTHORS COPYING ChangeLog NEWS README
65%{_docdir}/Vine/developers-guide
66%{_datadir}/omf/vine-developers-guide
67
68# Change Log
69%changelog
70* Sun Mar 20 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.0-1
71- written first.
72
Note: See TracBrowser for help on using the repository browser.