4f7bcd
Summary: A utility which maintains a system's symbolic links
4f7bcd
Name: symlinks
0ba9cc
URL: http://ibiblio.org/pub/Linux/utils/file/
4f7bcd
Version: 1.4
0ba9cc
Release: 10%{?dist}
4f7bcd
Group: Applications/System
4f7bcd
License: Copyright only
4f7bcd
Source0: http://ibiblio.org/pub/Linux/utils/file/%{name}-%{version}.tar.gz
4f7bcd
# Taken from http://packages.debian.org/changelogs/pool/main/s/symlinks/symlinks_1.2-4.2/symlinks.copyright
4f7bcd
Source1: symlinks-LICENSE.txt
4f7bcd
Patch1: symlinks-coverity-readlink.patch
4f7bcd
Patch2: symlinks-coverity-overrun-dynamic.patch
4f7bcd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4f7bcd
4f7bcd
%description
4f7bcd
The symlinks utility performs maintenance on symbolic links.  Symlinks
4f7bcd
checks for symlink problems, including dangling symlinks which point
4f7bcd
to nonexistent files.  Symlinks can also automatically convert
4f7bcd
absolute symlinks to relative symlinks.
4f7bcd
4f7bcd
Install the symlinks package if you need a program for maintaining
4f7bcd
symlinks on your system.
4f7bcd
4f7bcd
%prep
4f7bcd
%setup -q
4f7bcd
cp %{SOURCE1} .
4f7bcd
4f7bcd
# Fix off-by-one error in call to readlink.
4f7bcd
%patch1 -p1 -b .coverity-readlink
4f7bcd
4f7bcd
# Fix possible buffer overrun found by coverity.
4f7bcd
%patch2 -p1 -b .coverity-overrun-dynamic
4f7bcd
4f7bcd
%build
4f7bcd
make CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)" %{?_smp_mflags}
4f7bcd
4f7bcd
%install
4f7bcd
rm -rf $RPM_BUILD_ROOT
4f7bcd
mkdir -p $RPM_BUILD_ROOT%{_bindir}
4f7bcd
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
4f7bcd
install -m 755 symlinks $RPM_BUILD_ROOT%{_bindir}
4f7bcd
install -m 644 symlinks.8 $RPM_BUILD_ROOT%{_mandir}/man8
4f7bcd
4f7bcd
%clean
4f7bcd
rm -rf $RPM_BUILD_ROOT
4f7bcd
4f7bcd
%files
4f7bcd
%defattr(-,root,root,-)
4f7bcd
%doc symlinks-LICENSE.txt
4f7bcd
%{_bindir}/symlinks
4f7bcd
%{_mandir}/man8/symlinks.8*
4f7bcd
4f7bcd
%changelog
0ba9cc
* Thu Jul 25 2019 Than Ngo <than@redhat.com> - 1.4-10
0ba9cc
- Resolves: #1579157, fixed upstream URL reference
0ba9cc
a200b3
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.4-9
a200b3
- Mass rebuild 2014-01-24
a200b3
a200b3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4-8
a200b3
- Mass rebuild 2013-12-27
a200b3
4f7bcd
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-7
4f7bcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4f7bcd
4f7bcd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
4f7bcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4f7bcd
4f7bcd
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
4f7bcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4f7bcd
4f7bcd
* Fri May 20 2011 Tim Waugh <twaugh@redhat.com> 1.4-4
4f7bcd
- Applied patches from Jiri Popelka:
4f7bcd
  - Fix off-by-one error in call to readlink.
4f7bcd
  - Fix possible buffer overrun found by coverity.
4f7bcd
4f7bcd
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
4f7bcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4f7bcd
4f7bcd
* Fri Nov 13 2009 Tim Waugh <twaugh@redhat.com> 1.4-2
4f7bcd
- 1.4.  All patches now upstream.
4f7bcd
4f7bcd
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-34
4f7bcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4f7bcd
4f7bcd
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-33
4f7bcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4f7bcd
4f7bcd
* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-32
4f7bcd
- fix license tag
4f7bcd
4f7bcd
* Mon Feb 11 2008 Tim Waugh <twaugh@redhat.com> 1.2-31
4f7bcd
- Rebuild for GCC 4.3.
4f7bcd
4f7bcd
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 1.2-30
4f7bcd
- Rebuilt.
4f7bcd
4f7bcd
* Fri Feb 23 2007 Tim Waugh <twaugh@redhat.com> 1.2-29
4f7bcd
- Use smp_mflags (bug #226445).
4f7bcd
- Better default attributes (bug #226445).
4f7bcd
- Make setup macro quiet (bug #226445).
4f7bcd
- Clean build root in %%install section (bug #226445).
4f7bcd
4f7bcd
* Wed Feb  7 2007 Tim Waugh <twaugh@redhat.com> 1.2-28
4f7bcd
- Fixed build root (bug #226445).
4f7bcd
4f7bcd
* Tue Feb  6 2007 Tim Waugh <twaugh@redhat.com> 1.2-27
4f7bcd
- Fixed summary (bug #226445).
4f7bcd
- Added token URL tag (bug #226445).
4f7bcd
4f7bcd
* Tue Jan 30 2007 Florian La Roche <laroche@redhat.com> - 1.2-26
4f7bcd
- do not strip away debuginfo
4f7bcd
4f7bcd
* Thu Jan 18 2007 Tim Waugh <twaugh@redhat.com> - 1.2-25
4f7bcd
- Build with LFS support (bug #206407).
4f7bcd
4f7bcd
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2-24.2.2
4f7bcd
- rebuild
4f7bcd
4f7bcd
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2-24.2.1
4f7bcd
- bump again for double-long bug on ppc(64)
4f7bcd
4f7bcd
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2-24.2
4f7bcd
- rebuilt for new gcc4.1 snapshot and glibc changes
4f7bcd
4f7bcd
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
4f7bcd
- rebuilt
4f7bcd
4f7bcd
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 1.2-24
4f7bcd
- Rebuild for new GCC.
4f7bcd
4f7bcd
* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 1.2-23
4f7bcd
- s/Copyright:/License:/.
4f7bcd
4f7bcd
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
4f7bcd
- rebuilt
4f7bcd
4f7bcd
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
4f7bcd
- rebuilt
4f7bcd
4f7bcd
* Thu Oct 16 2003 Florian La Roche <Florian.LaRoche@redhat.de>
4f7bcd
- add patch from #89655
4f7bcd
4f7bcd
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
4f7bcd
- rebuilt
4f7bcd
4f7bcd
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
4f7bcd
- rebuilt
4f7bcd
4f7bcd
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 1.2-17
4f7bcd
- rebuild on all arches
4f7bcd
4f7bcd
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
4f7bcd
- automated rebuild
4f7bcd
4f7bcd
* Thu May 23 2002 Tim Powers <timp@redhat.com>
4f7bcd
- automated rebuild
4f7bcd
4f7bcd
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
4f7bcd
- automated rebuild
4f7bcd
4f7bcd
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
4f7bcd
- Bump release + rebuild.
4f7bcd
4f7bcd
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
4f7bcd
- automatic rebuild
4f7bcd
4f7bcd
* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>
4f7bcd
- FHS paths
4f7bcd
4f7bcd
* Tue May 30 2000 Preston Brown <pbrown@redhat.com>
4f7bcd
- fix up help output (#10236)
4f7bcd
4f7bcd
* Thu Feb 10 2000 Preston Brown <pbrown@redhat.com>
4f7bcd
- do not link statically
4f7bcd
4f7bcd
* Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
4f7bcd
- rebuild to gzip man page
4f7bcd
4f7bcd
* Mon Oct 04 1999 Cristian Gafton <gafton@redhat.com>
4f7bcd
- rebuild against the latest glibc in the sparc tree
4f7bcd
4f7bcd
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
4f7bcd
- auto rebuild in the new build environment (release 5)
4f7bcd
4f7bcd
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
4f7bcd
- Injected new description and group.
4f7bcd
4f7bcd
* Fri Dec 18 1998 Preston Brown <pbrown@redhat.com>
4f7bcd
- bumped spec number for initial rh 6.0 build
4f7bcd
4f7bcd
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
4f7bcd
- translations modified for de, fr, tr
4f7bcd
4f7bcd
* Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com>
4f7bcd
- changed build root to /var/tmp, not /var/lib
4f7bcd
- updated to version 1.2
4f7bcd
4f7bcd
* Wed Jul 09 1997 Erik Troan <ewt@redhat.com>
4f7bcd
- built against glibc
4f7bcd
- build-rooted