From 277b0ca9ad75270f7b5af84d7c65598742b2c970 Mon Sep 17 00:00:00 2001 From: Zakir Hossain Date: Wed, 11 Mar 2026 21:09:44 +0600 Subject: [PATCH] Add RPM packaging support for RHEL-based systems --- rpm/technitium.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 rpm/technitium.spec diff --git a/rpm/technitium.spec b/rpm/technitium.spec new file mode 100644 index 00000000..340a6bc0 --- /dev/null +++ b/rpm/technitium.spec @@ -0,0 +1,76 @@ +%global _enable_debug_package 0 +%define debug_package %{nil} + +Name: technitium +Version: 14.3 +Release: 1%{?dist} +Summary: Technitium DNS Server + +License: GPL +URL: https://technitium.com +Source0: %{name}-%{version}.tar.xz + +BuildArch: x86_64 +Requires: aspnetcore-runtime-9.0 +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd + +%description +Technitium DNS Server is an open-source authoritative and recursive DNS server +that can be installed on Linux systems using .NET runtime. + +%prep +#%setup -q -n %{name}-%{version} +%setup -q + +%build +# Nothing to build + +%install +rm -rf %{buildroot} + +# Create directories +mkdir -p %{buildroot}/etc/technitium/dns + +# Copy application files +cp -r * %{buildroot}/etc/technitium/dns/ + +# Create systemd directory +mkdir -p %{buildroot}/usr/lib/systemd/system + +# Create systemd service file +cat > %{buildroot}/usr/lib/systemd/system/technitium.service < 14.3-1 +- Initial RPM build for Technitium DNS Server 14.3-1