]> git.pld-linux.org Git - packages/WebGUI.git/blob - WebGUI.spec
82610294b840bd8b44e13ca94cecf46e01dfebb2
[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.1.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 Patch0:         %{name}-etc.patch
11 BuildRequires:  perl >= 5.6
12 BuildRequires:  rpm-perlprov >= 3.0.3-16
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 WebGUI is a content management platform built to allow average
18 business users to build and maintain complex web sites. It is modular,
19 pluggable, and platform independent. It was designed to allow the
20 people who create the content, to manage it online, rather than
21 content management taking up the time of the busy IT Staff.
22
23 %prep
24 %setup -q -n %{name}
25 %patch0 -p0
26
27 perl -pi -e 's|/data/WebGUI|%{_libdir}/WebGUI|' sbin/preload.perl etc/WebGUI.conf*
28 perl -pi -e 's|configFile\s+=\s+\"WebGUI.conf\"|configFile = \"%{_sysconfdir}/WebGUI/WebGUI.conf\"|' www/index.pl
29 perl -pi -e 's|webguiRoot\s*=\s*\".+?\"|webguiRoot = \"%{_libdir}/WebGUI\"|' www/index.pl
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.054254 seconds and 3 git commands to generate.