]> git.pld-linux.org Git - packages/clip.git/blob - clip.spec
b8c8e0ba3d88cfd0ee77f4efcd308580388ef83a
[packages/clip.git] / clip.spec
1 %define rel 1
2
3 %define _unpackaged_files_terminate_build  0
4
5 %define with_cobra    0
6 %define with_codb     0
7 %define with_bzip2    0
8 %define with_com      1
9 %define with_crypto   1
10 %define with_cti      0
11 %define with_gtk      0
12 %define with_gd       0
13 %define with_gtk2     0
14 %define with_gzip     0
15 %define with_mysql    0
16 %define with_oasis    0
17 %define with_odbc     0
18 %define with_postgres 0
19 %define with_rtf      0
20 %define with_fw       0
21
22
23 Summary:        XBASE/Clipper compatible program compiler
24 Name:           clip
25 Version:        1.1.11
26 Release:        %{rel}cis
27 Vendor:         CISLinux
28 Packager:       Slava Zanko <slavaz@cis.by>
29 URL:            http://www.itk.ru
30 Group:          Development
31 Copyright:      GPL
32 Requires:       clip-lib = %{version}-%{release}
33 Requires:       gcc, make, binutils, readline, flex, gettext
34 BuildRequires:  gcc, make, binutils, readline, flex, gettext
35 Source0:        ftp://ftp.itk.ru/pub/clip/%{name}-prg-%{version}-1.tgz
36 #Source1:        patch.tgz
37 #Patch0:                clip-gtk2-windowgroupRemove.cis.patch
38 #Patch1:                clip-gtk2-transparent-EventBox.cis.patch
39 BuildRoot:      %{_tmppath}/%{name}-root
40
41 %define clipdir /tmp/clip/%{version}-%{rel}
42
43 %description
44 This package includes the clip compiler 
45
46 %package utils
47 Summary: Runtime library for clip.
48 Copyright: GPL
49 Group: System Environment/Libraries
50 Requires: %{name} = %{version}-%{release}
51
52 %description utils
53 This package provides runtime shared libraries for CLIP package
54
55
56 %package lib
57 Summary: Runtime library for clip.
58 Copyright: GPL
59 Group: System Environment/Libraries
60 Prereq: /sbin/ldconfig
61 Requires: gpm
62
63 %description lib
64 This package provides runtime shared libraries for CLIP package
65
66
67 %if "%{with_cobra}" != "0"
68 %package cobra
69 Summary: COBRA development for clip.
70 Copyright: GPL
71 Group: System Environment/Libraries
72 Requires: clip-lib = %{version}-%{release}
73
74 %description cobra
75 This package provides COBRA development for CLIP package
76 %endif
77
78
79 %if "%{with_codb}" != "0"
80 %package codb
81 Summary: CLIP object data base
82 Copyright: GPL
83 Group: System Environment/Libraries
84 Requires: clip-lib = %{version}-%{release}
85
86 %description codb
87 This package provides CLIP object data base
88 %endif
89
90 %if "%{with_bzip2}" != "0"
91 %package bzip2
92 Summary: CLIP bzip2 binding
93 Copyright: GPL
94 Group: System Environment/Libraries
95 Requires: bzip2-libs clip-lib = %{version}-%{release}
96 BuildRequires: bzip2-devel
97
98 %description bzip2
99 This package provides bzip2 binding for CLIP
100 %endif
101
102 %if "%{with_com}" != "0"
103 %package com
104 Summary: COM-port binding for CLIP
105 Copyright: GPL
106 Group: System Environment/Libraries
107 Requires: clip-lib = %{version}-%{release}
108
109 %description com
110 This package provides COM-port binding for CLIP
111 %endif
112
113
114 %if "%{with_crypto}" != "0"
115 %package crypto
116 Summary: CLIP cryptographic binding
117 Copyright: GPL
118 Group: System Environment/Libraries
119 Requires: openssl, clip-lib = %{version}-%{release}
120 BuildRequires: openssl-devel
121
122 %description crypto
123 This package provides cryptographic binding for CLIP
124 %endif
125
126 %if "%{with_cti}" != "0"
127 %package cti
128 Summary: CLIP cti binding
129 Copyright: GPL
130 Group: System Environment/Libraries
131 Requires: clip-lib = %{version}-%{release}
132
133 %description cti
134 This package provides cti binding for CLIP
135 %endif
136
137 %if "%{with_gtk}" != "0"
138 %package gtk
139 Summary: CLIP gtk+ binding
140 Copyright: GPL
141 Group: System Environment/Libraries
142 Requires: gtk+, clip-lib = %{version}-%{release}
143 BuildRequires: gtk+-devel
144
145 %description gtk
146 This package provides gtk+ binding for CLIP
147 %endif
148
149 %if "%{with_gtk2}" != "0"
150 %package gtk2
151 Summary: CLIP gtk2 binding
152 Copyright: GPL
153 Group: System Environment/Libraries
154 Requires: gtk2, clip-lib = %{version}-%{release}
155 BuildRequires: gtk2-devel
156
157 %description gtk2
158 This package provides gtk2 binding for CLIP
159 %endif
160
161 %if "%{with_gzip}" != "0"
162 %package gzip
163 Summary: CLIP gzip binding
164 Copyright: GPL
165 Group: System Environment/Libraries
166 Requires: zlib, clip-lib = %{version}-%{release}
167 BuildRequires: zlib-devel
168
169 %description gzip
170 This package provides gzip binding for CLIP
171 %endif
172
173 %if "%{with_mysql}" != "0"
174 %package mysql
175 Summary: CLIP mySQL binding
176 Copyright: GPL
177 Group: System Environment/Libraries
178 Requires: mysql, clip-lib = %{version}-%{release}
179 BuildRequires: mysql-devel
180
181 %description mysql
182 This package provides mySQL binding for CLIP
183 %endif
184
185 %if "%{with_oasis}" != "0"
186 %package oasis
187 Summary: CLIP oasis binding
188 Copyright: GPL
189 Group: System Environment/Libraries
190 Requires: clip-lib = %{version}-%{release}
191
192 %description oasis
193 This package provides oasis binding for CLIP
194 %endif
195
196 %if "%{with_odbc}" != "0"
197 %package odbc
198 Summary: CLIP ODBC binding
199 Copyright: GPL
200 Group: System Environment/Libraries
201 Requires: unixODBC, clip-lib = %{version}-%{release}
202 BuildRequires: unixODBC-devel
203
204 %description odbc
205 This package provides odbc binding for CLIP
206 %endif
207
208 %if "%{with_postgres}" != "0"
209 %package postgres
210 Summary: CLIP PostgreSQL binding
211 Copyright: GPL
212 Group: System Environment/Libraries
213 Requires: postgresql-libs, clip-lib = %{version}-%{release}
214 BuildRequires: postgresql-devel
215
216 %description postgres
217 This package provides PostgreSQL binding for CLIP
218 %endif
219
220 %if "%{with_rtf}" != "0"
221 %package rtf
222 Summary: CLIP RTF binding
223 Copyright: GPL
224 Group: System Environment/Libraries
225 Requires: clip-lib = %{version}-%{release}
226
227 %description rtf
228 This package provides RTF binding for CLIP
229 %endif
230
231 %if "%{with_gd}" != "0"
232 %package gd
233 Summary: CLIP ODBC binding
234 Copyright: GPL
235 Group: System Environment/Libraries
236 Requires: gd, clip-lib = %{version}-%{release}
237 BuildRequires: gd-devel
238
239 %description gd
240 This package provides gd binding for CLIP
241 %endif
242
243 %if "%{with_fw}" != "0"
244 %package fw
245 Summary: CLIP fw binding
246 Copyright: GPL
247 Group: System Environment/Libraries
248 Requires: clip-lib = %{version}-%{release}
249
250 %description fw
251 This package provides fw binding for CLIP
252 %endif
253
254
255 %prep
256 tar -xzf %{SOURCE0}
257 cd %{name}-prg-%{version}-1
258 #%patch0 -p1
259 #%patch1 -p1
260
261 #tar -xzf %{SOURCE1}
262 #cp -f -R clip-prg/* ./
263 #rm -f -R clip-prg
264
265 %build
266
267 mkdir -p %{clipdir}
268 export CLIPROOT=%{clipdir}
269 cd %{name}-prg-%{version}-1
270 make local
271
272 %install
273 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
274
275 mkdir -p $RPM_BUILD_ROOT/usr/clip
276 mv -f %{clipdir} $RPM_BUILD_ROOT/usr/clip
277
278
279
280 %clean
281 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
282
283
284 %files
285 %defattr(-,root,root)
286 %{clipdir}/bin/add_meta_tag
287 %{clipdir}/bin/clip
288 %{clipdir}/bin/clip_bug
289 %{clipdir}/bin/clip_conv
290 %{clipdir}/bin/clip_cp
291 %{clipdir}/bin/clip_dbg
292 %{clipdir}/bin/clip_hashextract
293 %{clipdir}/bin/clip_makelib
294 %{clipdir}/bin/clip_makeslib
295 %{clipdir}/bin/clip_msgfmt
296 %{clipdir}/bin/clip_msgmerge
297 %{clipdir}/bin/clip_trans
298 %{clipdir}/bin/clipar
299 %{clipdir}/bin/cliphash
300 %{clipdir}/bin/gen_tbl
301 %{clipdir}/bin/joinlib.sh
302 %{clipdir}/bin/lowname
303 %{clipdir}/bin/po_compat
304 %{clipdir}/bin/po_extr
305 %{clipdir}/bin/po_subst
306 %{clipdir}/bin/tconv
307 %{clipdir}/bin/xclip
308 %{clipdir}/cliprc/.notrm
309 %{clipdir}/cliprc/clipflags
310 %{clipdir}/doc/example/Makefile
311 %{clipdir}/doc/example/*.ch
312 %{clipdir}/doc/example/*.prg
313 %{clipdir}/doc/example/test.dbf.orig
314 %{clipdir}/include/Makefile.inc
315 %{clipdir}/include/Makefile.tdoc
316 %{clipdir}/include/_win32.h
317 %{clipdir}/include/achoice.ch
318 %{clipdir}/include/aof.ch
319 %{clipdir}/include/assert.ch
320 %{clipdir}/include/blob.ch
321 %{clipdir}/include/box.ch
322 %{clipdir}/include/browsys.ch
323 %{clipdir}/include/btree.h
324 %{clipdir}/include/button.ch
325 %{clipdir}/include/clip.ch
326 %{clipdir}/include/fwin/*
327 %{clipdir}/include/clip.h
328 %{clipdir}/include/clipbase.h
329 %{clipdir}/include/clipbrd.ch
330 %{clipdir}/include/clipcfg.h
331 %{clipdir}/include/clipcfg.sh
332 %{clipdir}/include/clr_html.ch
333 %{clipdir}/include/color.ch
334 %{clipdir}/include/common.ch
335 %{clipdir}/include/config.ch
336 %{clipdir}/include/ct.ch
337 %{clipdir}/include/ctdisk.ch
338 %{clipdir}/include/ctdrv.ch
339 %{clipdir}/include/ctkbd.ch
340 %{clipdir}/include/ctmisc.ch
341 %{clipdir}/include/ctnnet.ch
342 %{clipdir}/include/ctppc.ch
343 %{clipdir}/include/ctprint.ch
344 %{clipdir}/include/ctps.ch
345 %{clipdir}/include/ctscan.ch
346 %{clipdir}/include/ctsys.ch
347 %{clipdir}/include/ctvideo.ch
348 %{clipdir}/include/ctwin.ch
349 %{clipdir}/include/date.ch
350 %{clipdir}/include/dbedit.ch
351 %{clipdir}/include/dbfsql.h
352 %{clipdir}/include/dbinames.ch
353 %{clipdir}/include/dbinfo.ch
354 %{clipdir}/include/dbms.ch
355 %{clipdir}/include/dbstruct.ch
356 %{clipdir}/include/debug.ch
357 %{clipdir}/include/directry.ch
358 %{clipdir}/include/edit.ch
359 %{clipdir}/include/error.ch
360 %{clipdir}/include/fileio.ch
361 %{clipdir}/include/form.ch
362 %{clipdir}/include/fox.ch
363 %{clipdir}/include/foxsql.ch
364 %{clipdir}/include/frmdef.ch
365 %{clipdir}/include/func_ref.ch
366 %{clipdir}/include/getexit.ch
367 %{clipdir}/include/hash.h
368 %{clipdir}/include/html.ch
369 %{clipdir}/include/imenu.ch
370 %{clipdir}/include/inkey.ch
371 %{clipdir}/include/key_name.ch
372 %{clipdir}/include/lang.ch
373 %{clipdir}/include/lbldef.ch
374 %{clipdir}/include/llibg.ch
375 %{clipdir}/include/memdebug
376 %{clipdir}/include/memoedit.ch
377 %{clipdir}/include/mset.ch
378 %{clipdir}/include/http.ch
379 %{clipdir}/include/ord.ch
380 %{clipdir}/include/ordinfo.ch
381 %{clipdir}/include/pgch.ch
382 %{clipdir}/include/rdd.ch
383 %{clipdir}/include/rddsys.ch
384 %{clipdir}/include/reserved.ch
385 %{clipdir}/include/set.ch
386 %{clipdir}/include/setcurs.ch
387 %{clipdir}/include/setnames.ch
388 %{clipdir}/include/simpleio.ch
389 %{clipdir}/include/six.ch
390 %{clipdir}/include/six2clip.ch
391 %{clipdir}/include/std.ch
392 %{clipdir}/include/std50.ch
393 %{clipdir}/include/std53.ch
394 %{clipdir}/include/task.h
395 %{clipdir}/include/taskcfg.h
396 %{clipdir}/include/tbrowse.ch
397 %{clipdir}/include/ulimit.ch
398 %{clipdir}/lib/libclip.a
399 %{clipdir}/lib/libclip.ex
400 %{clipdir}/lib/libclip.nm
401 %{clipdir}/include/pp_harb.ch
402 %{clipdir}/include/ppclass.ch
403 %{clipdir}/include/rp_dot.ch
404 %{clipdir}/include/rp_run.ch
405 %{clipdir}/include/bggraph.ch
406
407 %{clipdir}/locale.mo/*/clip.mo
408 %{clipdir}/locale.mo/*/cliprt.mo
409 %{clipdir}/locale.po/*/clip.po
410 %{clipdir}/locale.po/*/cliprt.po
411
412 %{clipdir}/locale.mo/*/sys.mo
413 %{clipdir}/locale.po/*/sys.po
414 %{clipdir}/locale.pot/sys/*
415
416 %{clipdir}/locale.mo/*/debug.mo
417 %{clipdir}/locale.po/*/debug.po
418 %{clipdir}/locale.pot/debug/*
419
420 %{clipdir}/locale.po/*/brow.po
421 %{clipdir}/locale.mo/*/brow.mo
422 %{clipdir}/locale.po/*/ca_dbu.po
423 %{clipdir}/locale.mo/*/ca_dbu.mo
424
425 %{clipdir}/locale.po/*/pp.po
426 %{clipdir}/locale.mo/*/pp.mo
427 #%{clipdir}/locale.pot/pp/*
428
429 %{clipdir}/locale.po/*/udb.po
430 %{clipdir}/locale.mo/*/udb.mo
431 %{clipdir}/locale.pot/udb/*
432
433 %{clipdir}/locale.pot/udbx/*.pot
434 %{clipdir}/locale.po/*/udbx.po
435 %{clipdir}/locale.mo/*/udbx.mo
436
437 %files utils
438 %defattr(-,root,root)
439 %{clipdir}/bin/bdbf*
440 %{clipdir}/bin/clip_bl
441 %{clipdir}/bin/clip_blank
442 %{clipdir}/bin/clip_cld
443 %{clipdir}/bin/clip_dbf2txt
444 %{clipdir}/bin/clip_fl
445 %{clipdir}/bin/clip_hindex
446 %{clipdir}/bin/clip_hseek
447 %{clipdir}/bin/clip_hv
448 %{clipdir}/bin/clip_prg
449 %{clipdir}/bin/clip_run
450 %{clipdir}/bin/clip_we
451 %{clipdir}/bin/ctosgml
452 %{clipdir}/bin/dbc
453 %{clipdir}/bin/ftosgml
454 %{clipdir}/bin/pp_ron
455 %{clipdir}/bin/sqlrun
456 %{clipdir}/bin/wcl2prg
457 %{clipdir}/bin/www_clip
458 %{clipdir}/etc/.macro
459 %{clipdir}/etc/.templ
460 %{clipdir}/locale.pot/bdbfs/*.pot
461 %{clipdir}/locale.po/*/bdbfs.po
462 %{clipdir}/locale.mo/*/bdbfs.mo
463
464 %files lib
465 %defattr(-,root,root)
466 %{clipdir}/charsets/*
467 %{clipdir}/etc/environment
468 %{clipdir}/etc/printers.ini
469 %{clipdir}/etc/termcap
470 %{clipdir}/etc/terminfo/*/*
471 %{clipdir}/keymaps/*
472 %{clipdir}/lang/*
473 %{clipdir}/term/*
474 %{clipdir}/lib/libclip.so
475
476 %if "%{with_cobra}" != "0"
477 %files cobra
478 %defattr(-,root,root)
479 %{clipdir}/bin/cobra_clnt1
480 %{clipdir}/bin/cobra_serv
481 %{clipdir}/cobra/auth/*
482 %{clipdir}/cobra/cobra*
483 %{clipdir}/cobra/*.po
484 %{clipdir}/cobra/files/*
485 %{clipdir}/cobra/tcp-wrap/*
486 %{clipdir}/include/cobra.ch
487 %{clipdir}/locale.pot/cobra_clnt/*
488 %{clipdir}/locale.pot/cobra_serv/*
489 %{clipdir}/locale.mo/*/cobra*
490 %{clipdir}/locale.po/*/cobra*
491 %endif
492
493 %if "%{with_codb}" != "0"
494 %files codb
495 %defattr(-,root,root)
496 %{clipdir}/lib/libclip-codb.*
497 %{clipdir}/codb_ab/plugins/*
498 %{clipdir}/codb_ab/plugins/.*
499 %{clipdir}/bin/codb_*
500 %{clipdir}/codb_ab/reports/*
501 %{clipdir}/codb_ab/reports/.*
502 %{clipdir}/codb_abx/plugins/*
503 %{clipdir}/codb_abx/plugins/.*
504 %{clipdir}/include/codb.ch
505 %{clipdir}/include/codbcfg.ch
506 %{clipdir}/locale.po/ru_RU.KOI8-R/codb.po
507 %{clipdir}/locale.pot/codb/*
508 %{clipdir}/locale.mo/*/codb.mo
509 %{clipdir}/locale.po/es_*/codb.po
510 %endif
511
512 %if "%{with_bzip2}" != "0"
513 %files bzip2
514 %defattr(-,root,root)
515 %{clipdir}/doc/example/clip-bzip2/*
516 %{clipdir}/lib/libclip-bzip2.*
517 %endif
518
519 %if "%{with_com}" != "0"
520 %files com
521 %defattr(-,root,root)
522 %{clipdir}/doc/example/clip-com/*
523 %{clipdir}/doc/clip-com/*
524 %{clipdir}/lib/libclip-com.*
525 %endif
526
527 %if "%{with_crypto}" != "0"
528 %files crypto
529 %defattr(-,root,root)
530 %{clipdir}/doc/example/clip-crypto/*
531 %{clipdir}/lib/libclip-crypto.*
532 %endif
533
534
535 %if "%{with_cti}" != "0"
536 %files cti
537 %defattr(-,root,root)
538 %{clipdir}/doc/example/clip-cti/*
539 %{clipdir}/etc/.calendar
540 %{clipdir}/include/cti.ch
541 %{clipdir}/include/cti/*
542 %{clipdir}/lib/libclip-cti.*
543 #%{clipdir}/locale.mo/*/clip-cti.mo
544 #%{clipdir}/locale.po/*/clip-cti.po
545 #%{clipdir}/locale.pot/clip-cti/*.pot
546 %endif
547
548 %if "%{with_gtk}" != "0"
549 %files gtk
550 %defattr(-,root,root)
551 %{clipdir}/cliprc/clip-gtk.cliprc
552 %{clipdir}/doc/example/clip-gtk/*
553 %{clipdir}/include/clip-gtk.ch
554 %{clipdir}/include/clip-gtk.h
555 %{clipdir}/lib/libclip-gtk.*
556 #%{clipdir}/locale.mo/*/clip-gtk.mo
557 #%{clipdir}/locale.po/*/clip-gtk.po
558 #%{clipdir}/locale.pot/clip-gtk/*
559 %endif
560
561 %if "%{with_gtk2}" != "0"
562 %files gtk2
563 %defattr(-,root,root)
564 %{clipdir}/cliprc/clip-gtk2.cliprc
565 %{clipdir}/doc/example/clip-gtk2/*
566 %{clipdir}/include/clip-gtk2.ch
567 %{clipdir}/include/clip-gtk2.h
568 %{clipdir}/include/gtk2-stock.ch
569 %{clipdir}/lib/libclip-gtk2.*
570 #%{clipdir}/locale.mo/*/clip-gtk2.mo
571 #%{clipdir}/locale.po/*/clip-gtk2.po
572 #%{clipdir}/locale.pot/clip-gtk2/*
573
574 %endif
575
576 %if "%{with_gzip}" != "0"
577 %files gzip
578 %defattr(-,root,root)
579 %{clipdir}/doc/example/clip-gzip/*
580 %{clipdir}/lib/libclip-gzip.*
581 %endif
582
583 %if "%{with_mysql}" != "0"
584 %files mysql
585 %defattr(-,root,root)
586 %{clipdir}/doc/example/clip-mysql/*
587 %{clipdir}/doc/clip-mysql/*
588 %{clipdir}/include/mysql.ch
589 %{clipdir}/lib/libclip-mysql.*
590 %endif
591
592 %if "%{with_oasis}" != "0"
593 %files oasis
594 %defattr(-,root,root)
595 %{clipdir}/include/nanfor/*
596 %{clipdir}/include/netto/*
597 %{clipdir}/lib/libclip-nanfor.*
598 %{clipdir}/lib/libclip-netto.*
599 %endif
600
601 %if "%{with_odbc}" != "0"
602 %files odbc
603 %defattr(-,root,root)
604 %{clipdir}/lib/libclip-odbc.*
605 %endif
606
607 %if "%{with_postgres}" != "0"
608 %files postgres
609 %defattr(-,root,root)
610 %{clipdir}/doc/example/clip-postgres/*
611 %{clipdir}/doc/clip-postgres/*
612 %{clipdir}/include/postgres.ch
613 %{clipdir}/lib/libclip-postgres.*
614 %endif
615
616 %if "%{with_rtf}" != "0"
617 %files rtf
618 %defattr(-,root,root)
619 %{clipdir}/doc/example/clip-rtf/*
620 %{clipdir}/include/objects.ch
621 %{clipdir}/include/richtext.ch
622 %{clipdir}/lib/libclip-rtf.*
623 %endif
624
625 %if "%{with_gd}" != "0"
626 %files gd
627 %defattr(-,root,root)
628 %{clipdir}/doc/example/clip-gd/*
629 %{clipdir}/doc/clip-gd/*
630 %{clipdir}/include/gdinfo.ch
631 %{clipdir}/lib/libclip-gd.*
632 %{clipdir}/lib/libgd.*
633 %endif
634
635 %if "%{with_fw}" != "0"
636 %files fw
637 %defattr(-,root,root)
638 %{clipdir}/doc/example/clip-fw/*
639 %{clipdir}/doc/example/clip-fw/.*
640 %{clipdir}/lib/libclip-fw.*
641 #%{clipdir}/locale.mo/*/clip-fw.mo
642 #%{clipdir}/locale.po/*/clip-fw.po
643 #%{clipdir}/locale.pot/clip-fw/*
644
645 %endif
646
647 %changelog
648
649 * Fri Apr 16 2004 Slava Zanko <SlavaZ@cis.by>
650 - creating spec file
This page took 0.192913 seconds and 3 git commands to generate.