]> git.pld-linux.org Git - packages/WebGUI.git/commitdiff
- new, needs some work
authormis <mis@pld-linux.org>
Tue, 18 Feb 2003 23:20:20 +0000 (23:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    WebGUI.spec -> 1.1

WebGUI.spec [new file with mode: 0644]

diff --git a/WebGUI.spec b/WebGUI.spec
new file mode 100644 (file)
index 0000000..8261029
--- /dev/null
@@ -0,0 +1,54 @@
+%include       /usr/lib/rpm/macros.perl
+Summary:       Open source content management system (CMS)
+Name:          WebGUI
+Version:       5.1.1
+Release:       0.1
+License:       GPL
+Group:         Development/Languages/Perl
+URL:           http://www.plainblack.com/webgui
+Source0:       http://files.plainblack.com/downloads/5.x.x/webgui-%{version}.tar.gz
+Patch0:                %{name}-etc.patch
+BuildRequires: perl >= 5.6
+BuildRequires: rpm-perlprov >= 3.0.3-16
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+WebGUI is a content management platform built to allow average
+business users to build and maintain complex web sites. It is modular,
+pluggable, and platform independent. It was designed to allow the
+people who create the content, to manage it online, rather than
+content management taking up the time of the busy IT Staff.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p0
+
+perl -pi -e 's|/data/WebGUI|%{_libdir}/WebGUI|' sbin/preload.perl etc/WebGUI.conf*
+perl -pi -e 's|configFile\s+=\s+\"WebGUI.conf\"|configFile = \"%{_sysconfdir}/WebGUI/WebGUI.conf\"|' www/index.pl
+perl -pi -e 's|webguiRoot\s*=\s*\".+?\"|webguiRoot = \"%{_libdir}/WebGUI\"|' www/index.pl
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+
+rm docs/license.txt
+mv docs/upgrades $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
+mv docs/create.sql $RPM_BUILD_ROOT%{_libdir}/%{name}/sql
+
+mv etc/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+rmdir etc
+cp -av . $RPM_BUILD_ROOT%{_libdir}/%{name}
+rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/docs
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc docs/*
+%{_sysconfdir}/%{name}
+%{_libdir}/%{name}
This page took 0.078901 seconds and 4 git commands to generate.