- mass attack: s/%patch /%patch0 / -- usefull for overloaded %patch macro
[packages/OffiX-Clipboard.git] / OffiX-Clipboard.spec
1 # TODO:
2 # - DESTDIR patch
3 Summary:        A drag and drop clipboard patch for xclipboard
4 Summary(pl):    Xclipboard z ³at± do obs³ugi "przenie¶ i upu¶æ"
5 Name:           OffiX-Clipboard
6 Version:        2.4
7 Release:        8
8 License:        GPL
9 Group:          X11
10 Source0:        ftp://ftp.leb.net/pub/offix/Clipboard-%{version}.tar.gz
11 # Source0-md5:  3fa71e8f5d775d0bfd3e21cbcd370106
12 Source1:        offix-clipboard.desktop
13 Patch0:         Clipboard-2.4-Xaw3d.patch
14 BuildRequires:  OffiX-devel
15 BuildRequires:  Xaw3d-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _appdefsdir     /usr/X11R6/lib/X11/app-defaults
19
20 %description
21 OffiX-Clipboard is a patch to the standard xclipboard program. If you
22 drop things on the clipboard window, they are inserted into the
23 current clipboard.
24
25 %description -l pl
26 OffiX-Clipboard to ³ata na standardowy program xclipboard. Po
27 upuszczeniu na okno schowka, dana rzecz zostaje umieszczona w bie¿±cym
28 schowku.
29
30 %prep
31 %setup -q -n Clipboard-2.4
32 %patch0 -p1
33
34 %build
35 %configure2_13 \
36         --with-dnd-inc=%{_includedir}/X11 \
37         --with-dnd-lib=%{_libdir}
38 %{__make}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_appdefsdir},%{_desktopdir}}
43
44 %{__make} install \
45         prefix=$RPM_BUILD_ROOT%{_prefix}
46
47 install Clipboard.ad $RPM_BUILD_ROOT%{_appdefsdir}/Clipboard
48 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc AUTHORS README THANKS
56 %attr(755,root,root) %{_bindir}/clipboard
57 %{_appdefsdir}/Clipboard
58 %{_mandir}/man1/clipboard.1*
59 %{_desktopdir}/*.desktop
This page took 0.038523 seconds and 3 git commands to generate.