]> git.pld-linux.org Git - packages/WebGUI.git/blame_incremental - WebGUI.spec
- tabs in preamble
[packages/WebGUI.git] / WebGUI.spec
... / ...
CommitLineData
1%include /usr/lib/rpm/macros.perl
2Summary: Open source content management system (CMS)
3Summary(pl.UTF-8): Wolnodostępny system zarządzania treścią (CMS)
4Name: WebGUI
5Version: 5.5.8
6Release: 0.1
7License: GPL
8Group: Development/Languages/Perl
9Source0: http://files.plainblack.com/downloads/5.x.x/webgui-%{version}.tar.gz
10# Source0-md5: 5869ec579ea7743a44a4429fd9b7e5ed
11URL: http://www.plainblack.com/webgui/
12BuildRequires: rpm-perlprov >= 3.0.3-16
13# BRs for autodeps:
14BuildRequires: perl-Archive-Tar
15BuildRequires: perl-DBI
16BuildRequires: perl-Date-Calc
17BuildRequires: perl-Digest-MD5
18BuildRequires: perl-HTML-Parser
19BuildRequires: perl-libwww
20Requires: perl-Compress-Zlib
21Requires: perl-DBD-mysql
22Requires: perl-base >= 5.6
23# these versions are originally included in package - require these or newer
24Requires: perl-CalendarMonthSimple >= 1.18
25Requires: perl-Convert-ASN1 >= 0.15
26Requires: perl-HTML-TagFilter >= 0.07
27Requires: perl-HTML-Template >= 2.6
28Requires: perl-HTTP-BrowserDetect >= 0.97
29Requires: perl-Parse-PlainConfig >= 1.1
30Requires: perl-Tie-CPHash >= 1.001
31Requires: perl-Tie-IxHash >= 1.21
32Requires: perl-Tree-DAG_Node >= 1.04
33Requires: perl-XML-RSSLite >= 0.11
34Requires: perl-ldap >= 0.25
35BuildArch: noarch
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38# optional
39%define _noautoreq 'perl(Authen::Smb)'
40
41%description
42WebGUI is a content management platform built to allow average
43business users to build and maintain complex web sites. It is modular,
44pluggable, and platform independent. It was designed to allow the
45people who create the content, to manage it online, rather than
46content management taking up the time of the busy IT Staff.
47
48%description -l pl.UTF-8
49WebGUI to platforma zarządzania treścią stworzona, aby umożliwić
50średniej wielkości firmom tworzenie i utrzymywanie skomplikowanych
51serwisów WWW. WebGUI jest systemem modularnym, obsługującym wtyczki i
52niezależnym od platformy. Został zaprojektowany tak, aby pozwolić
53ludziom tworzącym serwisy zarządzać nimi z poziomu przeglądarki,
54zamiast 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
66rm -rf $RPM_BUILD_ROOT
67install -d $RPM_BUILD_ROOT{%{_libdir}/%{name}/sql,%{_sysconfdir}/%{name}}
68
69cp -rf docs/upgrades $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
70install docs/create.sql $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
71gzip -9nf $RPM_BUILD_ROOT%{_libdir}/%{name}/sql{,/upgrades}/*.sql
72
73install etc/WebGUI.conf.original $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/WebGUI.conf
74cp -Prf lib/{Data,WebGUI*} sbin www $RPM_BUILD_ROOT%{_libdir}/%{name}
75
76%clean
77rm -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 md5 mtime size) %{_sysconfdir}/%{name}/WebGUI.conf
84%{_libdir}/%{name}
This page took 0.032062 seconds and 4 git commands to generate.