Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:weberho:branches:server:php:applications
processwire3
processwire3.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File processwire3.spec of Package processwire3
# # spec file for package processwire3 # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define package_shared %{_datadir}/%{name} %if 0%{?suse_version} %define processwire_base /srv/www/%{name} %else %define processwire_base %{_localstatedir}/lib/%{name} %endif Name: processwire3 Version: 3.0.241 Release: 0 Summary: Open source CMS License: MIT OR MPL-2.0 Group: Productivity/Networking/Web/Servers URL: https://processwire.com/ Source: https://github.com/processwire/processwire/archive/dev.tar.gz#/processwire-%{version}.tar.gz #Source: https://github.com/processwire/processwire/archive/%%{version}.tar.gz#/processwire-%%{version}.tar.gz Source1: %{name}-admin BuildRequires: apache-rpm-macros BuildRequires: fdupes BuildRequires: php-devel > 7.0.0 Requires: mod_php_any >= 7.0.0 Requires: php-ctype Requires: php-gd Requires: php-iconv Requires: php-json Requires: php-mysql Requires: php-pdo BuildArch: noarch %if 0%{?suse_version} >= 1330 Requires(pre): user(wwwrun) %endif %description ProcessWire is a free PHP5 content management system and framework (open source CMS/CMF) built to save you time and work the way you do. Stop trying to bend other open source CMS platforms to your will – ProcessWire gives simpler and stronger control over your pages, fields, templates and markup at any scale. And it provides a powerful template system that works the way you already do. ProcessWire’s jQuery-inspired API makes working with your content easy and enjoyable. Managing and developing a site in ProcessWire is shockingly simple–and fun–compared to what you may be used to. %prep %setup -q -T -c processwire-%{version} tar --strip-components=1 -xzf %{SOURCE0} # allow symlinked index.php file sed -i -e 's/\$rootPath = __DIR__\;/\$rootPath = getcwd();/' index.php # remove unused file rm -f wire/core/.phpstorm.meta.php wire/.editorconfig # remove zero-length files for F in breadcrumb.css nav.css pw-inputfields-asmselect.css pw-inputfields-button.css \ pw-inputfields-colors.css pw-inputfields-horizontal.css pw-inputfields-image.css \ pw-inputfields-language.css pw-inputfields-misc.css pw-inputfields-repeater.css \ pw-inputfields.css pw-jquery-ui-custom.css pw-misc.css pw-mobile.css \ pw-process.css uk-form.css uk-text.css ; do rm -f "wire/modules/AdminTheme/AdminThemeUikit/uikit-pw/pw/$F" done rm -f wire/modules/AdminTheme/AdminThemeUikit/uikit/dist/js/components/.gitkeep %build %install mkdir -p %{buildroot}%{package_shared} cp -r * %{buildroot}%{package_shared}/ %fdupes %{buildroot}%{package_shared}/wire/ %fdupes %{buildroot}%{package_shared}/site* mkdir -p %{buildroot}%{_bindir} install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/ sed -i -e 's|apache_sysconfdir|%{apache_sysconfdir}| ; s|processwire_base|%{processwire_base}| ; s|apache_user|%{apache_user}| ; s|apache_group|%{apache_group}|' \ %{buildroot}%{_bindir}/%{name}-admin mkdir -p %{buildroot}%{apache_sysconfdir}/conf.d # remove and rebuild site rm -rf %{buildroot}%{processwire_base} mkdir -p `dirname %{buildroot}%{processwire_base}` %{buildroot}%{_bindir}/%{name}-admin install %{processwire_base} --prefix %{buildroot} | sed -e 's/^\t// ; s/\(RewriteRule .* index.php?it=\$1 \[L,QSA\]\)/\# \1/ ; s/# \(RewriteRule .* \)\(\/index.php?it=\$1 \[L,QSA\]\)/\1 \/processwire\2/ ' \ > %{buildroot}%{apache_sysconfdir}/conf.d/%{name}.conf # remove site and install scripts; this will be copied in empty installations rm -rf %{buildroot}%{processwire_base}/webroot/site %{buildroot}%{processwire_base}/webroot/install.php %post # install installation packages when no site has been configured if [ ! -d %{processwire_base}/webroot/site ] ; then cp -a %{package_shared}/site-blank %{processwire_base}/webroot/site cp -a %{package_shared}/install.php %{processwire_base}/webroot/ chown -R %{apache_user}: %{processwire_base}/webroot/ fi %files %defattr(0644, root, root, 0755) %dir /srv/www %license LICENSE.TXT %doc CONTRIBUTING.md README.md %dir %{apache_sysconfdir} %dir %{apache_sysconfdir}/conf.d %config(noreplace) %{apache_sysconfdir}/conf.d/%{name}.conf %{package_shared} %exclude %{package_shared}/CONTRIBUTING.md %exclude %{package_shared}/LICENSE.TXT %exclude %{package_shared}/README.md %attr(0750,root,root) %{_bindir}/%{name}-admin %defattr(0644, %{apache_user}, %{apache_group}, 0755) %{processwire_base} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor