]> git.pld-linux.org Git - packages/WebGUI.git/blob - WebGUI.spec
- updated to 5.5.0
[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.5.0
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:  86ec7d4240ed91e1a623c12483594fbb
11 URL:            http://www.plainblack.com/webgui/
12 BuildRequires:  rpm-perlprov >= 3.0.3-16
13 # BRs for autodeps:
14 BuildRequires:  perl-Archive-Tar
15 BuildRequires:  perl-DBI
16 BuildRequires:  perl-Date-Calc
17 BuildRequires:  perl-Digest-MD5
18 BuildRequires:  perl-HTML-Parser
19 BuildRequires:  perl-libwww
20 Requires:       perl-Compress-Zlib
21 Requires:       perl-DBD-mysql
22 Requires:       perl-base >= 5.6
23 # these versions are originally included in package - require these or newer
24 Requires:       perl-Convert-ASN1 >= 0.15
25 Requires:       perl-CalendarMonthSimple >= 1.18
26 Requires:       perl-HTML-TagFilter >= 0.07
27 Requires:       perl-HTML-Template >= 2.6
28 Requires:       perl-HTTP-BrowserDetect >= 0.97
29 Requires:       perl-Parse-PlainConfig >= 1.1
30 Requires:       perl-Tie-CPHash >= 1.001
31 Requires:       perl-Tie-IxHash >= 1.21
32 Requires:       perl-Tree-DAG_Node >= 1.04
33 Requires:       perl-XML-RSSLite >= 0.11
34 Requires:       perl-ldap >= 0.25
35 BuildArch:      noarch
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 # optional
39 %define         _noautoreq      'perl(Authen::Smb)'
40
41 %description
42 WebGUI is a content management platform built to allow average
43 business users to build and maintain complex web sites. It is modular,
44 pluggable, and platform independent. It was designed to allow the
45 people who create the content, to manage it online, rather than
46 content management taking up the time of the busy IT Staff.
47
48 %description -l pl
49 WebGUI to platforma zarz±dzania tre¶ci± stworzona, aby umo¿liwiæ
50 ¶redniej wielko¶ci firmom tworzenie i utrzymywanie skomplikowanych
51 serwisów WWW. WebGUI jest systemem modularnym, obs³uguj±cym wtyczki i
52 niezale¿nym od platformy. Zosta³ zaprojektowany tak, aby pozwoliæ
53 ludziom tworz±cym serwisy zarz±dzaæ nimi z poziomu przegl±darki,
54 zamiast zajmowaæ czas i tak ju¿ zajêtym informatykom.
55
56 %prep
57 %setup -q -n %{name}
58
59 %{__perl} -pi -e 's|/data/WebGUI|%{_libdir}/WebGUI|' sbin/preload.perl etc/WebGUI.conf*
60 %{__perl} -pi -e 's|configFile\s+=\s+\"WebGUI.conf\"|configFile = \"%{_sysconfdir}/WebGUI/WebGUI.conf\"|' www/index.pl
61 %{__perl} -pi -e 's|webguiRoot\s*=\s*\".+?\"|webguiRoot = \"%{_libdir}/WebGUI\"|' www/index.pl
62 %{__perl} -pi -e "s|(\\\$session\{config\}\{webguiRoot\}\s*\.\s*'/etc/'\s*\.)||g;" \
63         lib/WebGUI/Session.pm
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT{%{_libdir}/%{name}/sql,%{_sysconfdir}/%{name}}
68
69 cp -rf docs/upgrades $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
70 install docs/create.sql $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
71 gzip -9nf $RPM_BUILD_ROOT%{_libdir}/%{name}/sql{,/upgrades}/*.sql
72
73 install etc/WebGUI.conf.original $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/WebGUI.conf
74 cp -Prf lib/{Data,WebGUI*} sbin www $RPM_BUILD_ROOT%{_libdir}/%{name}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files
80 %defattr(644,root,root,755)
81 %doc docs/{changelog,credits.txt,gotcha.txt,install.txt,legal.txt}
82 %dir %{_sysconfdir}/%{name}
83 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/WebGUI.conf
84 %{_libdir}/%{name}
This page took 0.13538 seconds and 3 git commands to generate.