Browse Source

updated 4 packages

cronie-1.5.5-2

geoclue2-2.5.6-1

kernel-5.4.57-1

rng-tools-6.10-5

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12458 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 3 years ago
parent
commit
ea775eb730
4 changed files with 144 additions and 33 deletions
  1. 51 7
      c/cronie/cronie-vl.spec
  2. 61 11
      g/geoclue2/geoclue2-vl.spec
  3. 18 13
      k/kernel/kernel-vl.spec
  4. 14 2
      r/rng-tools/rng-tools-vl.spec

+ 51 - 7
c/cronie/cronie-vl.spec

@@ -1,3 +1,4 @@
+%bcond_with systemd
 %bcond_with selinux
 %bcond_with selinux
 %bcond_without pam
 %bcond_without pam
 %bcond_without audit
 %bcond_without audit
@@ -6,11 +7,12 @@
 Summary:        Cron daemon for executing programs at set times
 Summary:        Cron daemon for executing programs at set times
 Name:           cronie
 Name:           cronie
 Version:        1.5.5
 Version:        1.5.5
-Release:        1%{?_dist_release}
-Group:          System Environment/Base
+Release:        2%{?_dist_release}%{?with_systemd:.systemd}
+Group:          system
 Vendor:         Project Vine
 Vendor:         Project Vine
 Distribution:   Vine Linux
 Distribution:   Vine Linux
 Packager:       iwaim
 Packager:       iwaim
+
 License:        MIT and BSD and ISC and GPLv2+
 License:        MIT and BSD and ISC and GPLv2+
 URL:            https://github.com/cronie-crond/cronie
 URL:            https://github.com/cronie-crond/cronie
 Source0:        https://github.com/cronie-crond/cronie/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
 Source0:        https://github.com/cronie-crond/cronie/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
@@ -31,10 +33,15 @@ BuildRequires:  pam-devel >= 1.0.1
 %if %{with audit}
 %if %{with audit}
 BuildRequires:  audit-libs-devel >= 1.4.1
 BuildRequires:  audit-libs-devel >= 1.4.1
 %endif
 %endif
-
-Requires(post): coreutils sed
+%if %{with systemd}
+BuildRequires:  systemd
+%{?systemd_requires}
+%else
 Requires(post): chkconfig
 Requires(post): chkconfig
 Requires(preun): chkconfig
 Requires(preun): chkconfig
+%endif
+
+Requires(post): coreutils sed
 
 
 Obsoletes:      vixie-cron <= 3.0.1
 Obsoletes:      vixie-cron <= 3.0.1
 
 
@@ -44,10 +51,11 @@ scheduled times and related tools. It is a fork of the original vixie-cron and
 has security and configuration enhancements like the ability to use pam and
 has security and configuration enhancements like the ability to use pam and
 SELinux.
 SELinux.
 
 
+
 %package anacron
 %package anacron
 Summary:   Utility for running regular jobs
 Summary:   Utility for running regular jobs
 Requires:  crontabs
 Requires:  crontabs
-Group:     System Environment/Base
+Group:     system
 Provides:  dailyjobs
 Provides:  dailyjobs
 Provides:  anacron = 2.4
 Provides:  anacron = 2.4
 Obsoletes: anacron <= 2.3
 Obsoletes: anacron <= 2.3
@@ -65,9 +73,10 @@ Using anacron allows running the periodic jobs even if the system is often
 powered off and it also allows randomizing the time of the job execution
 powered off and it also allows randomizing the time of the job execution
 for better utilization of resources shared among multiple systems.
 for better utilization of resources shared among multiple systems.
 
 
+
 %package noanacron
 %package noanacron
 Summary:   Utility for running simple regular jobs in old cron style
 Summary:   Utility for running simple regular jobs in old cron style
-Group:     System Environment/Base
+Group:     system
 Provides:  dailyjobs
 Provides:  dailyjobs
 Requires:  crontabs
 Requires:  crontabs
 Requires:  %{name} = %{version}-%{release}
 Requires:  %{name} = %{version}-%{release}
@@ -76,6 +85,7 @@ Requires:  %{name} = %{version}-%{release}
 Old style of running {hourly,daily,weekly,monthly}.jobs without anacron. No
 Old style of running {hourly,daily,weekly,monthly}.jobs without anacron. No
 extra features.
 extra features.
 
 
+
 %prep
 %prep
 %setup -q
 %setup -q
 
 
@@ -100,6 +110,7 @@ extra features.
 
 
 make %{?_smp_mflags}
 make %{?_smp_mflags}
 
 
+
 %install
 %install
 make install DESTDIR=$RPM_BUILD_ROOT DESTMAN=$RPM_BUILD_ROOT%{_mandir}
 make install DESTDIR=$RPM_BUILD_ROOT DESTMAN=$RPM_BUILD_ROOT%{_mandir}
 mkdir -pm700 $RPM_BUILD_ROOT%{_localstatedir}/spool/cron
 mkdir -pm700 $RPM_BUILD_ROOT%{_localstatedir}/spool/cron
@@ -122,13 +133,25 @@ touch $RPM_BUILD_ROOT/var/spool/anacron/cron.monthly
 # noanacron package
 # noanacron package
 install -m 644 contrib/dailyjobs $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/dailyjobs
 install -m 644 contrib/dailyjobs $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/dailyjobs
 
 
+
+%if %{with systemd}
+# install systemd initscript
+mkdir -p $RPM_BUILD_ROOT%{_unitdir}
+install -m 644 contrib/cronie.systemd $RPM_BUILD_ROOT%{_unitdir}/crond.service
+%else
 # install initscript
 # install initscript
 mkdir -p $RPM_BUILD_ROOT%{_initddir}
 mkdir -p $RPM_BUILD_ROOT%{_initddir}
 install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/crond
 install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/crond
+%endif
+
 
 
 %post
 %post
 # run after an installation
 # run after an installation
+%if %{with systemd}
+%systemd_post crond.service
+%else
 /sbin/chkconfig --add crond
 /sbin/chkconfig --add crond
+%endif
 
 
 %post anacron
 %post anacron
 [ -e /var/spool/anacron/cron.daily ] || touch /var/spool/anacron/cron.daily
 [ -e /var/spool/anacron/cron.daily ] || touch /var/spool/anacron/cron.daily
@@ -137,19 +160,32 @@ install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/crond
 
 
 %preun
 %preun
 # run before a package is removed
 # run before a package is removed
-if [ "$1" -eq 0 ]; then
+%if %{with systemd}
+%systemd_preun crond.service
+%else
+if [ "$1" -eq 0 -o -x /bin/systemctl ]; then
         /sbin/service crond stop >/dev/null 2>&1
         /sbin/service crond stop >/dev/null 2>&1
         /sbin/chkconfig --del crond
         /sbin/chkconfig --del crond
 fi
 fi
+%endif
 
 
 %postun
 %postun
 # run after a package is removed
 # run after a package is removed
+%if %{with systemd}
+%systemd_postun_with_restart crond.service
+%else
 if [ "$1" -ge "1" ]; then
 if [ "$1" -ge "1" ]; then
   /sbin/service crond condrestart >/dev/null 2>&1 || :
   /sbin/service crond condrestart >/dev/null 2>&1 || :
 fi
 fi
+%endif
 
 
 %triggerpostun -- vixie-cron
 %triggerpostun -- vixie-cron
+%if %{with systemd}
+%systemd_postun_with_restart crond.service
+%else
 /sbin/chkconfig --add crond
 /sbin/chkconfig --add crond
+%endif
+
 
 
 %files
 %files
 %license COPYING*
 %license COPYING*
@@ -170,7 +206,11 @@ fi
 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/crond
 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/crond
 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/cron.deny
 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/cron.deny
 %attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly
 %attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly
+%if %{with systemd}
+%{_unitdir}/crond.service
+%else
 %attr(0755,root,root) %{_initddir}/crond
 %attr(0755,root,root) %{_initddir}/crond
+%endif
 
 
 %files anacron
 %files anacron
 %{_sbindir}/anacron
 %{_sbindir}/anacron
@@ -186,7 +226,11 @@ fi
 %files noanacron
 %files noanacron
 %attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs
 %attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs
 
 
+
 %changelog
 %changelog
+* Sun Aug 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.5-2
+- added systemd support (disabled as default).
+
 * Wed Mar 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.5-1
 * Wed Mar 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.5-1
 - new upstream release.
 - new upstream release.
 - dropped all patches.
 - dropped all patches.

+ 61 - 11
g/geoclue2/geoclue2-vl.spec

@@ -1,13 +1,16 @@
+%bcond_with systemd
+
 Summary:        A modular geoinformation service
 Summary:        A modular geoinformation service
 Summary(ja):    モジュール型地理情報サービス
 Summary(ja):    モジュール型地理情報サービス
-
 Name:           geoclue2
 Name:           geoclue2
-Version:        2.5.3
-Release:        1%{?_dist_release}
+Version:        2.5.6
+Release:        1%{?_dist_release}%{?with_systemd:.systemd}
+Group:          system
+Vendor:         Project Vine
+Distribution:   Vine Linux
 
 
-Group:          System Environment/Libraries
 License:        GPLv2+
 License:        GPLv2+
-URL:            http://www.freedesktop.org/wiki/Software/GeoClue/
+URL:            https://www.freedesktop.org/wiki/Software/GeoClue/
 Source0:        https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/%{version}/geoclue-%{version}.tar.bz2
 Source0:        https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/%{version}/geoclue-%{version}.tar.bz2
 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -24,9 +27,9 @@ BuildRequires: vala-devel
 BuildRequires: gtk-doc
 BuildRequires: gtk-doc
 BuildRequires: itstool
 BuildRequires: itstool
 BuildRequires: meson
 BuildRequires: meson
-
-Vendor: Project Vine
-Distribution: Vine Linux
+%if %{with systemd}
+%{?systemd_requires}
+%endif
 
 
 %description
 %description
 Geoclue is a modular geoinformation service built on top of the D-Bus 
 Geoclue is a modular geoinformation service built on top of the D-Bus 
@@ -36,7 +39,7 @@ location-aware applications as simple as possible.
 %package devel
 %package devel
 Summary: Development package for geoclue
 Summary: Development package for geoclue
 Summary(ja): geoclue の開発パッケージ
 Summary(ja): geoclue の開発パッケージ
-Group: Development/Libraries
+Group: programming
 Requires: %{name} = %{version}-%{release}
 Requires: %{name} = %{version}-%{release}
 Requires: pkgconfig
 Requires: pkgconfig
 
 
@@ -47,19 +50,59 @@ Files for development with geoclue.
 %prep
 %prep
 %setup -q -n geoclue-%{version}
 %setup -q -n geoclue-%{version}
 
 
+
 %build
 %build
-%meson -Dgtk-doc=false -Ddemo-agent=false
+%meson \
+	-Ddbus-srv-user=geoclue \
+	-Dgtk-doc=false \
+	-Ddemo-agent=false \
+%if %{with systemd}
+	-Dsystemd-system-unit-dir=%{_unitdir} \
+%endif
+	%{nil}
 %meson_build
 %meson_build
 
 
+
 %install
 %install
 rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
 %meson_install
 %meson_install
-#find %{buildroot} -name '*.la' -exec rm -f {} ';'
+# Home directory for the 'geoclue' user
+mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue
 
 
 %clean
 %clean
 rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
 
 
 
 
+%pre
+# Update the home directory for existing users
+getent passwd geoclue >/dev/null && \
+    usermod -d /var/lib/geoclue geoclue &>/dev/null
+# Create a new user and group if they don't exist
+getent group geoclue >/dev/null || groupadd -r geoclue
+getent passwd geoclue >/dev/null || \
+    useradd -r -g geoclue -d /var/lib/geoclue -s /sbin/nologin \
+    -c "User for geoclue" geoclue
+exit 0
+
+
+%post
+/sbin/ldconfig
+%if %{with systemd}
+%systemd_post geoclue.service
+%endif
+
+%if %{with systemd}
+%preun
+%systemd_preun geoclue.service
+%endif
+
+%postun
+/sbin/ldconfig
+%if %{with systemd}
+%systemd_postun_with_restart geoclue.service
+%endif
+
+
 %files
 %files
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %license COPYING
 %license COPYING
@@ -79,6 +122,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Manager.xml
 %{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Manager.xml
 %{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
 %{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
 %{_mandir}/man5/*
 %{_mandir}/man5/*
+%attr(755,geoclue,geoclue) %dir /var/lib/geoclue
+%if %{with systemd}
+%{_unitdir}/*
+%endif
 
 
 %files devel
 %files devel
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
@@ -92,6 +139,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 
 
 %changelog
 %changelog
+* Sun Aug 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.6-1
+- new upstream release.
+
 * Sat Sep 21 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.3-1
 * Sat Sep 21 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.3-1
 - new upstream release.
 - new upstream release.
 - enabled vala vapi.
 - enabled vala vapi.

+ 18 - 13
k/kernel/kernel-vl.spec

@@ -40,7 +40,7 @@ Summary(ja): Linux カーネル (Linux オペレーティングシステムの
 # adding some text to the end of the version number.
 # adding some text to the end of the version number.
 #
 #
 %define sublevel 4
 %define sublevel 4
-%define patchlevel 55
+%define patchlevel 57
 %define kversion 5.%{sublevel}
 %define kversion 5.%{sublevel}
 %define rpmversion 5.%{sublevel}.%{patchlevel}
 %define rpmversion 5.%{sublevel}.%{patchlevel}
 %define release 1%{?_dist_release}%{?with_systemd:.systemd}
 %define release 1%{?_dist_release}%{?with_systemd:.systemd}
@@ -146,14 +146,15 @@ Summary(ja): Linux カーネル (Linux オペレーティングシステムの
 %define kernel_prereq  fileutils, %{kmod}, initscripts >= 8.80, %{mkinitrd} >= %{mkinitrd_version}, linux-firmware >= 20110601-1
 %define kernel_prereq  fileutils, %{kmod}, initscripts >= 8.80, %{mkinitrd} >= %{mkinitrd_version}, linux-firmware >= 20110601-1
 
 
 Name: kernel
 Name: kernel
-Group: System Environment/Kernel
-License: GPLv2
 Version: %{rpmversion}
 Version: %{rpmversion}
 Release: %{release}
 Release: %{release}
+Group: system
 Vendor:		Project Vine
 Vendor:		Project Vine
 Distribution:	Vine Linux
 Distribution:	Vine Linux
 Packager:	daisuke, shaolin, iwamoto
 Packager:	daisuke, shaolin, iwamoto
 
 
+License: GPLv2
+
 ExclusiveArch: noarch i686 x86_64
 ExclusiveArch: noarch i686 x86_64
 ExclusiveOS: Linux
 ExclusiveOS: Linux
 Provides: kernel = %{rpmversion}
 Provides: kernel = %{rpmversion}
@@ -260,7 +261,7 @@ kernel パッケージには、Linux オペレーティングシステムの心
 %package devel
 %package devel
 Summary: Development package for building kernel modules to match the kernel.
 Summary: Development package for building kernel modules to match the kernel.
 Summary(ja): 特定のバージョンのカーネル用のモジュールを構築するための開発パッケージ
 Summary(ja): 特定のバージョンのカーネル用のモジュールを構築するための開発パッケージ
-Group: System Environment/Kernel
+Group: system
 AutoReqProv: no
 AutoReqProv: no
 Provides: kernel26-devel-%{_target_cpu} = %{rpmversion}-%{release}
 Provides: kernel26-devel-%{_target_cpu} = %{rpmversion}-%{release}
 Requires: elfutils-libelf-devel
 Requires: elfutils-libelf-devel
@@ -273,7 +274,7 @@ against the kernel package.
 %package source
 %package source
 Summary: The source code for the Linux kernel.
 Summary: The source code for the Linux kernel.
 Summary(ja): Linux カーネルのソースコード
 Summary(ja): Linux カーネルのソースコード
-Group: Development/Libraries
+Group: programming
 BuildArch: noarch
 BuildArch: noarch
 Requires(pre): fileutils
 Requires(pre): fileutils
 Requires: make >= 3.78
 Requires: make >= 3.78
@@ -316,7 +317,7 @@ kernel-source パッケージには Linux カーネルのソースコードが
 %package doc
 %package doc
 Summary: Various documentation bits found in the kernel source.
 Summary: Various documentation bits found in the kernel source.
 Summary(ja): カーネルソース内のさまざまなドキュメント群
 Summary(ja): カーネルソース内のさまざまなドキュメント群
-Group: Applications/Documentation
+Group: documentation
 BuildArch: noarch
 BuildArch: noarch
 
 
 %description doc
 %description doc
@@ -339,7 +340,7 @@ Linux カーネルモジュールを読み込む際の引数を調べたい場
 %package headers
 %package headers
 Summary: Header files for the Linux kernel for use by glibc
 Summary: Header files for the Linux kernel for use by glibc
 Summary(ja): Linux カーネルのヘッダファイル
 Summary(ja): Linux カーネルのヘッダファイル
-Group: Development/System
+Group: programming
 Obsoletes: glibc-kernheaders
 Obsoletes: glibc-kernheaders
 Provides: glibc-kernheaders = 3.0-46
 Provides: glibc-kernheaders = 3.0-46
 Conflicts: %{kernel_headers_conflicts}
 Conflicts: %{kernel_headers_conflicts}
@@ -362,7 +363,7 @@ kernel-headers パッケージには、Linux カーネルとユーザスペー
 %package firmware
 %package firmware
 Summary: Firmware files used by the Linux kernel
 Summary: Firmware files used by the Linux kernel
 Summary(ja): Linux kernel で使用されているファームウェア
 Summary(ja): Linux kernel で使用されているファームウェア
-Group: Development/System
+Group: system
 License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
 License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
 BuildArch: noarch
 BuildArch: noarch
 
 
@@ -378,7 +379,7 @@ Kernel-firmware にはいくつかのデバイスを利用するために必要
 Summary: The Linux kernel compiled for PAE capable machines.
 Summary: The Linux kernel compiled for PAE capable machines.
 Summary(ja): PAE 対応マシン用にコンパイルされた Linux カーネル
 Summary(ja): PAE 対応マシン用にコンパイルされた Linux カーネル
 
 
-Group: System Environment/Kernel
+Group: system
 Provides: kernel = %{rpmversion}
 Provides: kernel = %{rpmversion}
 Provides: kernel26 = %{rpmversion}
 Provides: kernel26 = %{rpmversion}
 Provides: kernel-drm = 4.3.0
 Provides: kernel-drm = 4.3.0
@@ -409,7 +410,7 @@ Install the kernel-pae package if your machine has more than 4GB of memory.
 %package pae-devel
 %package pae-devel
 Summary: Development package for building kernel modules to match the PAE capable kernel.
 Summary: Development package for building kernel modules to match the PAE capable kernel.
 Summary(ja): 特定のバージョンのPAE対応カーネル用のモジュールを構築するための開発パッケージ
 Summary(ja): 特定のバージョンのPAE対応カーネル用のモジュールを構築するための開発パッケージ
-Group: System Environment/Kernel
+Group: system
 Provides: kernel-pae-devel-%{_target_cpu} = %{rpmversion}-%{release}
 Provides: kernel-pae-devel-%{_target_cpu} = %{rpmversion}-%{release}
 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}pae
 Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}pae
 Provides: kernel-devel = %{rpmversion}-%{release}pae
 Provides: kernel-devel = %{rpmversion}-%{release}pae
@@ -424,7 +425,7 @@ against the PAE capable kernel package.
 %if %{with_tools}
 %if %{with_tools}
 %package -n kernel-tools
 %package -n kernel-tools
 Summary: Assortment of tools for the Linux kernel
 Summary: Assortment of tools for the Linux kernel
-Group: Development/System
+Group: admin-tools,system
 License: GPLv2
 License: GPLv2
 # cpufrequtils 009 and cpuspeed 1.6 are dummy version number
 # cpufrequtils 009 and cpuspeed 1.6 are dummy version number
 Obsoletes: cpufrequtils < 009
 Obsoletes: cpufrequtils < 009
@@ -439,7 +440,7 @@ and the supporting documentation.
 
 
 %package -n kernel-tools-libs
 %package -n kernel-tools-libs
 Summary: Libraries for the kernels-tools
 Summary: Libraries for the kernels-tools
-Group: Development/System
+Group: programming
 License: GPLv2
 License: GPLv2
 
 
 %description -n kernel-tools-libs
 %description -n kernel-tools-libs
@@ -449,7 +450,7 @@ from the kernel source.
 
 
 %package -n kernel-tools-libs-devel
 %package -n kernel-tools-libs-devel
 Summary: Assortment of tools for the Linux kernel
 Summary: Assortment of tools for the Linux kernel
-Group: Development/System
+Group: programming
 License: GPLv2
 License: GPLv2
 Requires: kernel-tools = %{version}-%{release}
 Requires: kernel-tools = %{version}-%{release}
 # Provides:  cpupowerutils-devel = 1:009-0.6.p1
 # Provides:  cpupowerutils-devel = 1:009-0.6.p1
@@ -466,6 +467,7 @@ the kernel source.
 %if %{with_bpftool}
 %if %{with_bpftool}
 %package -n bpftool
 %package -n bpftool
 Summary: Inspection and simple manipulation of eBPF programs and maps
 Summary: Inspection and simple manipulation of eBPF programs and maps
+Group: admin-tools,system
 License: GPLv2
 License: GPLv2
 
 
 %description -n bpftool
 %description -n bpftool
@@ -1158,6 +1160,9 @@ fi
 
 
 
 
 %changelog
 %changelog
+* Sun Aug 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.4.57-1
+- updated to 5.4.57.
+
 * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.4.55-1
 * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.4.55-1
 - updated to 5.4.55.
 - updated to 5.4.55.
 - re-enabled to build kernel-headers on i686.
 - re-enabled to build kernel-headers on i686.

+ 14 - 2
r/rng-tools/rng-tools-vl.spec

@@ -4,11 +4,14 @@
 %global _sbindir /sbin
 %global _sbindir /sbin
 
 
 Summary:        Random number generator related utilities
 Summary:        Random number generator related utilities
+Summary(ja):    乱数生成器関連のユーティリティ
 Name:           rng-tools
 Name:           rng-tools
 Version:        6.10
 Version:        6.10
-Release:        4%{?_dist_release}
+Release:        5%{?_dist_release}%{?with_systemd:.systemd}
+Group:          system
 Vendor:         Project Vine
 Vendor:         Project Vine
 Distribution:   Vine Linux
 Distribution:   Vine Linux
+
 License:        GPLv2+
 License:        GPLv2+
 URL:            https://github.com/nhorman/rng-tools
 URL:            https://github.com/nhorman/rng-tools
 Source0:        https://github.com/nhorman/rng-tools/archive/rng-tools-%{version}.tar.gz
 Source0:        https://github.com/nhorman/rng-tools/archive/rng-tools-%{version}.tar.gz
@@ -45,9 +48,11 @@ Requires(postun): chkconfig
 %description
 %description
 Hardware random number generation tools.
 Hardware random number generation tools.
 
 
+
 %prep 
 %prep 
 %autosetup 
 %autosetup 
 
 
+
 %build
 %build
 ./autogen.sh
 ./autogen.sh
 %configure \
 %configure \
@@ -57,6 +62,7 @@ Hardware random number generation tools.
 
 
 %make_build
 %make_build
 
 
+
 %install
 %install
 %make_install
 %make_install
 
 
@@ -70,6 +76,7 @@ install -m755 %{SOURCE100} %{buildroot}%{_initdir}/rngd
 install -m644 %{SOURCE101} %{buildroot}%{_sysconfdir}/sysconfig/rngd
 install -m644 %{SOURCE101} %{buildroot}%{_sysconfdir}/sysconfig/rngd
 %endif
 %endif
 
 
+
 %post
 %post
 %if %{with systemd}
 %if %{with systemd}
 %systemd_post rngd.service
 %systemd_post rngd.service
@@ -81,7 +88,7 @@ install -m644 %{SOURCE101} %{buildroot}%{_sysconfdir}/sysconfig/rngd
 %if %{with systemd}
 %if %{with systemd}
 %systemd_preun rngd.service
 %systemd_preun rngd.service
 %else
 %else
-if [ "$1" = 0 ]; then
+if [ "$1" = 0 -o -x /bin/systemctl ]; then
   /sbin/service stop rngd >/dev/null 2>&1 ||:
   /sbin/service stop rngd >/dev/null 2>&1 ||:
   /sbin/chkconfig --del rngd
   /sbin/chkconfig --del rngd
 fi
 fi
@@ -96,6 +103,7 @@ if [ "$1" != 0 ]; then
 fi
 fi
 %endif
 %endif
 
 
+
 %files
 %files
 %{!?_licensedir:%global license %%doc}
 %{!?_licensedir:%global license %%doc}
 %license COPYING
 %license COPYING
@@ -111,6 +119,10 @@ fi
 %attr(0644,root,root)   %config(noreplace) %{_sysconfdir}/sysconfig/rngd
 %attr(0644,root,root)   %config(noreplace) %{_sysconfdir}/sysconfig/rngd
 %endif
 %endif
 
 
+
 %changelog
 %changelog
+* Sun Aug 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 6.10-5
+* added suffix to %%release with systemd build.
+
 * Thu Apr 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 6.10-4
 * Thu Apr 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 6.10-4
 - initial build for Vine Linux.
 - initial build for Vine Linux.