| 1 |
# $Id: PDCurses.spec,v 1.18 2008/07/21 12:25:20 wmcbrine Exp $ |
| 2 |
|
| 3 |
%define ver 34 |
| 4 |
%define verdot 3.4 |
| 5 |
%define base /usr |
| 6 |
|
| 7 |
Summary: Public Domain Curses for X11 |
| 8 |
Name: PDCurses |
| 9 |
Version: %verdot |
| 10 |
Release: 1 |
| 11 |
Copyright: Public Domain |
| 12 |
Group: Development/Libraries |
| 13 |
Source: %{name}-%{version}.tar.gz |
| 14 |
URL: http://pdcurses.sourceforge.net |
| 15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
| 16 |
Prefix: %base |
| 17 |
|
| 18 |
%description |
| 19 |
PDCurses for X11 is an implementation of the curses library that lets |
| 20 |
you build text-mode curses programs as native X11 applications. For more |
| 21 |
information, visit http://pdcurses.sourceforge.net/ |
| 22 |
|
| 23 |
%prep |
| 24 |
%setup -q |
| 25 |
|
| 26 |
%build |
| 27 |
./configure --prefix=%{base} |
| 28 |
make |
| 29 |
|
| 30 |
%install |
| 31 |
make DESTDIR=$RPM_BUILD_ROOT install |
| 32 |
|
| 33 |
%clean |
| 34 |
rm -rf $RPM_BUILD_ROOT |
| 35 |
rm -rf $RPM_BUILD_DIR/%{name}-%{version} |
| 36 |
|
| 37 |
%post -p /sbin/ldconfig |
| 38 |
|
| 39 |
%postun -p /sbin/ldconfig |
| 40 |
|
| 41 |
%files |
| 42 |
%defattr(-,root,root) |
| 43 |
%doc README HISTORY |
| 44 |
%{base}/bin/xcurses-config |
| 45 |
%{base}/lib/libXCurses.a |
| 46 |
%{base}/lib/libXpanel.a |
| 47 |
%{base}/lib/libXCurses.so |
| 48 |
%{base}/include/xcurses.h |
| 49 |
%{base}/include/xpanel.h |
| 50 |
%{base}/include/xcurses/curses.h |
| 51 |
%{base}/include/xcurses/panel.h |
| 52 |
%{base}/include/xcurses/term.h |