2016-11-28 15:40:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package issue-generator
|
|
|
|
#
|
2019-01-11 15:07:35 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-11-28 15:40:45 +01: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.
|
|
|
|
|
2019-01-11 15:07:35 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-28 15:40:45 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: issue-generator
|
2019-01-11 15:07:35 +01:00
|
|
|
Version: 1.7
|
2016-11-28 15:40:45 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Generates an issue files from different snippets
|
2018-02-23 13:05:36 +01:00
|
|
|
License: GPL-2.0-or-later
|
2017-03-28 13:15:49 +02:00
|
|
|
Group: System/Base
|
|
|
|
Url: https://github.com/thkukuk/issue-generator
|
2018-06-04 11:16:38 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2017-03-28 13:15:49 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
Requires(post): %fillup_prereq
|
2016-11-28 15:40:45 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
issue-generator is a tool to create an issue file dynamically.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2017-03-28 13:15:49 +02:00
|
|
|
make %{?_smp_mflags}
|
2017-12-13 12:06:40 +01:00
|
|
|
%ifarch s390x
|
|
|
|
# Adjust regex in sysconfig/issue-generator for s390x
|
|
|
|
sed -i -e 's|NETWORK_INTERFACE_REGEX=.*|NETWORK_INTERFACE_REGEX="^[beqich]"|g' udev/sysconfig.issue-generator
|
|
|
|
%endif
|
2016-11-28 15:40:45 +01:00
|
|
|
|
|
|
|
%install
|
2018-02-23 13:05:36 +01:00
|
|
|
%make_install
|
2017-03-28 13:15:49 +02:00
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcissue-generator
|
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcissue-add-ssh-keys
|
2017-11-23 16:12:59 +01:00
|
|
|
mkdir -p %{buildroot}%{_fillupdir}
|
|
|
|
install -m 644 udev/sysconfig.issue-generator %{buildroot}%{_fillupdir}/
|
2017-03-28 13:15:49 +02:00
|
|
|
%fdupes %{buildroot}%{_mandir}
|
2016-11-28 15:40:45 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre issue-generator.service issue-add-ssh-keys.service
|
|
|
|
|
|
|
|
%post
|
2017-11-28 13:11:12 +01:00
|
|
|
%tmpfiles_create issue-generator.conf
|
2017-03-28 13:15:49 +02:00
|
|
|
%{fillup_only -n issue-generator}
|
2016-11-28 15:40:45 +01:00
|
|
|
%service_add_post issue-generator.service issue-add-ssh-keys.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun issue-generator.service issue-add-ssh-keys.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun issue-generator.service issue-add-ssh-keys.service
|
|
|
|
|
|
|
|
%files
|
2018-02-23 13:05:36 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README.md
|
2017-05-31 15:30:24 +02:00
|
|
|
#%ghost %{_sysconfdir}/issue
|
2017-03-28 13:15:49 +02:00
|
|
|
%dir %{_sysconfdir}/issue.d
|
|
|
|
%dir %{_prefix}/lib/issue.d
|
|
|
|
%dir %{_prefix}/lib/tmpfiles.d
|
|
|
|
%dir %{_prefix}/lib/udev
|
|
|
|
%dir %{_prefix}/lib/udev/rules.d
|
2017-11-23 16:12:59 +01:00
|
|
|
%{_fillupdir}/sysconfig.issue-generator
|
2017-03-28 13:15:49 +02:00
|
|
|
%{_prefix}/lib/tmpfiles.d/issue-generator.conf
|
|
|
|
%{_prefix}/lib/udev/rules.d/90-issue-generator.rules
|
|
|
|
%{_prefix}/lib/systemd/system/issue-add-ssh-keys.service
|
2019-01-11 15:07:35 +01:00
|
|
|
%{_prefix}/lib/systemd/system/issue-generator.path
|
2017-03-28 13:15:49 +02:00
|
|
|
%{_prefix}/lib/systemd/system/issue-generator.service
|
|
|
|
%{_sbindir}/issue-generator
|
|
|
|
%{_sbindir}/rcissue-generator
|
|
|
|
%{_sbindir}/rcissue-add-ssh-keys
|
|
|
|
%{_mandir}/man5/issue.d.5%{ext_man}
|
|
|
|
%{_mandir}/man8/issue-generator.8%{ext_man}
|
|
|
|
%{_mandir}/man8/90-issue-generator.rules.8%{ext_man}
|
|
|
|
%{_mandir}/man8/issue-add-ssh-keys.service.8%{ext_man}
|
|
|
|
%{_mandir}/man8/issue-generator.conf.8%{ext_man}
|
|
|
|
%{_mandir}/man8/issue-generator.service.8%{ext_man}
|
2016-11-28 15:40:45 +01:00
|
|
|
|
|
|
|
%changelog
|