1ada992
Summary:	Create a tree of hardlinks
1ada992
Name:		hardlink
Francisco Javier Tsao Santín 23a1fe5
Version:	1.3
Francisco Javier Tsao Santín 23a1fe5
Release:	1%{?dist}
df37b16
Epoch:		1
1ada992
Group:		System Environment/Base
Francisco Javier Tsao Santín 76d4966
URL:		https://pagure.io/hardlink.git
bb2f922
License:	GPLv2+
aa76c54
Source0:	hardlink.c
52c8106
Source1:	hardlink.1
bb2f922
Source2:	https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
10b9499
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Todd Lewis cc12cc7
Requires: pcre2-devel
aa76c54
aa76c54
%description
aa76c54
hardlink is used to create a tree of hard links.
aa76c54
It's used by kernel installation to dramatically reduce the
Francisco Javier Tsao Santín 76d4966
amount of disk space used by each kernel package installed.
aa76c54
aa76c54
%prep
10b9499
%setup -q -c -T
bb2f922
cp %{SOURCE2} .
853469c
install -pm 644 %{SOURCE0} hardlink.c
aa76c54
aa76c54
%build
Todd Lewis cc12cc7
gcc $RPM_OPT_FLAGS hardlink.c -o hardlink -lpcre2-8
aa76c54
aa76c54
%install
1ada992
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/hardlink.1
1ada992
install -D -m 755 hardlink $RPM_BUILD_ROOT%{_sbindir}/hardlink
aa76c54
aa76c54
%files
aa76c54
%defattr(-,root,root)
bb2f922
%{!?_licensedir:%global license %%doc}
bb2f922
%license gpl-2.0.txt
56723b3
%{_sbindir}/hardlink
56723b3
%{_mandir}/man1/hardlink.1*
aa76c54
aa76c54
%changelog
Francisco Javier Tsao Santín 23a1fe5
* Sun Apr 23 2017 Francisco Javier Tsao Santín <tsao@gpul.org> - 1:1.3-1
Francisco Javier Tsao Santín 23a1fe5
- Patch by Todd Lewis that adds option -x to exclude files with pcre lib 
Francisco Javier Tsao Santín 23a1fe5
- This patch solves RH Bugzilla ID's 955246 1322198 
Francisco Javier Tsao Santín 23a1fe5
Francisco Javier Tsao Santín fd6df66
* Thu Feb 16 2017 Francisco Javier Tsao Santín <tsao@gpul.org> - 1:1.2-1
Francisco Javier Tsao Santín fd6df66
- Fixed 32 bit build with gcc7 (RH Bugzilla ID 1422989)
Francisco Javier Tsao Santín fd6df66
Francisco Javier Tsao Santín 76d4966
* Sun Feb 12 2017 Francisco Javier Tsao Santín <tsao@gpul.org> - 1:1.1-4
Francisco Javier Tsao Santín 76d4966
- Fixed source url and description in spec file
Francisco Javier Tsao Santín 76d4966
77c99ee
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1-3
77c99ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
77c99ee
26a89ea
* Sat Sep 03 2016 Kevin Fenzi <kevin@scrye.com> - 1.1-2
26a89ea
- Drop the kernel-utils obsolete that was added in 2005.
26a89ea
Francisco Javier Tsao Santín d669f21
* Sun Jul 10 2016 Francisco Javier Tsao Santín <tsao@gpul.org> - 1:1.1-1
Francisco Javier Tsao Santín 4367f46
- Patch by Travers Carter for making hardlinking atomic
Francisco Javier Tsao Santín 4367f46
79c4140
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0-23
79c4140
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
79c4140
dd965f2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-22
dd965f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dd965f2
9188816
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-21
9188816
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9188816
bb2f922
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org> - 1:1.0-20
bb2f922
- fix license handling
bb2f922
ea8cabc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-19
ea8cabc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ea8cabc
10c2b06
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-18
10c2b06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
10c2b06
213f844
* Wed Apr 10 2013 Jan Zeleny <jzeleny@redhat.com> - 1:1.0-17
213f844
- Mention -f option in the man page
213f844
9a57d34
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-16
9a57d34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9a57d34
3ec908d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-15
3ec908d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3ec908d
ad11a27
* Sun Apr 15 2012 Jindrich Novy <jnovy@redhat.com> - 1:1.0-14
ad11a27
- do not allow to hardlink files across filesystems by default (#786719)
ad11a27
  (use -f option to override)
ad11a27
269cc66
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-13
269cc66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
269cc66
4495481
* Fri Oct 21 2011 Jindrich Novy <jnovy@redhat.com> - 1:1.0-12
4495481
- fix possible buffer overflows, integer overflows (CVE-2011-3630 CVE-2011-3631 CVE-2011-3632)
4495481
- update man page
4495481
8385109
* Wed Mar  2 2011 Jindrich Novy <jnovy@redhat.com> - 1:1.0-11
8385109
- don't use mmap(2) to avoid failures on i386 with 1GB files and larger (#672917)
8385109
- fix package URL (#676962)
8385109
491b5da
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-10
491b5da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
491b5da
4b1ad76
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-9
4b1ad76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4b1ad76
85e8002
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0-8
85e8002
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
85e8002
0e7aaf6
* Mon Feb 25 2008 Jindrich Novy <jnovy@redhat.com> 1:1.0-7
0e7aaf6
- manual rebuild because of gcc-4.3 (#434188)
0e7aaf6
cceb5d1
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:1.0-6
cceb5d1
- Autorebuild for GCC 4.3
cceb5d1
4e3c9c8
* Thu Aug 23 2007 Jindrich Novy <jnovy@redhat.com> - 1:1.0-5
4e3c9c8
- update License
4e3c9c8
- rebuild for BuildID
4e3c9c8
853469c
* Mon Apr 23 2007 Jindrich Novy <jnovy@redhat.com> - 1:1.0-4
853469c
- include sources in debuginfo package (#230833)
853469c
10b9499
* Mon Feb  5 2007 Jindrich Novy <jnovy@redhat.com> - 1:1.0-3
10b9499
- merge review related spec fixes (#225881)
10b9499
3f7d2b4
* Sun Oct 29 2006 Jindrich Novy <jnovy@redhat.com> - 1:1.0-2
3f7d2b4
- update docs to describe highest verbosity -vv option (#210816)
3f7d2b4
- use dist
3f7d2b4
fd33b82
* Wed Jul 12 2006 Jindrich Novy <jnovy@redhat.com> - 1:1.0-1.23
35568b7
- remove ugly suffixes added by rebuild script
35568b7
dbac4e7
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:1.0-1.21.2.1
dbac4e7
- rebuild
dbac4e7
e39b702
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:1.0-1.20.2
e39b702
- bump again for double-long bug on ppc(64)
e39b702
e39b702
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:1.0-1.19.1
317599f
- rebuilt for new gcc4.1 snapshot and glibc changes
317599f
3e12183
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
3e12183
- rebuilt
3e12183
1ada992
* Mon Nov 14 2005 Jindrich Novy <jnovy@redhat.com>
1ada992
- more spec cleanup - thanks to Matthias Saou (#172968)
1ada992
- use UTF-8 encoding in the source
1ada992
56723b3
* Mon Nov  7 2005 Jindrich Novy <jnovy@redhat.com>
56723b3
- add hardlink man page
56723b3
- add -h option
56723b3
- use _sbindir instead of /usr/sbin directly
56723b3
- don't warn because of uninitialized variable
56723b3
- spec cleanup
56723b3
88049ce
* Fri Aug 26 2005 Dave Jones <davej@redhat.com>
88049ce
- Document hardlink command line options. (Ville Skytta) (#161738)
88049ce
687892a
* Wed Apr 27 2005 Jeremy Katz <katzj@redhat.com>
687892a
- don't try to hardlink 0 byte files (#154404)
687892a
Florian La Roche 9cf1a4a
* Fri Apr 15 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche 9cf1a4a
- remove empty scripts
Florian La Roche 9cf1a4a
9b08a90
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
9b08a90
- rebuild for gcc4
9b08a90
48e98e2
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
48e98e2
- rebuild with -D_FORTIFY_SOURCE=2
48e98e2
5a730ec
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
5a730ec
- Add missing Obsoletes: kernel-utils
5a730ec
aa76c54
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
aa76c54
- Initial packaging, based upon kernel-utils.