]> git.pld-linux.org Git - packages/chkconfig.git/blobdiff - chkconfig.spec
unbreak systemd-sysv-install symlink; rel 2
[packages/chkconfig.git] / chkconfig.spec
index ef3c5f829c07b7fa2faf59c26bdcb92182db4135..af7821ba7b3be7a90feaf057f7a97c630af380cf 100644 (file)
@@ -9,24 +9,26 @@ Summary(ru.UTF-8):    Системная утилита для управления
 Summary(tr.UTF-8):     Sistem servis bilgilerini sorgular ve yeniler
 Summary(uk.UTF-8):     Системна утиліта для керування ієрархією /etc/rc.d
 Name:          chkconfig
-Version:       1.3.63
-Release:       1
+Version:       1.25
+Release:       2
 Epoch:         2
 License:       GPL v2
 Group:         Applications/System
-Source0:       https://fedorahosted.org/releases/c/h/chkconfig/%{name}-%{version}.tar.bz2
-# Source0-md5: 7a9d030aa0915b8e9341a930e95d68e6
+#Source0Download: https://github.com/fedora-sysv/chkconfig/releases
+Source0:       https://github.com/fedora-sysv/chkconfig/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 12a7b241ba7d3730b9dc389115be50ee
 Patch0:                %{name}-add.patch
 Patch1:                %{name}-noxinet.patch
 Patch2:                %{name}-rc.d.patch
 Patch3:                %{name}-optflags.patch
 Patch4:                %{name}-pl.patch
-BuildRequires: gettext-devel
+Patch5:                %{name}-split-usr.patch
+URL:           https://github.com/fedora-sysv/chkconfig
+BuildRequires: gettext-tools
+BuildRequires: libselinux-devel
 BuildRequires: newt-devel
 BuildRequires: popt-devel
 Requires:      rc-scripts
-# sr@Latn vs. sr@latin
-Conflicts:     glibc-misc < 6:2.7
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -158,11 +160,14 @@ Perla; ma być zamiennikiem skryptu update-alternatives z Debiana.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 %{__make} \
        CC="%{__cc}" \
-       OPTFLAGS="%{rpmcflags}"
+       OPTFLAGS="%{rpmcppflags} %{rpmcflags}" \
+       OPTLDFLAGS="%{rpmldflags}" \
+       SYSTEMDUTILDIR=/lib/systemd
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -170,29 +175,21 @@ install -d $RPM_BUILD_ROOT{/etc/{rc.d/{init,rc{0,1,2,3,4,5,6}}.d,env.d},/sbin}
 
 %{__make} install \
        MANDIR=%{_mandir} \
+       SYSTEMDUTILDIR=/lib/systemd \
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/bal
 
 %find_lang %{name}
 
-cat <<EOF > $RPM_BUILD_ROOT/etc/env.d/CHKCONFIG_ON
-# display custom string instead of "on" (or its translation)
-#CHKCONFIG_ON="*****"
-EOF
-cat <<EOF > $RPM_BUILD_ROOT/etc/env.d/CHKCONFIG_OFF
-# display custom string instead of "off" (or its translation)
-#CHKCONFIG_OFF="-----"
-EOF
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) /sbin/chkconfig
+%attr(755,root,root) /lib/systemd/systemd-sysv-install
 %{_mandir}/man8/chkconfig.8*
-%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
 
 %files -n ntsysv
 %defattr(644,root,root,755)
This page took 0.082578 seconds and 4 git commands to generate.