]> git.pld-linux.org Git - packages/PDCurses.git/blob - PDCurses.spec
- link fix, separated -devel and -static
[packages/PDCurses.git] / PDCurses.spec
1 Summary:        Public Domain Curses
2 Summary(pl):    Ogólnie dostêpna biblioteka Curses
3 Name:           PDCurses
4 Version:        2.6
5 Release:        1
6 Vendor:         Mark Hessling
7 Group:          Libraries
8 License:        Public Domain and LGPL
9 Source0:        http://dl.sourceforge.net/pdcurses/%{name}-%{version}.tar.gz
10 # Source0-md5:  a376c91c7fdfa0215f4c22024ca325f1
11 Patch0:         %{name}-DESTDIR.patch
12 URL:            http://pdcurses.sourceforge.net/
13 BuildRequires:  XFree86-devel
14 BuildRequires:  autoconf
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 PDCurses is an implementation of the curses library for X11. It
19 provides the ability for existing text-mode curses programs to be
20 re-built as native X11 applications with very little modification.
21 PDCurses for X11 is also known as XCurses. For more information on
22 PDCurses, visit http://pdcurses.sourceforge.net/ .
23
24 %description -l pl
25 PDCurses jest implementacj± biblioteki curses dla X11. Umo¿liwia ona
26 przebudowanie istniej±cych programów tekstowych korzystaj±cych z
27 curses jako natywne aplikacje X11 po jedynie niewielkich
28 modyfikacjach. PDCurses dla X11 jest znana tak¿e jako XCurses. Wiêcej
29 informacji na temat PDCurses mo¿na znale¼æ na stronie
30 http://pdcurses.sourceforge.net/ .
31
32 %package devel
33 Summary:        Header files for PDCurses library
34 Summary(pl):    Pliki nag³ówkowe biblioteki PDCurses
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}
37
38 %description devel
39 Header files for PDCurses library.
40
41 %description devel -l pl
42 Pliki nag³ówkowe biblioteki PDCurses.
43
44 %package static
45 Summary:        Static version of PDCurses library
46 Summary(pl):    Statyczna wersja biblioteki PDCurses
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}
49
50 %description static
51 Static version of PDCurses library.
52
53 %description static -l pl
54 Statyczna wersja biblioteki PDCurses.
55
56 %prep
57 %setup -q
58 %patch0
59
60 %build
61 %{__autoconf}
62 %configure
63 %{__make} \
64         LD_RXLIB2="-Wl,-soname=libXCurses.so -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11"
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc README TODO
81 %attr(755,root,root) %{_libdir}/libXCurses.so
82
83 %files devel
84 %defattr(644,root,root,755)
85 %doc doc/*
86 %attr(755,root,root) %{_bindir}/xcurses-config
87 # this one is static-only
88 %{_libdir}/libXpanel.a
89 %{_includedir}/%{name}
90
91 %files static
92 %defattr(644,root,root,755)
93 %{_libdir}/libXCurses.a
This page took 0.10932 seconds and 3 git commands to generate.