]> git.pld-linux.org Git - packages/WebGUI.git/blob - WebGUI.spec
- autoupdated to 5.2.1
[packages/WebGUI.git] / WebGUI.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Open source content management system (CMS)
3 Name:           WebGUI
4 Version:        5.2.1
5 Release:        0.1
6 License:        GPL
7 Group:          Development/Languages/Perl
8 URL:            http://www.plainblack.com/webgui
9 Source0:        http://files.plainblack.com/downloads/5.x.x/webgui-%{version}.tar.gz
10 BuildRequires:  perl >= 5.6
11 BuildRequires:  rpm-perlprov >= 3.0.3-16
12 BuildArch:      noarch
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 WebGUI is a content management platform built to allow average
17 business users to build and maintain complex web sites. It is modular,
18 pluggable, and platform independent. It was designed to allow the
19 people who create the content, to manage it online, rather than
20 content management taking up the time of the busy IT Staff.
21
22 %prep
23 %setup -q -n %{name}
24
25 %{__perl} -pi -e 's|/data/WebGUI|%{_libdir}/WebGUI|' sbin/preload.perl etc/WebGUI.conf*
26 %{__perl} -pi -e 's|configFile\s+=\s+\"WebGUI.conf\"|configFile = \"%{_sysconfdir}/WebGUI/WebGUI.conf\"|' www/index.pl
27 %{__perl} -pi -e 's|webguiRoot\s*=\s*\".+?\"|webguiRoot = \"%{_libdir}/WebGUI\"|' www/index.pl
28 %{__perl} -pi -e "s|(\\\$session\{config\}\{webguiRoot\}\.'/etc/')|'/etc/'|g;" \
29           lib/WebGUI/Session.pm
30
31 %build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
36 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
37
38 rm docs/license.txt
39 mv docs/upgrades $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
40 mv docs/create.sql $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
41
42 mv etc/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
43 rmdir etc
44 cp -av . $RPM_BUILD_ROOT%{_libdir}/%{name}
45 rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/docs
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc docs/*
53 %{_sysconfdir}/%{name}
54 %{_libdir}/%{name}
This page took 0.134417 seconds and 3 git commands to generate.