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