Skip to content

Instantly share code, notes, and snippets.

@adamrights
Created May 16, 2014 18:52
Show Gist options
  • Save adamrights/71cf13411d4b2d710cda to your computer and use it in GitHub Desktop.
Save adamrights/71cf13411d4b2d710cda to your computer and use it in GitHub Desktop.
#source: http://blog.leog.in/index.php/build-rpm-without-breaking-head/
Name: Tengine
Version: 1.5.1
Release: 1%{?dist}
Summary: Tengine web server forked out of Nginx
Group: Applications/Internet
License: open BSD license
URL: http://tengine.taobao.org/download.html
Source0: tengine-1.5.1.tar.gz
#BuildRequires:
#Requires:
%description
Tengine by taboa which enables dso support for nginx
%prep
%setup -n tengine-1.5.1
%build
%_configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%doc README
%config(noreplace) /usr/local/nginx/conf/*
/usr/local/nginx/html/
/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/dso_tool
%changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment