diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-01-22 17:00:56 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-01-26 12:08:28 +0100 |
commit | d89c8724d8ad897ed0ad5c252b8f61d5cea53279 (patch) | |
tree | 504aef8cdac590d881d10c12b430b2b7b3d3881a /initscripts.spec | |
parent | 2804c73b12cecfedb545115f356f08742033dfc0 (diff) | |
download | initscripts-d89c8724d8ad897ed0ad5c252b8f61d5cea53279.tar initscripts-d89c8724d8ad897ed0ad5c252b8f61d5cea53279.tar.gz initscripts-d89c8724d8ad897ed0ad5c252b8f61d5cea53279.tar.bz2 initscripts-d89c8724d8ad897ed0ad5c252b8f61d5cea53279.tar.xz initscripts-d89c8724d8ad897ed0ad5c252b8f61d5cea53279.zip |
specfile cleanup
Diffstat (limited to 'initscripts.spec')
-rw-r--r-- | initscripts.spec | 182 |
1 files changed, 86 insertions, 96 deletions
diff --git a/initscripts.spec b/initscripts.spec index 528a330b..329e8446 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -31,7 +31,7 @@ Conflicts: ppp < 2.4.6-4 Requires(pre): /usr/sbin/groupadd Requires(post): /sbin/chkconfig, coreutils Requires(preun): /sbin/chkconfig -BuildRequires: glib2-devel popt-devel gettext pkgconfig +BuildRequires: glib2-devel popt-devel gettext pkgconfig systemd Provides: /sbin/service %description @@ -56,137 +56,127 @@ Currently, this consists of various memory checking code. make %install -rm -rf $RPM_BUILD_ROOT -make ROOT=$RPM_BUILD_ROOT SUPERUSER=`id -un` SUPERGROUP=`id -gn` mandir=%{_mandir} install +make ROOT=%{buildroot} SUPERUSER=`id -un` SUPERGROUP=`id -gn` mandir=%{_mandir} install %find_lang %{name} %ifnarch s390 s390x rm -f \ - $RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifup-ctc \ + %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifup-ctc \ %else rm -f \ - $RPM_BUILD_ROOT/etc/sysconfig/init.s390 + %{buildroot}%{_sysconfdir}/sysconfig/init.s390 %endif -rm -f $RPM_BUILD_ROOT/etc/rc.d/rc.local $RPM_BUILD_ROOT/etc/rc.local -touch $RPM_BUILD_ROOT/etc/rc.d/rc.local -chmod 755 $RPM_BUILD_ROOT/etc/rc.d/rc.local +rm -f %{buildroot}%{_sysconfdir}/rc.d/rc.local %{buildroot}%{_sysconfdir}/rc.local +touch %{buildroot}%{_sysconfdir}/rc.d/rc.local +chmod 755 %{buildroot}%{_sysconfdir}/rc.d/rc.local %post -/usr/sbin/chkconfig --add network -/usr/sbin/chkconfig --add netconsole +/usr/sbin/chkconfig --add network > /dev/null 2>&1 || : +/usr/sbin/chkconfig --add netconsole > /dev/null 2>&1 || : if [ $1 -eq 1 ]; then - /usr/bin/systemctl daemon-reload > /dev/null 2>&1 || : + /usr/bin/systemctl daemon-reload > /dev/null 2>&1 || : fi %preun if [ $1 = 0 ]; then - /usr/sbin/chkconfig --del network - /usr/sbin/chkconfig --del netconsole + /usr/sbin/chkconfig --del network > /dev/null 2>&1 || : + /usr/sbin/chkconfig --del netconsole > /dev/null 2>&1 || : fi -%triggerun -- initscripts < 7.62 -/usr/sbin/chkconfig --del random -/usr/sbin/chkconfig --del rawdevices -exit 0 - %postun if [ $1 -ge 1 ]; then /usr/bin/systemctl daemon-reload > /dev/null 2>&1 || : fi -%clean -rm -rf $RPM_BUILD_ROOT - %files -f %{name}.lang %defattr(-,root,root) -%dir /etc/sysconfig/network-scripts -%config(noreplace) %verify(not md5 mtime size) /etc/adjtime -%config(noreplace) /etc/sysconfig/init -%config(noreplace) /etc/sysconfig/netconsole -%config(noreplace) /etc/sysconfig/readonly-root -/etc/sysconfig/network-scripts/ifdown -/usr/sbin/ifdown -/etc/sysconfig/network-scripts/ifdown-post -/etc/sysconfig/network-scripts/ifup -/usr/sbin/ifup -%dir /etc/sysconfig/console -%dir /etc/sysconfig/modules -/etc/sysconfig/network-scripts/network-functions -/etc/sysconfig/network-scripts/network-functions-ipv6 -/etc/sysconfig/network-scripts/init.ipv6-global -%config(noreplace) /etc/sysconfig/network-scripts/ifcfg-lo -/etc/sysconfig/network-scripts/ifup-post -/etc/sysconfig/network-scripts/ifup-routes -/etc/sysconfig/network-scripts/ifdown-routes -/etc/sysconfig/network-scripts/ifup-plip -/etc/sysconfig/network-scripts/ifup-plusb -/etc/sysconfig/network-scripts/ifup-bnep -/etc/sysconfig/network-scripts/ifdown-bnep -/etc/sysconfig/network-scripts/ifup-eth -/etc/sysconfig/network-scripts/ifdown-eth -/etc/sysconfig/network-scripts/ifup-ipv6 -/etc/sysconfig/network-scripts/ifdown-ipv6 -/etc/sysconfig/network-scripts/ifup-sit -/etc/sysconfig/network-scripts/ifdown-sit -/etc/sysconfig/network-scripts/ifup-tunnel -/etc/sysconfig/network-scripts/ifdown-tunnel -/etc/sysconfig/network-scripts/ifup-aliases -/etc/sysconfig/network-scripts/ifup-ippp -/etc/sysconfig/network-scripts/ifdown-ippp -/etc/sysconfig/network-scripts/ifup-wireless -/etc/sysconfig/network-scripts/ifup-isdn -/etc/sysconfig/network-scripts/ifdown-isdn +%dir %{_sysconfdir}/sysconfig/network-scripts +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/adjtime +%config(noreplace) %{_sysconfdir}/sysconfig/init +%config(noreplace) %{_sysconfdir}/sysconfig/netconsole +%config(noreplace) %{_sysconfdir}/sysconfig/readonly-root +%{_sysconfdir}/sysconfig/network-scripts/ifdown +%{_sbindir}/ifdown +%{_sysconfdir}/sysconfig/network-scripts/ifdown-post +%{_sysconfdir}/sysconfig/network-scripts/ifup +%{_sbindir}/ifup +%dir %{_sysconfdir}/sysconfig/console +%dir %{_sysconfdir}/sysconfig/modules +%{_sysconfdir}/sysconfig/network-scripts/network-functions +%{_sysconfdir}/sysconfig/network-scripts/network-functions-ipv6 +%{_sysconfdir}/sysconfig/network-scripts/init.ipv6-global +%config(noreplace) %{_sysconfdir}/sysconfig/network-scripts/ifcfg-lo +%{_sysconfdir}/sysconfig/network-scripts/ifup-post +%{_sysconfdir}/sysconfig/network-scripts/ifup-routes +%{_sysconfdir}/sysconfig/network-scripts/ifdown-routes +%{_sysconfdir}/sysconfig/network-scripts/ifup-plip +%{_sysconfdir}/sysconfig/network-scripts/ifup-plusb +%{_sysconfdir}/sysconfig/network-scripts/ifup-bnep +%{_sysconfdir}/sysconfig/network-scripts/ifdown-bnep +%{_sysconfdir}/sysconfig/network-scripts/ifup-eth +%{_sysconfdir}/sysconfig/network-scripts/ifdown-eth +%{_sysconfdir}/sysconfig/network-scripts/ifup-ipv6 +%{_sysconfdir}/sysconfig/network-scripts/ifdown-ipv6 +%{_sysconfdir}/sysconfig/network-scripts/ifup-sit +%{_sysconfdir}/sysconfig/network-scripts/ifdown-sit +%{_sysconfdir}/sysconfig/network-scripts/ifup-tunnel +%{_sysconfdir}/sysconfig/network-scripts/ifdown-tunnel +%{_sysconfdir}/sysconfig/network-scripts/ifup-aliases +%{_sysconfdir}/sysconfig/network-scripts/ifup-ippp +%{_sysconfdir}/sysconfig/network-scripts/ifdown-ippp +%{_sysconfdir}/sysconfig/network-scripts/ifup-wireless +%{_sysconfdir}/sysconfig/network-scripts/ifup-isdn +%{_sysconfdir}/sysconfig/network-scripts/ifdown-isdn %ifarch s390 s390x -/etc/sysconfig/network-scripts/ifup-ctc +%{_sysconfdir}/sysconfig/network-scripts/ifup-ctc %endif -%config(noreplace) /etc/networks -/etc/rwtab -%dir /etc/rwtab.d -/etc/statetab -%dir /etc/statetab.d -/usr/lib/systemd/fedora-* -/usr/lib/systemd/system/* -%dir /etc/rc.d -%dir /etc/rc.d/rc[0-9].d -/etc/rc[0-9].d -%dir /etc/rc.d/init.d -/etc/rc.d/init.d/* -%ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/rc.d/rc.local -/usr/lib/sysctl.d/00-system.conf -%exclude /etc/profile.d/debug* -/etc/profile.d/* -/usr/sbin/sys-unconfig -/usr/bin/ipcalc -/usr/bin/usleep -%attr(4755,root,root) /usr/sbin/usernetctl -/usr/sbin/consoletype -/usr/sbin/genhostid -/usr/sbin/sushell -%attr(2755,root,root) /usr/sbin/netreport -/usr/lib/udev/rules.d/* -/usr/lib/udev/rename_device -/usr/sbin/service +%config(noreplace) %{_sysconfdir}/networks +%{_sysconfdir}/rwtab +%dir %{_sysconfdir}/rwtab.d +%{_sysconfdir}/statetab +%dir %{_sysconfdir}/statetab.d +%{_prefix}/lib/systemd/fedora-* +%{_prefix}/lib/systemd/system/* +%dir %{_sysconfdir}/rc.d +%dir %{_sysconfdir}/rc.d/rc[0-9].d +%{_sysconfdir}/rc[0-9].d +%dir %{_sysconfdir}/rc.d/init.d +%{_sysconfdir}/rc.d/init.d/* +%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/rc.d/rc.local +%{_prefix}/lib/sysctl.d/00-system.conf +%exclude %{_sysconfdir}/profile.d/debug* +%{_sysconfdir}/profile.d/* +%{_sbindir}/sys-unconfig +%{_bindir}/ipcalc +%{_bindir}/usleep +%attr(4755,root,root) %{_sbindir}/usernetctl +%{_sbindir}/consoletype +%{_sbindir}/genhostid +%{_sbindir}/sushell +%attr(2755,root,root) %{_sbindir}/netreport +%{_udevrulesdir}/* +%{_prefix}/lib/udev/rename_device +%{_sbindir}/service %{_mandir}/man*/* %dir %attr(775,root,root) /var/run/netreport -%dir /etc/NetworkManager -%dir /etc/NetworkManager/dispatcher.d -/etc/NetworkManager/dispatcher.d/00-netreport +%dir %{_sysconfdir}/NetworkManager +%dir %{_sysconfdir}/NetworkManager/dispatcher.d +%{_sysconfdir}/NetworkManager/dispatcher.d/00-netreport %doc sysconfig.txt sysvinitfiles static-routes-ipv6 ipv6-tunnel.howto ipv6-6to4.howto changes.ipv6 %doc examples %{!?_licensedir:%global license %%doc} %license COPYING -/var/lib/stateless -%dir /usr/lib/tmpfiles.d -/usr/lib/tmpfiles.d/initscripts.conf -%dir /usr/libexec/initscripts -%dir /usr/libexec/initscripts/legacy-actions +%{_sharedstatedir}/stateless +%{_tmpfilesdir}/initscripts.conf +%dir %{_libexecdir}/initscripts +%dir %{_libexecdir}/initscripts/legacy-actions %files -n debugmode %defattr(-,root,root) -%config(noreplace) /etc/sysconfig/debug -/etc/profile.d/debug* +%config(noreplace) %{_sysconfdir}/sysconfig/debug +%{_sysconfdir}/profile.d/debug* %changelog * Tue Dec 16 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 9.60-1 |