From 356a27c7221724f49c0ffffd3c2885c09cde1bd6 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Fri, 9 Jul 2010 09:53:48 -0400 Subject: [PATCH] New RPM builder spec file --- monkey.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 monkey.spec diff --git a/monkey.spec b/monkey.spec new file mode 100644 index 0000000..e6b9610 --- /dev/null +++ b/monkey.spec @@ -0,0 +1,59 @@ +%define branch 0.11 +%define webroot /var/www/monkey +%define prefix /usr +%define bindir /usr/bin +%define sysconf /etc/monkey +%define logdir /var/log/monkey +%define plugdir /usr/lib/monkey + +Summary: Monkey is a Fast and Lightweight Web Server for Linux +Name: monkey +Version: 0.11.0 +Packager: Eduardo Silva +Release: 1%{dist} +License: GPL +Group: System Environment/Daemons +Source: http://www.monkey-project.com/releases/%{branch}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +URL: http://www.monkey-project.com + +%description +Monkey is a really fast and lightweight Web Server for Linux. It has been +designed to be very scalable with low memory and CPU consumption, the perfect +solution for embedded and high production environments. + +%prep +%setup +%build +export CFLAGS=$RPM_OPT_FLAGS +./configure \ + --prefix=%{prefix} \ + --bindir=%{bindir} \ + --sysconfdir=%{sysconf} \ + --datadir=%{webroot} \ + --logdir=%{logdir} \ + --plugdir=%{plugdir} + +make + +%install +rm -rf %{buildroot} +install -d %{buildroot}/usr/share/doc + +make DESTDIR=%{buildroot} install + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc README LICENSE ChangeLog* +%attr(644,root,root) %{_sysconfdir}/monkey/* +%{_bindir}/* +%{_libdir}/* +%{_datadir}/* +%{webroot}/* + +%changelog +* Thu Jul 08 2010 Eduardo Silva 0.11.0-1 +- Initial rpm package for Fedora 13 -- 2.11.4.GIT