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