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