diff --git a/mingetty.spec b/mingetty.spec index a840d4c..b4f86f1 100644 --- a/mingetty.spec +++ b/mingetty.spec @@ -4,6 +4,7 @@ Version: 1.08 License: GPLv2+ Release: 9%{?dist} Group: System Environment/Base +Conflicts: filesystem < 3 BuildRoot: %{_tmppath}/%{name}-root URL: http://sourceforge.net/projects/mingetty/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz @@ -35,19 +36,18 @@ lines (you should use the mgetty program in that case). make "CFLAGS=-Wall -D_GNU_SOURCE %{__global_cflags}" "LDFLAGS=%{__global_ldflags}" %install -rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8} - -install -m 0755 mingetty $RPM_BUILD_ROOT/sbin/ -install -m 0644 mingetty.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ +rm -rf %{buildroot} +mkdir -p %{buildroot}{%{_sbindir},%{_mandir}/man8} +install -m 0755 mingetty %{buildroot}%{_sbindir}/ +install -m 0644 mingetty.8 %{buildroot}%{_mandir}/man8/ %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING -/sbin/mingetty +%{_sbindir}/mingetty %{_mandir}/man8/mingetty.* %changelog