Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to build rpm from tar ball (CentOS 7) #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 01-psgi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LoadModule psgi_module modules/mod_psgi.so
6 changes: 3 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
39 changes: 39 additions & 0 deletions mod_psgi.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Name: mod_psgi
Version: 0.0.1
Release: 2%{?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}
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)
%{_libdir}/httpd/modules/mod_psgi.so
%config(noreplace) %{_sysconfdir}/httpd/conf.modules.d/01-psgi.conf

%changelog