]> git.pld-linux.org Git - packages/WebGUI.git/blob - WebGUI.spec
- for test
[packages/WebGUI.git] / WebGUI.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Open source content management system (CMS)
3 Summary(pl.UTF-8):      Wolnodostępny system zarządzania treścią (CMS)
4 Name:           WebGUI
5 Version:        7.3.20
6 Release:        0.1
7 License:        GPL
8 Group:          Development/Languages/Perl
9 Source0:        http://dl.sourceforge.net/pbwebgui/webgui-%{version}-stable.tar.gz
10 # Source0-md5:  daa844679d2a2d9dc55a93afc15022fb
11 URL:            http://www.webgui.org/
12 BuildRequires:  rpm-perlprov >= 3.0.3-16
13 # BRs for autodeps:
14 BuildRequires:  perl-Archive-Tar >= 1.05
15 BuildRequires:  perl-DBI >= 1.40
16 BuildRequires:  perl-Date-Calc
17 BuildRequires:  perl-Digest-MD5 >= 2.20
18 BuildRequires:  perl-HTML-Parser >= 3.36
19 BuildRequires:  perl-libwww
20 Requires:       perl-Compress-Zlib
21 Requires:       perl-DBD-mysql >= 3.0002
22 Requires:       perl-base >= 5.6
23 # these versions are originally included in package - require these or newer
24 Requires:       perl-CalendarMonthSimple >= 1.18
25 Requires:       perl-Convert-ASN1 >= 0.15
26 Requires:       perl-HTML-TagFilter >= 0.07
27 Requires:       perl-HTML-Template >= 2.6
28 Requires:       perl-HTTP-BrowserDetect >= 0.97
29 Requires:       perl-JSON >= 0.991
30 Requires:       perl-POE-Component-Client-HTTP >= 0.77
31 Requires:       perl-POE-Component-IKC >= 0.18
32 Requires:       perl-Parse-PlainConfig >= 1.1
33 Requires:       perl-Pod-Coverage >= 0.17
34 Requires:       perl-Tie-CPHash >= 1.001
35 Requires:       perl-Tie-IxHash >= 1.21
36 Requires:       perl-Tree-DAG_Node >= 1.04
37 Requires:       perl-XML-RSSLite >= 0.11
38 Requires:       perl-ldap >= 0.25
39 BuildArch:      noarch
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 # optional
43 %define         _noautoreq      'perl(Authen::Smb)' 'perl(WebGUI::AssetBranch' 'perl(WebGUI::AssetClipboard)' 'perl(WebGUI::AssetExportHtml)' 'perl(WebGUI::AssetLineage)' 'perl(WebGUI::AssetMetaData)' 'perl(WebGUI::AssetPackage)' 'perl(WebGUI::AssetTrash)' 'perl(WebGUI::AssetVersioning)'
44
45 %description
46 WebGUI is a content management platform built to allow average
47 business users to build and maintain complex web sites. It is modular,
48 pluggable, and platform independent. It was designed to allow the
49 people who create the content, to manage it online, rather than
50 content management taking up the time of the busy IT Staff.
51
52 %description -l pl.UTF-8
53 WebGUI to platforma zarządzania treścią stworzona, aby umożliwić
54 średniej wielkości firmom tworzenie i utrzymywanie skomplikowanych
55 serwisów WWW. WebGUI jest systemem modularnym, obsługującym wtyczki i
56 niezależnym od platformy. Został zaprojektowany tak, aby pozwolić
57 ludziom tworzącym serwisy zarządzać nimi z poziomu przeglądarki,
58 zamiast zajmować czas i tak już zajętym informatykom.
59
60 %prep
61 %setup -q -n %{name}
62
63 %{__perl} -pi -e 's|/data/WebGUI|%{_libdir}/WebGUI|' sbin/preload.perl etc/WebGUI.conf*
64 ##%{__perl} -pi -e 's|configFile\s+=\s+\"WebGUI.conf\"|configFile = \"%{_sysconfdir}/WebGUI/WebGUI.conf\"|' www/index.pl
65 %{__perl} -pi -e "s|(\\\$session\{config\}\{webguiRoot\}\s*\.\s*'%{_sysconfdir}/'\s*\.)||g;" \
66         lib/WebGUI/Session.pm
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_libdir}/%{name}/sql,%{_libdir}/%{name}/lib,%{_sysconfdir}/%{name},%{perl_vendorlib}}
71
72 cp -rf docs/upgrades $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
73 install docs/create.sql $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
74 #gzip -9nf $RPM_BUILD_ROOT%{_libdir}/%{name}/sql{,/upgrades}/*.sql
75
76 install etc/WebGUI.conf.original $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/WebGUI.conf
77 install etc/spectre.conf.original $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/spectre.conf
78 cp -Prf sbin t www $RPM_BUILD_ROOT%{_libdir}/%{name}
79 cp -Prf lib/WebGUI $RPM_BUILD_ROOT%{_libdir}/%{name}/lib
80 cp -Prf lib/Spectre $RPM_BUILD_ROOT%{perl_vendorlib}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc docs/{changelog,credits.txt,gotcha.txt,install.txt,legal.txt}
88 %dir %{_sysconfdir}/%{name}
89 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/WebGUI.conf
90 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/spectre.conf
91 %{_libdir}/%{name}
92 %{perl_vendorlib}/Spectre/*.pm
This page took 0.520018 seconds and 3 git commands to generate.