/
mod_rivet.spec
107 lines (77 loc) · 2.89 KB
/
mod_rivet.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# $Id$
# Authority: yury
# Upstream: Apache Rivet team <rivet-dev$tcl,apache,org>
%define real_name rivet
Summary: Apache Rivet lets you use the Tcl scripting language to create dynamic web sites
Name: mod_rivet
Version: 2.0.5
Release: 1%{?dist}
License: Apache License Version 2.0
Group: Development/Languages
URL: http://tcl.apache.org/rivet/
Source0: http://www.apache.org/dist/tcl/%{real_name}/%{real_name}-%{version}.tar.gz
Source1: http://www.apache.org/dist/tcl/%{real_name}/%{real_name}-%{version}.tar.gz.asc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: httpd-devel >= 2.0.46-1
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: tcl >= 8.4
BuildRequires: tcl-devel >= 8.4
Requires: httpd
Requires: tcl >= 8.4
%description
Tcl is a scripting language. Apache Rivet is a module for Apache
httpd that makes it easy easy for developers to write dynamically
generated webpages in Tcl.
%prep
%setup -q -n rivet-%{version}
%build
%configure \
--with-apxs="%{_sbindir}/apxs" \
--with-apache="%{_prefix}" \
--with-apache-version="2" \
--with-rivet-target-dir="%{_libdir}/httpd/rivet%{version}" \
--with-pic \
--disable-rpath
%{__make} %{?_smp_mflags}
%{__make} %{?_smp_mflags} doc
%install
%{__make} install DESTDIR=%{buildroot}
# Remove static libraries
rm -f %{buildroot}%{_libdir}/httpd/modules/mod_rivet.la
rm -f %{buildroot}%{_libdir}/httpd/rivet%{version}/librivet*.la
# Create an Apache conf include
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
cat <<EOT >%{buildroot}%{_sysconfdir}/httpd/conf.d/rivet.conf
# Loads the module
LoadModule rivet_module modules/mod_rivet.so
# Let the module handle .rvt and .tcl files
AddType application/x-httpd-rivet rvt
AddType application/x-rivet-tcl tcl
# The default charset can be specified in the configuration
AddType "application/x-httpd-rivet; charset=utf-8" rvt
# Add index.rvt to the list of files that will be served
DirectoryIndex index.rvt
EOT
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc LICENSE NOTICE contrib doc/html doc/examples
%config(noreplace) %{_sysconfdir}/httpd/conf.d/rivet.conf
%{_libdir}/httpd/modules/mod_rivet.so
%{_libdir}/httpd/rivet%{version}
%changelog
* Tue Jun 26 2012 Jeff Lawson <jeff@bovine.net> - 2.0.4-1
- Updated to release 2.0.5.
* Thu Oct 6 2011 Jeff Lawson <jeff@bovine.net> - 2.0.4-1
- Updated to release 2.0.4.
* Thu Aug 11 2011 Yury V. Zaytsev <yury@shurup.com> - 2.0.3-1
- Regenerating the build system is no longer necessary.
- Rivet can be built against TCL 8.4, so why not?
- Merged the updated version from Jeff.
* Mon May 03 2010 Yury V. Zaytsev <yury@shurup.com> - 2.0.0-1
- Merged the updated version from Jeff.
* Thu Apr 15 2010 Yury V. Zaytsev <yury@shurup.com> - 0.8.0-0.20100414032008.1
- Initial import of the SPEC by Jeff Lawson <jeff$bovine,net>, thanks!
- Minor RPMForge-related tweaks.