36 lines
1.2 KiB
RPMSpec
36 lines
1.2 KiB
RPMSpec
|
|
Name: ispmanager-plugin-nginx_mod_rewrite_plugin
|
||
|
|
Version: 0.0.1
|
||
|
|
Release: 1%{?dist}
|
||
|
|
Summary: Модуль nginx mod_rewrite
|
||
|
|
License: Apache License 2.0
|
||
|
|
URL: https://github.com/bayrepo/ngx_http_apache_rewrite_module
|
||
|
|
Source0: %{name}-%{version}.tar.gz
|
||
|
|
BuildRequires: wget
|
||
|
|
|
||
|
|
%description
|
||
|
|
Модуль добавления поддержки mod_rewrite правил и .htaccess в nginx
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q
|
||
|
|
|
||
|
|
%build
|
||
|
|
# nothing to build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p %{buildroot}/usr/local/mgr5/etc/plugins/ispmgr
|
||
|
|
mkdir -p %{buildroot}/usr/local/mgr5/addon
|
||
|
|
cp -a ispmgr/* %{buildroot}/usr/local/mgr5/etc/plugins/ispmgr/
|
||
|
|
cp -a nginx_mod_rewrite_plugin.py %{buildroot}/usr/local/mgr5/addon/
|
||
|
|
mkdir -p %{buildroot}/usr/local/ispmanager-mod_rewrite
|
||
|
|
wget -O %{buildroot}/usr/local/ispmanager-mod_rewrite/mod_rewrite.zip https://github.com/bayrepo/ngx_http_apache_rewrite_module/archive/refs/heads/main.zip
|
||
|
|
|
||
|
|
%files
|
||
|
|
/usr/local/mgr5/etc/xml/ispmgr_mod_nginx_mod_rewrite_plugin.xml
|
||
|
|
/usr/local/mgr5/etc/plugins/ispmgr/nginx_mod_rewrite_plugin.xml
|
||
|
|
%attr(700, root, root) /usr/local/mgr5/addon/nginx_mod_rewrite_plugin.py
|
||
|
|
%attr(600, root, root) /usr/local/ispmanager-mod_rewrite/mod_rewrite.zip
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Jun 29 2026 Alexey BayRepo <a@bayrepo.ru> - 0.0.1-1
|
||
|
|
- Initial release
|