source: projects/specs/trunk/q/quickml/quickml-vl.spec @ 521

Revision 521, 2.6 KB checked in by daisuke, 12 years ago (diff)

import VineSeed package specs

Line 
1%define rlibdir %(ruby -rrbconfig -e 'print Config::CONFIG["rubylibdir"]')
2
3Name: quickml
4Version: 0.5
5Release: 1%{?_dist_release}
6License: GPL
7Group: System Environment/Daemons
8Source: http://quickml.com/quickml/%{name}-%{version}.tar.gz
9Source1: quickml.init
10Source2: quickml.logrotate
11Patch1: quickml-0.5-docs.patch
12URL: http://quickml.com/
13Prefix: /usr
14BuildArch: noarch
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16Requires: ruby >= 1.6.7
17Summary: very-easy-to-use mailing list system
18Summary(ja): 超お手軽なメーリングリストシステム
19
20%description
21quickml server is a very-easy-to-use mailing list system.  quickml server
22provides very-easy-to-use mailing list service.
23
24%description -l ja
25quickmlサーバは超お手軽なメーリングリストシステムです。quickmlサーバを利用す
26れば、超お手軽なメーリングリストサービスを提供できます。
27
28%prep
29
30%setup -q
31%patch1 -p0
32
33%build
34make         PREFIX=%{_prefix} \
35         SYSCONFDIR=%{_sysconfdir} \
36      LOCALSTATEDIR=%{_localstatedir}/%{name} \
37          SITE_RUBY=%{rlibdir}
38
39%install
40rm -rf ${RPM_BUILD_ROOT}
41
42install -d ${RPM_BUILD_ROOT}
43install -d ${RPM_BUILD_ROOT}%{_initdir}
44install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
45install -d ${RPM_BUILD_ROOT}%{_localstatedir}/%{name}
46install -d ${RPM_BUILD_ROOT}%{_datadir}/%{name}
47install -d ${RPM_BUILD_ROOT}%{rlibdir}/%{name}
48
49make         PREFIX=${RPM_BUILD_ROOT}%{_prefix} \
50         SYSCONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir} \
51      LOCALSTATEDIR=${RPM_BUILD_ROOT}%{_localstatedir}/%{name} \
52          SITE_RUBY=${RPM_BUILD_ROOT}%{rlibdir} \
53  install
54
55install -m755 %{SOURCE1} ${RPM_BUILD_ROOT}%{_initdir}/%{name}
56install -m755 %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
57
58%clean
59rm -rf ${RPM_BUILD_ROOT}
60
61%post
62/sbin/chkconfig --add quickml
63
64%preun
65if [ $1 = 0 ]; then
66  service quickml stop > /dev/null 2>&1
67  /sbin/chkconfig --del quickml
68fi
69
70%files
71%defattr(-, root, root)
72%{_sbindir}/*
73%{_localstatedir}/%{name}
74%{_datadir}/%{name}
75%{rlibdir}/*.rb
76%{rlibdir}/%{name}/*.rb
77%config %{_sysconfdir}/quickmlrc
78%config %{_sysconfdir}/logrotate.d/%{name}
79%config %{_initdir}/%{name}
80%doc *.rd quickmlrc.sample
81
82%changelog
83* Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 0.5-1vl5
84- applied new versioning policy, spec in utf-8
85
86* Fri Mar 08 2002 akira yamada <akira@vinelinux.org> 0.5-0vl1
87- new upstream version.
88
89* Tue Feb 12 2002 akira yamada <akira@vinelinux.org> 0.2-0vl1
90- new upstream version.
91- removed quickml-0.1-*.patch. they are included in upstream source.
92
93* Tue Feb 12 2002 akira yamada <akira@vinelinux.org> 0.1-0vl1
94- Initial packaging.
Note: See TracBrowser for help on using the repository browser.