]> git.pld-linux.org Git - packages/WebGUI.git/blob - WebGUI.spec
f735a705f8385a1b9a1b00254b46c6e9f9d84451
[packages/WebGUI.git] / WebGUI.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Open source content management system (CMS)
3 Summary(pl):    Wolnodostêpny system zarz±dzania tre¶ci± (CMS)
4 Name:           WebGUI
5 Version:        5.2.5
6 Release:        0.1
7 License:        GPL
8 Group:          Development/Languages/Perl
9 Source0:        http://files.plainblack.com/downloads/5.x.x/webgui-%{version}.tar.gz
10 # Source0-md5:  7b70b113fae49c462648a56c85eaae2a
11 URL:            http://www.plainblack.com/webgui/
12 BuildRequires:  perl >= 5.6
13 BuildRequires:  rpm-perlprov >= 3.0.3-16
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 WebGUI is a content management platform built to allow average
19 business users to build and maintain complex web sites. It is modular,
20 pluggable, and platform independent. It was designed to allow the
21 people who create the content, to manage it online, rather than
22 content management taking up the time of the busy IT Staff.
23
24 %description -l pl
25 WebGUI to platforma zarz±dzania tre¶ci± stworzona, aby umo¿liwiæ
26 ¶redniej wielko¶ci firmom tworzenie i utrzymywanie skomplikowanych
27 serwisów WWW. WebGUI jest systemem modularnym, obs³uguj±cym wtyczki i
28 niezale¿nym od platformy. Zosta³ zaprojektowany tak, aby pozwoliæ
29 ludziom tworz±cym serwisy zarz±dzaæ nimi z poziomu przegl±darki,
30 zamiast zajmowaæ czas i tak ju¿ zajêtym informatykom.
31
32 %prep
33 %setup -q -n %{name}
34
35 %{__perl} -pi -e 's|/data/WebGUI|%{_libdir}/WebGUI|' sbin/preload.perl etc/WebGUI.conf*
36 %{__perl} -pi -e 's|configFile\s+=\s+\"WebGUI.conf\"|configFile = \"%{_sysconfdir}/WebGUI/WebGUI.conf\"|' www/index.pl
37 %{__perl} -pi -e 's|webguiRoot\s*=\s*\".+?\"|webguiRoot = \"%{_libdir}/WebGUI\"|' www/index.pl
38 %{__perl} -pi -e "s|(\\\$session\{config\}\{webguiRoot\}\s*\.\s*'/etc/'\s*\.)||g;" \
39           lib/WebGUI/Session.pm
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_libdir}/%{name}/sql,%{_sysconfdir}/%{name}}
44
45 rm docs/license.txt
46 mv docs/upgrades $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
47 mv docs/create.sql $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
48
49 mv etc/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
50 rmdir etc
51 cp -av . $RPM_BUILD_ROOT%{_libdir}/%{name}
52 rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/docs
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc docs/*
60 %{_sysconfdir}/%{name}
61 %{_libdir}/%{name}
This page took 0.065345 seconds and 2 git commands to generate.