File: sysconftool.spec.in

package info (click to toggle)
sysconftool 0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 496 kB
  • sloc: sh: 508; perl: 356; makefile: 172
file content (50 lines) | stat: -rw-r--r-- 1,363 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 2000-2005 Double Precision, Inc.  See COPYING for
# distribution information.

Summary: sysconftool configuration tool
Name: sysconftool
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
License: GPL
Group: Development/Tools
Source: sysconftool-@PACKAGE_VERSION@.tar.bz2
BuildRoot: /var/tmp/sysconftool-install
BuildArch: noarch
BuildRequires: automake
BuildRequires: %{__make}

%define need_perl_generators %(if rpm -q fedora-release >/dev/null 2>/dev/null; then echo "1"; exit 0; fi; echo "0"; exit 1)

%if %need_perl_generators
BuildRequires: perl-generators
%endif

%description
sysconftool is a script that is used by applications to update configuration
files when a new version of the application is installed. sysconftool reads
the new application configuration files, reads any older versions of those
files that are already installed, then replaces the old versions with the
new ones, but preserving any custom changes contained in the old versions.

%prep
%setup
%build
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(-, bin, bin)
%{_datadir}/sysconftool
%{_bindir}/*
%{_mandir}/*/*
%(aclocal --print-ac-dir)/*
%doc AUTHORS COPYING ChangeLog NEWS README *.html
%clean
rm -rf $RPM_BUILD_ROOT

%changelog

* Tue Nov 22 2022 Sam Varshavchik <mrsam@courier-mta.com>
- Use relative symlinks