]> git.pld-linux.org Git - packages/cdk.git/blob - cdk.spec
6f3182b827a9d4e326f51df29014f290f34f4c80
[packages/cdk.git] / cdk.spec
1 %define         ver_ver         5.0
2 %define         ver_release     20090215
3
4 Summary:        Curses Development Kit
5 Summary(pl.UTF-8):      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:  851adaa3b6c51d39fb61d8ed1714a7d3
13 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
14 # Source1-md5:  ae2a6fea526cc1c4407e547bda537a08
15 Patch0:         %{name}-ncurses.patch
16 Patch1:         %{name}-man.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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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 install include/cdk_test.h $RPM_BUILD_ROOT%{_includedir}/cdk
99
100 bzcat %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
101
102 for d in demos examples; do
103         rm -f $d/Makefile.in
104         mkf=$d/Makefile
105         sed 's|\-I\.\..*/include |\-I%{_includedir}/cdk |' <$mkf >$mkf.fix
106         mv -f $mkf.fix $mkf
107 done
108 cp -rf demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*
119
120 %files devel
121 %defattr(644,root,root,755)
122 %doc CHANGES COPYING EXPANDING NOTES README TODO
123 %attr(755,root,root) %{_bindir}/cdk5-config
124 %attr(755,root,root) %{_libdir}/lib*.so
125 %{_includedir}/cdk
126 %{_mandir}/man3/*
127 %{_examplesdir}/%{name}-%{version}
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/lib*.a
This page took 0.060044 seconds and 2 git commands to generate.