a05fee3
Name:           xsel
a05fee3
Version:        1.2.0
70689f8
Release:        28%{?dist}
a05fee3
Summary:        Command line clipboard and X selection tool
a05fee3
License:        MIT
a05fee3
URL:            http://www.vergenet.net/~conrad/software/xsel/
a05fee3
Source0:        http://www.vergenet.net/~conrad/software/xsel/download/xsel-%{version}.tar.gz
a4f96db
ab2556f
# Applied upstream (BZ#690214)
ab2556f
Patch0:         xsel-1.2.0-MAX_NUM_TARGETS.patch
4d432dd
# Upstream: https://github.com/kfish/xsel/commit/ba8656dc7c7e771c802fc957ce3dd128d4b6e3ae
4d432dd
Patch1:         xsel-1.2.0-fix-large-pastes.patch
c13cc7d
# Patch for rhbz#1473002, taken from https://github.com/kfish/xsel/pull/6
c13cc7d
Patch2:         xsel-1.2.0-fix-java-pasting.patch
6a957e9
# Patches for rhbz#1529894, taken from https://github.com/kfish/xsel/pull/16
6a957e9
Patch3:         xsel-1.2.0-do-not-terminate-string.patch
6a957e9
Patch4:         xsel-1.2.0-send-correct-event.patch
2392a49
# TODO: forward upstream
2392a49
Patch5:         xsel-1.2.0-fix-buffer-overflow.patch
a4f96db
Igor Gnatenko 0f9eb83
BuildRequires:  gcc
a4f96db
BuildRequires:  make
a4f96db
BuildRequires:  libSM-devel
a4f96db
BuildRequires:  libXt-devel
a4f96db
BuildRequires:  libXext-devel
a05fee3
a05fee3
%description
a05fee3
XSel is a command line or script utility, similar to xclip, that can copy the
a05fee3
primary and secondary X selection, or any highlighted text, to or from a file,
a05fee3
stdin or stdout. It can also append to and delete the clipboard or buffer that
a05fee3
you would paste with the middle mouse button.
a05fee3
a05fee3
%prep
a05fee3
%setup -q
ab2556f
%patch0 -p1 -b .MAX_NUM_TARGETS
4d432dd
%patch1 -p1
c13cc7d
%patch2 -p1
6a957e9
%patch3 -p1
6a957e9
%patch4 -p1
2392a49
%patch5 -p1
a05fee3
a05fee3
%build
a05fee3
%configure
a05fee3
make %{?_smp_mflags}
a05fee3
a05fee3
%install
a05fee3
rm -rf $RPM_BUILD_ROOT
a05fee3
make DESTDIR=$RPM_BUILD_ROOT install
a05fee3
a05fee3
%files
a05fee3
%doc AUTHORS ChangeLog COPYING README
a05fee3
%{_mandir}/man1/xsel.1x*
a05fee3
%{_bindir}/xsel
a05fee3
a05fee3
%changelog
70689f8
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-28
70689f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
70689f8
6ccfcfd
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-27
6ccfcfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6ccfcfd
d1046fd
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-26
d1046fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d1046fd
e27d681
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-25
e27d681
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e27d681
a4f96db
* Wed Feb 13 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-24
2392a49
- Fix buffer overflow, resolves: rhbz#1676251
a4f96db
- Add missing BR on make
a4f96db
87c045a
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-24
87c045a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
87c045a
42bbdaf
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-23
42bbdaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
42bbdaf
7463ea0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-22
7463ea0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7463ea0
6a957e9
* Wed Jan 03 2018 Tomas Radej <tradej@redhat.com> - 1.2.0-21
6a957e9
- Fixed pasting into Chromium browser
6a957e9
- Resolves: rhbz#1529894
6a957e9
e0faf61
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-20
e0faf61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e0faf61
c13cc7d
* Wed Jul 26 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-19
c13cc7d
- Fix pasting into Java programs
c13cc7d
- Resolves: rhbz#1473002
c13cc7d
9e9d555
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-18
9e9d555
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9e9d555
114645e
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-17
114645e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
114645e
c1188c3
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-16
c1188c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c1188c3
f28f84b
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-15
f28f84b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f28f84b
4cb9775
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-14
4cb9775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4cb9775
6e25611
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-13
6e25611
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6e25611
962f3a1
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-12
962f3a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
962f3a1
ea0815a
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-11
ea0815a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ea0815a
4d432dd
* Thu Apr 05 2012 Hans de Goede <hdegoede@redhat.com> - 1.2.0-10
4d432dd
- Fix xsel not working when pasting large amounts of text
4d432dd
7fd9cc4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-9
7fd9cc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7fd9cc4
ab2556f
* Thu Apr 07 2011 Rakesh Pandit <rakesh@fedoraproject.org> - 1.2.0-8
ab2556f
- xsel-1.2.0-MAX_NUM_TARGETS.patch: fix xsel overflow of supported_targets array
ab2556f
  (BZ#690214 - Thanks Hans de Goede)
ab2556f
50e1e15
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-7
50e1e15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
50e1e15
3d2d1b8
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-6
3d2d1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3d2d1b8
af0eb61
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-5
af0eb61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
af0eb61
a2fccc6
* Fri Aug 08 2008 Rakesh Pandit <rakesh@fedoraproject.org> - 1.2.0-4
a2fccc6
- retag for F-8, missing spec file
a2fccc6
a05fee3
* Sat Jul 26 2008 Rakesh Pandit <rakesh@fedoraproject.org> - 1.2.0-3
a05fee3
- file section to catch all man compressions & no compressions
a05fee3
a05fee3
* Sat Apr 19 2008 Henry Kroll <nospam[AT]thenerdshow.com> - 1.2.0-2
a05fee3
- Standardize build section, remove unnecessary CDEBUGFLAGS.
a05fee3
- Break up long lines, general cleanup.
a05fee3
a05fee3
* Sat Apr 12 2008 Henry Kroll <nospam[AT]thenerdshow.com> - 1.2.0-1
a05fee3
- Version upgrade
a05fee3
- Change license to MIT Old Style
a05fee3
- Fix URL, Requires, BuildRequires. 
a05fee3
- Change group to Applications/System re: xclip. Include keywords
a05fee3
 in the description to make it easier to find.
a05fee3
a05fee3
* Thu Mar 20 2008 Henry Kroll <nospam[AT]thenerdshow.com> - 1.1.0-1
a05fee3
- RPM test build