Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lrupp
phpipam
phpipam.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File phpipam.spec of Package phpipam
# # spec file for package phpipam # # Copyright (c) 2021 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/ # Name: phpipam Version: 1.6.0 Release: 0 Summary: Open source IP address management License: GPL-3.0-or-later Group: Productivity/Networking/Web/Frontends URL: https://phpipam.net/ Source0: https://github.com/phpipam/phpipam/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}-http.conf Source2: %{name}-README.SUSE Patch0: %{name}-configpath.patch BuildRequires: apache-rpm-macros BuildRequires: fdupes BuildRequires: systemd Requires: php-gd Requires: php-gettext Requires: php-gmp #Requires: php-SimpleXML #Requires: php-filter Requires: php-json Requires: php-ldap Requires: php-mbstring #Requires: php-crypt Requires: php-mysql Requires: php-openssl Requires: php-pcntl #Requires: php-cli Requires: php-pdo Requires: php-pear Requires: php-session Requires: php-sockets Recommends: mariadb >= 5.5.3 BuildArch: noarch %{?systemd_requires} %description phpipam is an open-source web IP address management application (IPAM). Its goal is to provide light, modern and useful IP address management. It is php-based application with MySQL database backend, using jQuery libraries, ajax and some HTML5/CSS3 features. %package apache Summary: Apache configuration for %{name} Group: Productivity/Networking/Web/Utilities BuildRequires: apache2 Requires: apache2 Requires: %{name} Requires: mod_php_any >= 7.2 Requires: mod_php_any < 8.4 Supplements: (apache2 and %name) %description apache This subpackage contains the Apache configuration files %lang_package %prep %setup -q %patch0 -p1 install -m644 %{SOURCE2} . # rpmlint: fix incorrect-fsf-address find . -type f | xargs sed -i -e 's:59 Temple Place\, Suite 330\, Boston\, MA 02111-1307 USA:51 Franklin Street\, Fifth Floor\, Boston\, MA 02110-1301 USA:g' # rpmlint find . -type f -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \; # Fix: broken symbolic link to cs_CZ.UTF8 (Too many levels of symbolic links) #rm functions/locale/cs_CZ.UTF-8/cs_CZ.UTF8 %build %install # rpmlint: unwanted files rm `find . -name ".gitignore" -or -name ".git" -or -name ".gitattributes" -or -name ".travis.yml" -or -name ".coveralls.yml" -or -name ".scrutinizer.yml"` # install install -d -m0755 %{buildroot}%{apache_serverroot}/%{name} install -d -m0755 %{buildroot}%{_sysconfdir}/%{name} cp -dR * %{buildroot}%{apache_serverroot}/%{name} cp .htaccess %{buildroot}%{apache_serverroot}/%{name} # change paths in config.php and .htaccess sed -i -e 's:'\''BASE'\'', "/":'\''BASE'\'', "/phpipam/":g' %{buildroot}%{apache_serverroot}/%{name}/config.dist.php sed -i -e 's:RewriteBase /:RewriteBase /phpipam/:g' %{buildroot}%{apache_serverroot}/%{name}/.htaccess # install phpmyfaq.conf to apache conf.d install -D -m0640 %{SOURCE1} %{buildroot}%{apache_sysconfdir}/conf.d/%{name}.conf sed -i -e 's|@APACHE_SERVERROOT@|%{apache_serverroot}|g' %{buildroot}%{apache_sysconfdir}/conf.d/%{name}.conf # remove included .htaccess which has been moved to phpipam.conf rm %{buildroot}%{apache_serverroot}/%{name}/.htaccess \ %{buildroot}%{apache_serverroot}/%{name}/api/.htaccess \ %{buildroot}%{apache_serverroot}/%{name}/db/bkp/.htaccess \ %{buildroot}%{apache_serverroot}/%{name}/install/.htaccess \ %{buildroot}%{apache_serverroot}/%{name}/upgrade/.htaccess \ %{buildroot}%{apache_serverroot}/%{name}/app/subnets/import-subnet/upload/.htaccess \ %{buildroot}%{apache_serverroot}/%{name}/app/admin/import-export/upload/.htaccess \ %{buildroot}%{apache_serverroot}/phpipam/css/images/logo/.htaccess # copy phpmyfaq configfiles to sysconfdir install -D -m0640 %{buildroot}%{apache_serverroot}/%{name}/config.dist.php \ %{buildroot}%{_sysconfdir}/%{name}/config.php # generate file list find %{buildroot}%{apache_serverroot}/%{name} -mindepth 1 -maxdepth 1 -type d | sed -e "s@%{buildroot}@@" > FILELIST find %{buildroot}%{apache_serverroot}/%{name} -maxdepth 1 -type f | sed -e "s@%{buildroot}@@" >> FILELIST # rpmlint %fdupes %{buildroot}%{apache_serverroot}/%{name} # find language files %find_lang %{name} --all-name %post apache chown -R %{apache_user}:%{apache_group} %{apache_serverroot}/%{name} %service_add_post apache2.service %postun apache %service_del_postun apache2.service %files -f FILELIST %defattr(640,root,root,750) %doc %{name}-README.SUSE %doc doc/ %dir %attr(0770,root,%{apache_group}) %{_sysconfdir}/%{name} %config(noreplace) %attr(640,%{apache_user},%{apache_group}) %{_sysconfdir}/%{name}/* %dir %attr(0750,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name} %exclude %{apache_serverroot}/%{name}/functions/locale/*/LC_MESSAGES/%{name}.mo %files apache %config(noreplace) %{apache_sysconfdir}/conf.d/%{name}.conf %files lang -f %{name}.lang %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