]> git.pld-linux.org Git - packages/WebGUI.git/blob - WebGUI.spec
- pl description
[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.4
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 URL:            http://www.plainblack.com/webgui/
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 %description -l pl
24 WebGUI to platforma zarz±dzania tre¶ci± stworzona, aby umo¿liwiæ
25 ¶redniej wielko¶ci firmom tworzenie i utrzymywanie skomplikowanych
26 serwisów WWW. WebGUI jest systemem modularnym, obs³uguj±cym wtyczki i
27 niezale¿nym od platformy. Zosta³ zaprojektowany tak, aby pozwoliæ
28 ludziom tworz±cym serwisy zarz±dzaæ nimi z poziomu przegl±darki,
29 zamiast zajmowaæ czas i tak ju¿ zajêtym informatykom.
30
31 %prep
32 %setup -q -n %{name}
33
34 %{__perl} -pi -e 's|/data/WebGUI|%{_libdir}/WebGUI|' sbin/preload.perl etc/WebGUI.conf*
35 %{__perl} -pi -e 's|configFile\s+=\s+\"WebGUI.conf\"|configFile = \"%{_sysconfdir}/WebGUI/WebGUI.conf\"|' www/index.pl
36 %{__perl} -pi -e 's|webguiRoot\s*=\s*\".+?\"|webguiRoot = \"%{_libdir}/WebGUI\"|' www/index.pl
37 %{__perl} -pi -e "s|(\\\$session\{config\}\{webguiRoot\}\s*\.\s*'/etc/'\s*\.)||g;" \
38           lib/WebGUI/Session.pm
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
43 install -d $RPM_BUILD_ROOT%{_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.11753 seconds and 3 git commands to generate.