1 |
misc |
95522 |
Name: xsel |
2 |
|
|
Version: 1.2.0 |
3 |
|
|
Release: %mkrel 1 |
4 |
|
|
Summary: Command line clipboard and X selection tool |
5 |
|
|
Group: Applications/System |
6 |
|
|
License: MIT |
7 |
|
|
URL: http://www.vergenet.net/~conrad/software/xsel/ |
8 |
|
|
Source0: http://www.vergenet.net/~conrad/software/xsel/download/xsel-%{version}.tar.gz |
9 |
|
|
# Applied upstream (BZ#690214) |
10 |
|
|
Patch0: xsel-1.2.0-MAX_NUM_TARGETS.patch |
11 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
12 |
misc |
95530 |
BuildRequires: devel(libSM) |
13 |
|
|
BuildRequires: devel(libXt) |
14 |
|
|
BuildRequires: devel(libXext) |
15 |
misc |
95522 |
|
16 |
|
|
%description |
17 |
|
|
XSel is a command line or script utility, similar to xclip, that can copy the |
18 |
|
|
primary and secondary X selection, or any highlighted text, to or from a file, |
19 |
|
|
stdin or stdout. It can also append to and delete the clipboard or buffer that |
20 |
|
|
you would paste with the middle mouse button. |
21 |
|
|
|
22 |
|
|
%prep |
23 |
|
|
%setup -q |
24 |
|
|
%patch0 -p1 -b .MAX_NUM_TARGETS |
25 |
|
|
|
26 |
|
|
%build |
27 |
|
|
%configure |
28 |
|
|
%make |
29 |
|
|
|
30 |
|
|
%install |
31 |
|
|
rm -rf $RPM_BUILD_ROOT |
32 |
|
|
make DESTDIR=$RPM_BUILD_ROOT install |
33 |
|
|
|
34 |
|
|
%clean |
35 |
|
|
rm -rf $RPM_BUILD_ROOT |
36 |
|
|
|
37 |
|
|
%files |
38 |
|
|
%defattr(-,root,root,-) |
39 |
|
|
%doc AUTHORS ChangeLog COPYING README |
40 |
|
|
%{_mandir}/man1/xsel.1x* |
41 |
|
|
%{_bindir}/xsel |
42 |
|
|
|