initial pkg

This commit is contained in:
Neil Hanlon 2024-03-28 20:54:32 -04:00 committed by Neil Hanlon
commit e2db47ec4b
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
3 changed files with 67 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/lexiserver-1.1.0.tar.gz

65
lexiserver.spec Normal file
View 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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (lexiserver-1.1.0.tar.gz) = bb03904c58c517949b89eeb4af251644ba72e07e6aa629c08583b4e1d4252596d6bf8ae0622680c5cd50a9285ac8b2b926b2d00770593d5e7b7b147ded4f0958