From 6c7d0668d6dd0ae7f7b81580885e0acbd491daf3 Mon Sep 17 00:00:00 2001 From: "Michael R. Davis" Date: Fri, 30 Aug 2019 05:36:22 +0000 Subject: [PATCH 1/2] mod_psgi-0.0.1-2 - Added file mod_psgi.spec - Added file 01-psgi.conf - Updated Makefile.in to support rpmbuild --- 01-psgi.conf | 1 + mod_psgi.spec | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 01-psgi.conf create mode 100644 mod_psgi.spec diff --git a/01-psgi.conf b/01-psgi.conf new file mode 100644 index 0000000..ee6fef4 --- /dev/null +++ b/01-psgi.conf @@ -0,0 +1 @@ +LoadModule psgi_module modules/mod_psgi.so diff --git a/mod_psgi.spec b/mod_psgi.spec new file mode 100644 index 0000000..7511375 --- /dev/null +++ b/mod_psgi.spec @@ -0,0 +1,34 @@ +Name: mod_psgi +Version: 0.0.0 +Release: 1%{?dist} +Summary: Perl PSGI modules for the Apache HTTP Server + +Group: System Environment/Daemons +License: Apache License 2.0 +URL: https://github.com/spiritloose/mod_psgi +Source0: https://github.com/spiritloose/mod_psgi/mod_psgi-0.0.1.tar.gz + +BuildRequires: httpd-devel >= 2.4 +BuildRequires: httpd-devel >= 2.4 +Requires: httpd >= 2.4 + +%description +The mod_psgi module adds support for Perl PSGI to the Apache HTTP Server. + +%prep +%setup -q + +%build +autoconf +%configure +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} + +%files +%defattr(-,root,root) +%{_libdir}/httpd/modules/mod_psgi.so +%config(noreplace) %{_sysconfdir}/httpd/conf.modules.d/01-psgi.conf + +%changelog From 8bb6eba4251756b3777bb61ef0f334f7ed020508 Mon Sep 17 00:00:00 2001 From: "Michael R. Davis" Date: Fri, 30 Aug 2019 05:50:12 +0000 Subject: [PATCH 2/2] mod_psgi-0.0.1-2 - Updated Makefile.in - Updated mod_psgi.spec --- Makefile.in | 6 +++--- mod_psgi.spec | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile.in b/Makefile.in index 56bc071..2653bc5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -51,12 +51,12 @@ stop: DIST_DIR=$(PACKAGE_NAME)-$(PACKAGE_VERSION) DIST_FILE=$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar -dist: ppport.h configure +dist: ppport.h configure 01-psgi.conf mod_psgi.spec rm -f $(DIST_FILE) git archive --format=tar --prefix=$(DIST_DIR)/ HEAD > $(DIST_FILE) mkdir $(DIST_DIR) - cp ppport.h configure $(DIST_DIR) - tar rf $(DIST_FILE) $(DIST_DIR)/ppport.h $(DIST_DIR)/configure + cp ppport.h configure 01-psgi.conf mod_psgi.spec $(DIST_DIR) + tar rf $(DIST_FILE) $(DIST_DIR)/ppport.h $(DIST_DIR)/configure $(DIST_DIR)/01-psgi.conf $(DIST_DIR)/mod_psgi.spec rm -fr $(DIST_DIR) gzip --best $(DIST_FILE) diff --git a/mod_psgi.spec b/mod_psgi.spec index 7511375..862570f 100644 --- a/mod_psgi.spec +++ b/mod_psgi.spec @@ -1,6 +1,6 @@ Name: mod_psgi -Version: 0.0.0 -Release: 1%{?dist} +Version: 0.0.1 +Release: 2%{?dist} Summary: Perl PSGI modules for the Apache HTTP Server Group: System Environment/Daemons @@ -25,6 +25,11 @@ make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} +mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.modules.d/ +cp 01-psgi.conf %{buildroot}/%{_sysconfdir}/httpd/conf.modules.d/ + +%post +service httpd reload %files %defattr(-,root,root)