# # spec file for package issue-generator # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: issue-generator Version: 1.3 Release: 0 Summary: Generates an issue files from different snippets License: GPL-2.0+ Group: System/Base Url: https://github.com/thkukuk/issue-generator Source: %{name}-%{version}.tar.bz2 BuildRequires: fdupes Requires(post): %fillup_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %{?systemd_requires} %description issue-generator is a tool to create an issue file dynamically. %prep %setup -q %build %configure make %{?_smp_mflags} %install make %{?_smp_mflags} DESTDIR=%{buildroot} install ln -sf service %{buildroot}%{_sbindir}/rcissue-generator ln -sf service %{buildroot}%{_sbindir}/rcissue-add-ssh-keys mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates install -m 644 udev/sysconfig.issue-generator %{buildroot}%{_localstatedir}/adm/fillup-templates/ %fdupes %{buildroot}%{_mandir} %pre %service_add_pre issue-generator.service issue-add-ssh-keys.service %post %{_bindir}/systemd-tmpfiles --create issue-generator.conf ||: %{fillup_only -n issue-generator} %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 %defattr(-,root,root) %doc NEWS COPYING README.md %ghost %{_sysconfdir}/issue %dir %{_sysconfdir}/issue.d %dir %{_prefix}/lib/issue.d %dir %{_prefix}/lib/tmpfiles.d %dir %{_prefix}/lib/udev %dir %{_prefix}/lib/udev/rules.d %{_localstatedir}/adm/fillup-templates/sysconfig.issue-generator %{_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 %{_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} %changelog