File: webfs.spec

package info (click to toggle)
webfs 1.21%2Bds1-12
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch, trixie
  • size: 1,188 kB
  • ctags: 1,570
  • sloc: ansic: 3,293; sh: 418; makefile: 20; perl: 7
file content (39 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Name:       webfs
Summary:    lightweight http server for static content
Version:    1.21
Release:    0
Source0:    %{name}-%{version}.tar.gz
Copyright:  GPL
Group:      Network/Daemons
Buildroot:  %{_tmppath}/root-%{name}-%{version}

%description
This is a simple http server for purely static content.  You
can use it to serve the content of a ftp server via http for
example.  It is also nice to export some files the quick way
by starting a http server in a few seconds, without editing
some config file first.

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS"
make prefix=/usr

%install
if test "%{buildroot}" != ""; then
	rm -rf "%{buildroot}"
fi
make prefix=/usr DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
/usr/bin/webfsd
/usr/share/man/man1/webfsd.1*
%doc README COPYING

%clean
if test "%{buildroot}" != ""; then
	rm -rf "%{buildroot}"
fi