File insserv.spec of Package insserv

Name:		insserv
Summary:	Boot sequence organizer
URL:		https://codeberg.org/thejessesmith/insserv
Version:	1.27.0
Release:	1%{?dist}
License:	GPL-2.0-or-later
Group:		System/Boot

Source0:	%{name}-%{version}.tar.xz

Patch0:		insserv-makefile.patch
Patch1:		insserv-boolean.patch
Patch2:		insserv-fix-build-errors.patch

BuildRequires:	dbus-1-devel
BuildRequires:	gcc
Requires:	%{name}-common = %{version}-%{release}

%package common
Summary:	Common files for %{name}
BuildArch:	noarch

%description
insserv is a boot sequence organizer using LSB init.d script dependency
information. It is typically used alongside the SysV init software.

%description common
Common files for %{name}

%prep
%setup -q -n %{name}
#patch -p1 -P 0
#patch -p1 -P 1
#patch -p1 -P 2

%build
make CFLAGS="-std=gnu2x -D_GNU_SOURCE %{optflags}"

%install
rm -rf $RPM_BUILD_ROOT
%make_install CFLAGS="-std=gnu2x -O2 %{optflags}"

%files
%defattr(-, root, root, -)
%{_sbindir}/insserv

%files common
%defattr(-, root, root, -)
%{_sysconfdir}/insserv.conf
%{_mandir}/man8/insserv.8.gz

%changelog
* Wed Oct 29 2025 Kristopher Gamrat <gamrat.kristopher@protonmail.com> 1.27.0-1
- Add missing URL tag
* Wed Oct 29 2025 Kristopher Gamrat <gamrat.kristopher@protonmail.com> 1.27.0-1
- Version bump
* Tue Oct 28 2025 Kristopher Gamrat <gamrat.kristopher@protonmail.com> 1.26.0-3
- Own directory
- Move noarch scripts to noarch package
- Have main package require common package
* Tue Oct 28 2025 Kristopher Gamrat <gamrat.kristopher@protonmail.com> 1.26.0-2
- Correct the License tag
* Sat Oct 18 2025 Kristopher Gamrat <gamrat.kristopher@protonmail.com> 1.26.0-1
- Initial build
openSUSE Build Service is sponsored by