forked from pool/fillup
Marcus Meissner
ea5e6ea38d
- remove bin symlink for non-suse distributions - use https as url - Replace references to /var/adm/fillup-templates with new - fix missing return value in test-code (#139594) - silence some compiler warnings (#95370) - additional Keyword: PreSaveCommand - update to 1.38 with additional MetaData keywords - switch behaviour to "fixed sequence of metadata" (#25119) - fix watchdog for removal part (factor 2 needed) - update to 1.22 (avoid possible infinite loop on failure) (#24648) - fix for stale comment when removing variable (#24540) - added install-info macros - update to 1.20 beta (aka prototype) - split off aaa_base OBS-URL: https://build.opensuse.org/request/show/1139525 OBS-URL: https://build.opensuse.org/package/show/Base:System/fillup?expand=0&rev=36
89 lines
2.6 KiB
RPMSpec
89 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package fillup
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
%if ! %{defined _fillupdir}
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
%endif
|
|
|
|
Name: fillup
|
|
Version: 1.42
|
|
Release: 0
|
|
Summary: Tool for Merging Config Files
|
|
License: GPL-2.0-or-later
|
|
Group: System/Base
|
|
URL: https://github.com/openSUSE/fillup
|
|
Source: fillup-%{version}.tar.bz2
|
|
Patch0: fillup-optflags.patch
|
|
Patch1: fillup-warnings.dif
|
|
Patch2: fillup-%{version}.dif
|
|
Patch3: fillup-retval.dif
|
|
Patch4: fillup-nodate.patch
|
|
Patch5: fillup-1.42-cloexec.patch
|
|
Patch6: fillup-fno-common.patch
|
|
Provides: aaa_base:/bin/fillup
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
fillup merges files that hold variables. A variable is defined by an
|
|
entity composed of a preceding comment, a variable name, an assignment
|
|
delimiter, and a related variable value. A variable is determined by
|
|
its variable name.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1 -p1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch6 -p1
|
|
|
|
%build
|
|
make %{?_smp_mflags} compile COMPILE_OPTION=OPTIMIZE OPTISPLUS="%{optflags}"
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_fillupdir}
|
|
install -d -m 755 %{buildroot}/%{_bindir}
|
|
install -m 755 BIN/fillup %{buildroot}/%{_bindir}
|
|
install -d %{buildroot}/%{_mandir}/man8
|
|
install -m 644 SGML/fillup.8.gz %{buildroot}/%{_mandir}/man8
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
|
# There are literally hundreds of rpm scritps referencing /bin/fillup (suse macro)
|
|
# So let's at least keep the symlink there for now (DimStar - 2014-10-31)
|
|
install -d -m 755 $RPM_BUILD_ROOT/bin
|
|
ln -sf %{_bindir}/fillup $RPM_BUILD_ROOT/bin
|
|
%endif
|
|
|
|
%check
|
|
# Makefile is not parallel-safe
|
|
make test OPTISPLUS="%{optflags}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
# rpm scriptlets still use this, based on %*fillup* macros
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
|
/bin/fillup
|
|
%endif
|
|
%{_bindir}/fillup
|
|
%{_mandir}/man8/fillup*
|
|
|
|
%changelog
|