initial pkg
This commit is contained in:
commit
e2db47ec4b
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/lexiserver-1.1.0.tar.gz
|
65
lexiserver.spec
Normal file
65
lexiserver.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
Name: lexiserver
|
||||||
|
Version: 1.1.0
|
||||||
|
Release: 1%{dist}
|
||||||
|
Summary: A webserver written in C that tries to keep it simple
|
||||||
|
|
||||||
|
License: GPL-3.0-only
|
||||||
|
|
||||||
|
URL: https://github.com/alexiarstein/simple-webserver
|
||||||
|
Source: lexiserver-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: annobin-plugin-gcc
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: file
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
LexiServer is a webserver written in C that tries to keep it simple. It supports TLS and executing CGI scripts.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for lexiserver
|
||||||
|
%description devel
|
||||||
|
The development files for compiling against lexiserver
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
|
||||||
|
pushd redhat-linux-build
|
||||||
|
install -p -D -m 0755 lexiserver %{buildroot}%{_bindir}/lexiserver
|
||||||
|
popd
|
||||||
|
|
||||||
|
for f in 404.html lexiserver.conf; do
|
||||||
|
install -p -D -m 0644 $f %{buildroot}/opt/lexiserver/$f
|
||||||
|
done
|
||||||
|
|
||||||
|
pushd src
|
||||||
|
for f in *.c; do
|
||||||
|
install -p -D -m 0644 $f %{buildroot}/%{_includedir}/$f
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
|
%check
|
||||||
|
%ctest
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md RASPBERRY.md
|
||||||
|
%dir /opt/lexiserver
|
||||||
|
/opt/lexiserver/404.html
|
||||||
|
%config(noreplace) /opt/lexiserver/lexiserver.conf
|
||||||
|
%{_bindir}/lexiserver
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/lexiserver*.c
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Mar 28 2024 Neil Hanlon <neil@shrug.pw> - 1.1.0-1
|
||||||
|
- initial package
|
Loading…
Reference in New Issue
Block a user