- Use smp_mflags (bug #226445).

- Better default attributes (bug #226445).
- Make setup macro quiet (bug #226445).
- Clean build root in %install section (bug #226445).
- Resolves: rhbz#226445 rhbz#226445 rhbz#226445 rhbz#226445
This commit is contained in:
Tim Waugh 2007-02-23 12:50:51 +00:00
parent e18313032d
commit d1a9e1051c

View File

@ -2,7 +2,7 @@ Summary: A utility which maintains a system's symbolic links
Name: symlinks Name: symlinks
URL: ftp://metalab.unc.edu/pub/Linux/utils/file/ URL: ftp://metalab.unc.edu/pub/Linux/utils/file/
Version: 1.2 Version: 1.2
Release: 28%{?dist} Release: 29%{?dist}
Group: Applications/System Group: Applications/System
License: distributable License: distributable
Source: ftp://metalab.unc.edu/pub/Linux/utils/file/%{name}-%{version}.tar.gz Source: ftp://metalab.unc.edu/pub/Linux/utils/file/%{name}-%{version}.tar.gz
@ -21,15 +21,16 @@ Install the symlinks package if you need a program for maintaining
symlinks on your system. symlinks on your system.
%prep %prep
%setup %setup -q
%patch -p1 -b .nostatic %patch -p1 -b .nostatic
%patch1 -p1 -b .fixman %patch1 -p1 -b .fixman
%patch2 -p1 %patch2 -p1
%build %build
make CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)" make CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)" %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -m 755 symlinks $RPM_BUILD_ROOT%{_bindir} install -m 755 symlinks $RPM_BUILD_ROOT%{_bindir}
@ -39,11 +40,17 @@ install -m 644 symlinks.8 $RPM_BUILD_ROOT%{_mandir}/man8
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%{_bindir}/symlinks %{_bindir}/symlinks
%{_mandir}/man8/symlinks.8* %{_mandir}/man8/symlinks.8*
%changelog %changelog
* Fri Feb 23 2007 Tim Waugh <twaugh@redhat.com> 1.2-29
- Use smp_mflags (bug #226445).
- Better default attributes (bug #226445).
- Make setup macro quiet (bug #226445).
- Clean build root in %%install section (bug #226445).
* Wed Feb 7 2007 Tim Waugh <twaugh@redhat.com> 1.2-28 * Wed Feb 7 2007 Tim Waugh <twaugh@redhat.com> 1.2-28
- Fixed build root (bug #226445). - Fixed build root (bug #226445).