#This is simple spec file for lighttpd
%define _topdir /home/rpmubild
Name: lighttpd
Version: 1.4.32
Release: 1%{?dist}
Summary:A light http server
License: BSD
URL: http://www.lighttpd.net/
Source0: %{name}-%{version}.tar.gz
Group: Development/Tools
Prefix: /usr/local
BuildRoot: %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}%{?dist}.%{_arch}
#BuildRequires: prc-devel>=8
#Requires: pcre>=8
%description
Lighttpd is a secure,fast,compliant,and very flexible
web-server that has been optimized for high-performance environments
#%package -n devel
#Summary: Header files for lighttpd development
#Group: Development/Libraries
#Requires: %{name}=%{version}-%{release}
#%description -n devel
#The lighttpd-devel package contains the header files #needed to develop plugin that used by lighttpd server.
%prep
%setup -q
%build
./configure --prefix=%{prefix} --libdir=%{prefix}/lib64
make %{?_smp+mflags}
%install
rm -rf
R
P
M
B
U
I
L
D
R
O
O
T
m
a
k
e
i
n
s
t
a
l
l
D
E
S
T
D
I
R
=
RPM_BUILD_ROOT make install DESTDIR=
RPMBUILDROOTmakeinstallDESTDIR=RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{prefix}/sbin/lighttpd
%{prefix}/sbin/lighttpd-angel
%{prefix}/lib64/.so
%{prefix}/lib64/.la
%{prefix}/share/man/man8/lighttpd.8
spec文件模板
最新推荐文章于 2025-02-19 09:36:37 发布