]> git.pld-linux.org Git - packages/dgee.git/blame - dgee.spec
- logrotate 3.8.0 requires "su" option for non-root writable dirs
[packages/dgee.git] / dgee.spec
CommitLineData
00650e5a 1# TODO:
26d365b1 2# - pnet incompatability, see -pnet.patch
00650e5a 3#
d7f76255 4# Conditional build:
26d365b1
ER
5%bcond_without apache1 # disable building apache 1.3.x module
6%bcond_without apache2 # disable building apache 2.x module
62a78d85 7%bcond_with i_have_checked_this_patch_works_not_just_compiles
d7f76255 8#
26d365b1
ER
9%define apxs1 /usr/sbin/apxs1
10%define apxs2 /usr/sbin/apxs
2030af0d 11%define subver 2
12%define base_version 0.1.6
265c2052 13Summary: The DotGNU Execution Environment Core
ff7992b0 14Summary(pl.UTF-8): Podstawa środowiska wykonawczego DotGNU
265c2052 15Name: dgee
2030af0d 16Version: %{base_version}_%{subver}
26d365b1 17Release: 2.2
e6621393
JB
18License: GPL
19Group: Networking/Daemons
2030af0d 20Source0: http://www.nfluid.com/download/src/%{name}-%{base_version}-%{subver}.tgz
265c2052 21# Source0-md5: a2573a076832c4c7212479cabda15eff
7d976bf3 22Source1: %{name}.init
23Source2: %{name}.logrotate
26d365b1 24Source3: %{name}-apache.conf
265c2052 25Patch0: %{name}-DESTDIR.patch
26Patch1: %{name}-apache.patch
39709ac0 27Patch2: %{name}-dglib_fix_so.patch
38f3bc83 28Patch3: %{name}-pythonvm.patch
e6621393
JB
29Patch4: %{name}-pic.patch
30Patch5: %{name}-nolibnsl.patch
26d365b1 31Patch6: %{name}-pnet.patch
e6621393 32URL: http://www.dotgnu.org/dgee.html
26d365b1
ER
33%{?with_apache1:BuildRequires: %{apxs1}}
34%{?with_apache2:BuildRequires: %{apxs2}}
35%{?with_apache2:BuildRequires: apache-devel}
36%{?with_apache1:BuildRequires: apache1-devel}
e6621393
JB
37BuildRequires: autoconf >= 2.13
38BuildRequires: automake
265c2052 39BuildRequires: expat-devel
679d15c5 40BuildRequires: gc-devel
78bf856b 41BuildRequires: goldwater-devel >= 0.3.4
00650e5a 42BuildRequires: libffi-devel
78bf856b 43BuildRequires: phlib-devel >= 1.20
679d15c5 44BuildRequires: pnet-compiler-csharp
78bf856b 45BuildRequires: pnet-devel >= 0.6.0-2
679d15c5 46BuildRequires: pnetlib-base
26d365b1 47BuildRequires: rpmbuild(macros) >= 1.268
e6621393 48Requires(post): /sbin/ldconfig
d7f76255 49Requires(post,preun): /sbin/chkconfig
26d365b1 50Requires(post,preun): rc-scripts
e6621393 51Requires: goldwater
fbb486c5 52Conflicts: logrotate < 3.8.0
265c2052 53BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55%description
56The core DotGNU Execution Environment that provides the functionality
57of accepting, validating and satisfying web service requests.
58
d21906cb
JR
59%description -l pl.UTF-8
60Ten pakiet zawiera podstawę środowiska wykonawczego DotGNU (DotGNU
61Execution Environment) dostarczającą funkcjonalność przyjmowania,
62sprawdzania poprawności i wykonywania żądań usług WWW.
e6621393 63
26d365b1
ER
64%package -n apache1-mod_dgee
65Summary: DGEE DSO module for Apache 1.3.x
ff7992b0 66Summary(pl.UTF-8): Moduł DSO DGEE dla Apache'a 1.3.x
26d365b1
ER
67Group: Networking/Daemons
68Requires: %{name} = %{version}-%{release}
69Requires: apache1(EAPI) >= 1.3.33-2
70Requires: apache1-mod_mime
71
72%description -n apache1-mod_dgee
73The DotGNU Execution Environment Core DSO module for Apache 1.3.x.
74
d21906cb
JR
75%description -n apache1-mod_dgee -l pl.UTF-8
76Moduł DSO podstawy środowiska wykonawczego DotGNU (DotGNU Execution
3e4e1903
JB
77Environment) dla Apache'a 1.3.x.
78
26d365b1
ER
79%package -n apache-mod_dgee
80Summary: DGEE DSO module for Apache 2.x
ff7992b0 81Summary(pl.UTF-8): Moduł DSO DGEE dla Apache'a 2.x
26d365b1
ER
82Group: Networking/Daemons
83Requires: %{name} = %{version}-%{release}
84Requires: apache(modules-api) = %{apache_modules_api}
85Requires: apache-mod_mime
86
87%description -n apache-mod_dgee
88The DotGNU Execution Environment Core DSO module for Apache 2.x.
89
d21906cb
JR
90%description -n apache-mod_dgee -l pl.UTF-8
91Moduł DSO podstawy środowiska wykonawczego DotGNU (DotGNU Execution
3e4e1903
JB
92Environment) dla Apache'a 1.3.x.
93
265c2052 94%prep
2030af0d 95%setup -q -n %{name}-%{base_version}
265c2052 96%patch0 -p1
97%patch1 -p1
39709ac0 98%patch2 -p1
38f3bc83 99%patch3 -p1
e6621393
JB
100%patch4 -p1
101%patch5 -p1
26d365b1 102%{?with_i_have_checked_this_patch_works_not_just_compiles:%patch6 -p1}
5a444393 103
265c2052 104%build
105%{__aclocal}
106%{__autoconf}
e6621393 107%{__autoheader}
265c2052 108%{__automake}
0bb6a55c 109CFLAGS="%{rpmcflags} -I/usr/include/python2.4"
679d15c5 110export CFLAGS
265c2052 111%configure \
e6621393 112 cflags=our \
265c2052 113 --with-goldwater=%{_prefix} \
a3692708 114 --with-pnet=%{_prefix} \
5a444393 115 --with-repository=/var/lib/%{name} \
39709ac0 116 --with-username=http \
117 --with-usergroup=http \
38f3bc83 118 --with-python \
26d365b1
ER
119 %{?with_apache1:--with-apache=%{apxs1}} \
120 %{?with_apache2:--with-apache2=%{apxs2}}
265c2052 121
26d365b1 122%{__make} -j1
265c2052 123
124%install
125rm -rf $RPM_BUILD_ROOT
e6621393 126
d6258be9 127%{__make} install \
00650e5a 128 DESTDIR=$RPM_BUILD_ROOT
e6621393 129
5a444393 130# Thise files should be installed by Makefile (I can't fix it):
131install cslib/DotGNU/DGEE/DotGNU.DGEE.dll \
e6621393 132 $RPM_BUILD_ROOT%{_libdir}/%{name}
5a444393 133install cslib/System/Web/Services/System.Web.Services.dll \
e6621393 134 $RPM_BUILD_ROOT%{_libdir}/%{name}
5a444393 135install cslib/DotGNU/DGEE/Protocols/XmlRpc/XmlRpcService.exe \
e6621393 136 $RPM_BUILD_ROOT%{_libdir}/%{name}
5a444393 137
138install -d $RPM_BUILD_ROOT/var/lib/%{name}/{index,data}
139install -d $RPM_BUILD_ROOT/var/log/%{name}
7d976bf3 140touch $RPM_BUILD_ROOT/var/log/%{name}/{%{name}.log,stdout,stderr}
ee4d3215 141install -d $RPM_BUILD_ROOT/var/log/archive/%{name}
5a444393 142install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
143install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
7d976bf3 144install -d $RPM_BUILD_ROOT/etc/logrotate.d
145install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
146
26d365b1
ER
147%if %{with apache1}
148install -Dp %{SOURCE3} $RPM_BUILD_ROOT/etc/apache/conf.d/40_mod_dgee.conf
149%endif
150%if %{with apache2}
151install -Dp %{SOURCE3} $RPM_BUILD_ROOT/etc/httpd/httpd.conf/40_mod_dgee.conf
152%endif
153
e6621393
JB
154%clean
155rm -rf $RPM_BUILD_ROOT
d6258be9 156
157%post
e6621393 158/sbin/ldconfig
c6f3af49 159/sbin/chkconfig --add dgee
26d365b1 160%service dgee restart "goltwater and dgee services"
7d976bf3 161
d6258be9 162%preun
163if [ "$1" = "0" ]; then
26d365b1 164 %service dgee stop
d7f76255 165 /sbin/chkconfig --del dgee
d6258be9 166fi
167
e6621393 168%postun -p /sbin/ldconfig
265c2052 169
26d365b1
ER
170%post -n apache1-mod_dgee
171%service -q apache restart
172
173%postun -n apache1-mod_dgee
174if [ "$1" = 0 ]; then
175 %service -q apache restart
176fi
177
178%post -n apache-mod_dgee
179%service -q httpd restart
180
181%postun -n apache-mod_dgee
182if [ "$1" = 0 ]; then
183 %service -q httpd restart
184fi
185
265c2052 186%files
187%defattr(644,root,root,755)
e6621393 188%doc BINARYINSTALL INSTALL QUICKSTART README
265c2052 189%attr(755,root,root) %{_bindir}/*
e6621393
JB
190%attr(755,root,root) %{_libdir}/libdgee.so.*.*
191%attr(755,root,root) %{_libdir}/libdgxml.so.*.*
7d976bf3 192%dir %{_libdir}/%{name}
193%attr(755,root,root) %{_libdir}/%{name}/*
00650e5a 194%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}*
265c2052 195%{_datadir}/%{name}
5a444393 196/var/lib/%{name}
197%attr(754,root,root) /etc/rc.d/init.d/%{name}
7d976bf3 198%attr(730,root,http) %dir /var/log/%{name}
199%attr(660,root,http) /var/log/%{name}/*
ee4d3215 200%attr(750,root,root) %dir /var/log/archive/%{name}
00650e5a 201%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
26d365b1
ER
202
203%if %{with apache1}
204%files -n apache1-mod_dgee
205%defattr(644,root,root,755)
206%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_%{name}.conf
207%attr(755,root,root) %{_libdir}/apache1/mod_%{name}.so
208%endif
209
210%if %{with apache2}
211%files -n apache-mod_dgee
212%defattr(644,root,root,755)
213%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/httpd.conf/*_mod_%{name}.conf
214%attr(755,root,root) %{_libdir}/apache/mod_%{name}.so
215%endif
This page took 0.086565 seconds and 4 git commands to generate.