]> git.pld-linux.org Git - packages/cdk.git/blob - cdk.spec
- cosmetics
[packages/cdk.git] / cdk.spec
1 %define         ver_ver         4.9.11
2 %define         ver_release     20031210
3
4 Summary:        Curses Development Kit
5 Summary(pl):    Zestaw programistyczny do Curses
6 Name:           cdk
7 Version:        %{ver_ver}_td%{ver_release}
8 Release:        1
9 License:        BSD
10 Group:          Libraries
11 Source0:        ftp://dickey.his.com/cdk/%{name}-%{ver_ver}-%{ver_release}.tgz
12 # Source0-md5:  3ceba51c3aa0bc526962f54f86ef616a
13 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
14 # Source1-md5:  ae2a6fea526cc1c4407e547bda537a08
15 Patch0:         %{name}-man_remove_dupl.patch
16 URL:            http://dickey.his.com/cdk/cdk.html
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 CDK is a widget set developed on top of the basic curses library. It
21 contains 21 ready to use widgets. Some which are a text entry field, a
22 scrolling list, a selection list, a alphalist, pull-down menu, radio
23 list, viewer widget, dialog box, and many more.
24
25 This version of CDK is maintained by Thomas Dickey and is not the same
26 as that at http://www.vexus.ca/CDK.html.
27
28 %description -l pl
29 CDK to zestaw widgetów zbudowanych na podstawie biblioteki curses.
30 Zawiera 21 gotowych go u¿ycia widgetów. W¶ród nich jest pole
31 wprowadzania tekstu, lista przewijana, lista wyboru, lista
32 alfabetyczna, menu rozwijane, lista przycisków, przegl±darka, okienko
33 dialogowe i wiele innych.
34
35 Ta wersja CDK jest prowadzona przez Thomasa Dickeya i nie jest tym
36 samym, co znajduje siê pod adresem http://www.vexus.ca/CDK.html.
37
38 %package devel
39 Summary:        Header files and development documentation for CDK library
40 Summary(pl):    Pliki nag³ówkowe i dokumentacja do CDK
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}
43 Requires:       ncurses-devel
44
45 %description devel
46 Header files and development documentation for CDK library. This
47 version is maintained by Thomas Dickey and is not the same as that at
48 http://www.vexus.ca/CDK.html.
49
50 %description devel -l pl
51 Pliki nag³ówkowe i dokumentacja programisty do biblioteki CDK. Ta
52 wersja jest prowadzona przez Thomasa Dickeya i nie jest tym samym, co
53 znajduje siê pod adresem http://www.vexus.ca/CDK.html.
54
55 %package static
56 Summary:        Static version of CDK library
57 Summary(pl):    Statyczna wersja biblioteki CDK
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}
60
61 %description static
62 Static version of CDK library. This version is maintained by Thomas
63 Dickey and is not the same as that at http://www.vexus.ca/CDK.html.
64
65 %description static -l pl
66 Statyczna wersja biblioteki CDK. Ta wersja jest prowadzona przez
67 Thomasa Dickeya i nie jest tym samym, co znajduje siê pod adresem
68 http://www.vexus.ca/CDK.html.
69
70 %prep
71 %setup -q -n %{name}-%{ver_ver}-%{ver_release}
72 %patch0 -p1
73 ln -sf . include/cdk
74
75 %build
76 # -funsigned-char gives valid 8bit display
77 CFLAGS="%{rpmcflags} -funsigned-char"
78 CPPFLAGS="-I/usr/include/ncurses"
79 %configure2_13 \
80         --disable-x \
81         --with-ncurses
82 %{__make}
83 %{__make} cdkshlib
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
88
89 %{__make} installCDKSHLibrary installCDKLibrary \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %{__make} installCDKHeaderFiles installCDKManPages \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 bzcat %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
96
97 for d in demos examples; do
98         rm -f $d/Makefile.in
99         mkf=$d/Makefile
100         sed 's|\-I\.\..*/include |\-I%{_includedir}/cdk |' <$mkf >$mkf.fix
101         mv -f $mkf.fix $mkf
102 done
103 cp -rf demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post   -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
110
111 %files
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %doc CHANGES COPYING EXPANDING NOTES README TODO
118 %attr(755,root,root) %{_libdir}/lib*.so
119 %{_includedir}/cdk
120 %{_mandir}/man3/*
121 %{_examplesdir}/%{name}-%{version}
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/lib*.a
This page took 0.083997 seconds and 3 git commands to generate.