2006-12-19 00:15:55 +01:00
|
|
|
#
|
2011-06-16 10:41:44 +02:00
|
|
|
# spec file for package fillup
|
2006-12-19 00:15:55 +01:00
|
|
|
#
|
2020-01-15 10:48:19 +01:00
|
|
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:55 +01:00
|
|
|
#
|
2008-10-23 04:30:44 +02:00
|
|
|
# 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.
|
|
|
|
|
2020-01-15 10:48:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:55 +01:00
|
|
|
#
|
|
|
|
|
2011-10-04 11:59:08 +02:00
|
|
|
|
2017-11-24 08:04:30 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2006-12-19 00:15:55 +01:00
|
|
|
Name: fillup
|
|
|
|
Version: 1.42
|
2012-02-09 08:43:10 +01:00
|
|
|
Release: 0
|
2006-12-19 00:15:55 +01:00
|
|
|
Summary: Tool for Merging Config Files
|
2020-01-15 10:48:19 +01:00
|
|
|
License: GPL-2.0-or-later
|
2012-02-09 08:43:10 +01:00
|
|
|
Group: System/Base
|
2014-10-26 10:32:03 +01:00
|
|
|
Url: http://github.com/openSUSE/fillup
|
2006-12-19 00:15:55 +01:00
|
|
|
Source: fillup-%{version}.tar.bz2
|
2014-10-26 10:32:03 +01:00
|
|
|
Patch0: fillup-optflags.patch
|
2006-12-19 00:15:55 +01:00
|
|
|
Patch1: fillup-warnings.dif
|
|
|
|
Patch2: fillup-%{version}.dif
|
|
|
|
Patch3: fillup-retval.dif
|
2009-12-26 12:19:29 +01:00
|
|
|
Patch4: fillup-nodate.patch
|
2011-06-02 11:40:42 +02:00
|
|
|
Patch5: fillup-1.42-cloexec.patch
|
2020-01-15 10:48:19 +01:00
|
|
|
Patch6: fillup-fno-common.patch
|
2014-11-03 14:10:30 +01:00
|
|
|
Provides: aaa_base:/bin/fillup
|
2006-12-19 00:15:55 +01:00
|
|
|
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
|
2014-10-26 10:32:03 +01:00
|
|
|
%patch0
|
2006-12-19 00:15:55 +01:00
|
|
|
%patch1 -p1
|
2014-10-26 10:32:03 +01:00
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
%patch4
|
2011-06-02 11:40:42 +02:00
|
|
|
%patch5
|
2020-01-15 10:48:19 +01:00
|
|
|
%patch6 -p1
|
2011-06-16 10:41:44 +02:00
|
|
|
|
2006-12-19 00:15:55 +01:00
|
|
|
%build
|
2014-10-26 10:32:03 +01:00
|
|
|
make %{?_smp_mflags} compile COMPILE_OPTION=OPTIMIZE OPTISPLUS="%{optflags}"
|
2006-12-19 00:15:55 +01:00
|
|
|
|
|
|
|
%install
|
2017-11-24 08:04:30 +01:00
|
|
|
mkdir -p %{buildroot}%{_fillupdir}
|
2014-10-26 10:32:03 +01:00
|
|
|
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
|
|
|
|
|
2014-11-03 14:04:24 +01:00
|
|
|
#UsrMerge - 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
|
|
|
|
#EndUserMerge
|
|
|
|
|
2014-10-26 10:32:03 +01:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} test OPTISPLUS="%{optflags}"
|
2006-12-19 00:15:55 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-11-03 14:04:24 +01:00
|
|
|
# rpm scriptlets still use this, based on %*fillup* macros
|
|
|
|
/bin/fillup
|
2012-02-09 08:43:10 +01:00
|
|
|
%{_bindir}/fillup
|
2006-12-19 00:15:55 +01:00
|
|
|
%{_mandir}/man8/fillup*
|
|
|
|
|
2008-10-23 04:30:44 +02:00
|
|
|
%changelog
|