source: projects/vine-desktop-guide/trunk/vine-desktop-guide.spec.in @ 4275

Revision 4275, 1.6 KB checked in by yasumichi, 11 years ago (diff)

Vine-manual を Obsoletes に

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:        Desktop user guide for Vine Linux
15Summary(ja):    Vine Linux デスクトップユーザーガイド
16
17# Dependency
18Obsoletes:      Vine-manual
19Requires:       vine-manual-base
20
21BuildRequires:  vine-manual-base
22BuildRequires:  vine-manual-build
23
24%description
25Desktop user guide for Vine Linux
26
27%description -l ja
28Vine Linux デスクトップユーザーガイド
29
30# Prepare
31%prep
32%setup -q
33
34# Build
35%build
36%configure
37%{__make} html
38
39# Install
40%install
41%{__rm} -rf ${RPM_BUILD_ROOT}
42%{__make} install DESTDIR=${RPM_BUILD_ROOT}
43%{__make} install-html DESTDIR=${RPM_BUILD_ROOT}
44
45# Clean
46%clean
47%{__rm} -rf ${RPM_BUILD_ROOT}
48
49# after install
50%post
51scrollkeeper-update > /dev/null 2>&1 || :
52vine-manual-regist -p 20 %{_docdir}/Vine/desktop-guide/vine-desktop-guide.html
53vine-manual-index-update
54
55%postun
56if [ $1 -eq 0 ]; then
57        scrollkeeper-update > /dev/null 2>&1 || :
58        vine-manual-regist -r %{_docdir}/Vine/desktop-guide/vine-desktop-guide.html
59        vine-manual-index-update
60fi
61
62# File list
63%files
64%defattr(-,root,root)
65%doc AUTHORS COPYING ChangeLog NEWS README
66%{_docdir}/Vine/desktop-guide
67%{_datadir}/omf/vine-desktop-guide
68
69# Change Log
70%changelog
71* Mon Mar 07 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.1-1
72- Don't run postun when package was upgrade.
73
74* Mon Mar 07 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.0-1
75- written first.
76
Note: See TracBrowser for help on using the repository browser.