43 |
# Uncomment %%define to enable contrib package builds. |
# Uncomment %%define to enable contrib package builds. |
44 |
# The "1" is ignored - only the existence of the define is checked. |
# The "1" is ignored - only the existence of the define is checked. |
45 |
|
|
|
## TODO define _with_ads 1 |
|
46 |
%define _with_allegro 1 |
%define _with_allegro 1 |
47 |
%define _with_cairo 1 |
%define _with_cairo 1 |
48 |
%define _with_cups 1 |
%define _with_cups 1 |
51 |
%define _with_gd 1 |
%define _with_gd 1 |
52 |
%define _with_mysql 1 |
%define _with_mysql 1 |
53 |
%define _with_odbc 1 |
%define _with_odbc 1 |
54 |
## TODO define _with_pgsql 1 |
%define _with_pgsql 1 |
55 |
%define _with_qt 1 |
%define _with_qt 1 |
56 |
|
|
57 |
%define libharbour %mklibname %{name} |
%define libharbour %mklibname %{name} |
79 |
%define hb_ddir export HB_INSTALL_DYN=%{buildroot}%{_libdir}/%{name} |
%define hb_ddir export HB_INSTALL_DYN=%{buildroot}%{_libdir}/%{name} |
80 |
%define hb_edir export HB_INSTALL_ETC=%{buildroot}%{hb_etcdir} |
%define hb_edir export HB_INSTALL_ETC=%{buildroot}%{hb_etcdir} |
81 |
%define hb_mdir export HB_INSTALL_MAN=%{buildroot}%{_mandir} |
%define hb_mdir export HB_INSTALL_MAN=%{buildroot}%{_mandir} |
82 |
%define hb_tdir export HB_INSTALL_DOC=%{buildroot}%{_docdir} |
%define hb_tdir export HB_INSTALL_DOC=%{buildroot}%{_docdir}/%{name} |
83 |
%define hb_blds export HB_BUILD_STRIP=all |
%define hb_blds export HB_BUILD_STRIP=all |
84 |
%define hb_bldsh export HB_BUILD_SHARED=%{!?_with_static:yes} |
%define hb_bldsh export HB_BUILD_SHARED=%{!?_with_static:yes} |
85 |
%define hb_cmrc export HB_BUILD_NOGPLLIB=%{?_without_gpllib:yes} |
%define hb_cmrc export HB_BUILD_NOGPLLIB=%{?_without_gpllib:yes} |
86 |
%define hb_ctrb export HB_BUILD_CONTRIBS="hbblink hbclipsm hbct hbgt hbmisc hbmzip hbbz2 hbnetio hbtip hbtpathy hbcomm hbhpdf hbziparc hbfoxpro hbsms hbfship hbxpp xhb rddbm rddsql hbsqlit3 sddsqlt3 hbnf hbhttpd hbformat hbunix hbzebra hblzf hbmemio hbmlzo hbmxml hbexpat %{?_with_allegro:gtalleg} %{?_with_cairo:hbcairo} %{?_with_cups:hbcups} %{?_with_curl:hbcurl} %{?_with_freeimage:hbfimage} %{?_with_gd:hbgd} %{?_with_firebird:hbfbird sddfb} %{?_with_mysql:hbmysql sddmy} %{?_with_odbc:hbodbc sddodbc} %{?_with_pgsql:hbpgsql sddpg} %{?_with_qt:hbqt hbxbp} %{?_with_ads:rddads} hbrun" |
%define hb_ctrb export HB_BUILD_CONTRIBS="hbblink hbclipsm hbct hbgt hbmisc hbmzip hbbz2 hbnetio hbtip hbtpathy hbcomm hbhpdf hbziparc hbfoxpro hbsms hbfship hbxpp xhb rddbm rddsql hbsqlit3 sddsqlt3 hbnf hbhttpd hbformat hbunix hbzebra hblzf hbmemio hbmlzo hbmxml hbexpat %{?_with_allegro:gtalleg} %{?_with_cairo:hbcairo} %{?_with_cups:hbcups} %{?_with_curl:hbcurl} %{?_with_freeimage:hbfimage} %{?_with_gd:hbgd} %{?_with_firebird:hbfbird sddfb} %{?_with_mysql:hbmysql sddmy} %{?_with_odbc:hbodbc sddodbc} %{?_with_pgsql:hbpgsql sddpg} %{?_with_qt:hbqt hbxbp} hbrun" |
87 |
%define hb_env %{hb_plat} ; %{hb_cc} ; %{hb_cflag} ; %{hb_lflag} ; %{hb_dflag} ; %{shl_path} ; %{hb_gpm} ; %{hb_crs} ; %{hb_sln} ; %{hb_x11} ; %{hb_local} ; %{hb_proot} ; %{hb_bdir} ; %{hb_idir} ; %{hb_ldir} ; %{hb_ddir} ; %{hb_edir} ; %{hb_mdir} ; %{hb_tdir} ; %{hb_ctrb} ; %{hb_cmrc} ; %{hb_blds} ; %{hb_bldsh} |
%define hb_env %{hb_plat} ; %{hb_cc} ; %{hb_cflag} ; %{hb_lflag} ; %{hb_dflag} ; %{shl_path} ; %{hb_gpm} ; %{hb_crs} ; %{hb_sln} ; %{hb_x11} ; %{hb_local} ; %{hb_proot} ; %{hb_bdir} ; %{hb_idir} ; %{hb_ldir} ; %{hb_ddir} ; %{hb_edir} ; %{hb_mdir} ; %{hb_tdir} ; %{hb_ctrb} ; %{hb_cmrc} ; %{hb_blds} ; %{hb_bldsh} |
88 |
###################################################################### |
###################################################################### |
89 |
## Preamble. |
## Preamble. |
114 |
%{?_with_curl:BuildRequires: %{_lib}curl-devel} |
%{?_with_curl:BuildRequires: %{_lib}curl-devel} |
115 |
%{?_with_firebird:BuildRequires: firebird-devel} |
%{?_with_firebird:BuildRequires: firebird-devel} |
116 |
%{?_with_odbc:BuildRequires: %{_lib}unixODBC-devel} |
%{?_with_odbc:BuildRequires: %{_lib}unixODBC-devel} |
117 |
|
%{?_with_pgsql:BuildRequires: %{_lib}pq9.1_5} |
118 |
|
|
119 |
Requires: %{libharbour} = %{version}-%{release} |
Requires: %{libharbour} = %{version}-%{release} |
120 |
|
|
237 |
## contrib libs (with package requirements) |
## contrib libs (with package requirements) |
238 |
###################################################################### |
###################################################################### |
239 |
|
|
|
## ADS RDD |
|
|
%{?_with_ads:%package ads} |
|
|
%{?_with_ads:Summary: ADS RDDs for %{dname} compiler} |
|
|
%{?_with_ads:Summary(pl): Bilioteka sterownikM-CM-3w (RDDs) ADS dla kompilatora %{dname}} |
|
|
%{?_with_ads:Group: Development/Other} |
|
|
%{?_with_ads:Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}} |
|
|
|
|
|
%{?_with_ads:%description ads} |
|
|
%{?_with_ads:%{dname} is a Clipper compatible compiler.} |
|
|
%{?_with_ads:This package provides %{dname} ADS RDDs for program linking.} |
|
|
|
|
|
%{?_with_ads:%description -l pl ads} |
|
|
%{?_with_ads:%{dname} to kompatybilny z jM-DM-^Yzykiem CA-Cl*pper kompilator.} |
|
|
%{?_with_ads:Ten pakiet udostM-DM-^Ypnia sterowniki (RDD) ADS dla kompilatora %{dname}.} |
|
|
|
|
240 |
## allegro library |
## allegro library |
241 |
%{?_with_allegro:%package allegro} |
%{?_with_allegro:%package allegro} |
242 |
%{?_with_allegro:Summary: Allegro GT for %{dname} compiler} |
%{?_with_allegro:Summary: Allegro GT for %{dname} compiler} |
444 |
$HB_INSTALL_LIB/liblzf.a \ |
$HB_INSTALL_LIB/liblzf.a \ |
445 |
$HB_INSTALL_LIB/libminilzo.a \ |
$HB_INSTALL_LIB/libminilzo.a \ |
446 |
$HB_INSTALL_LIB/libmxml.a |
$HB_INSTALL_LIB/libmxml.a |
447 |
|
|
448 |
|
|
449 |
###################################################################### |
###################################################################### |
450 |
## File list. |
## File list. |
751 |
%{_libdir}/%{name}/libhbsms.a |
%{_libdir}/%{name}/libhbsms.a |
752 |
%([ -f %{_libdir}/%{name}/libhbssl.a ] && echo %{_libdir}/%{name}/libhbssl.a) |
%([ -f %{_libdir}/%{name}/libhbssl.a ] && echo %{_libdir}/%{name}/libhbssl.a) |
753 |
|
|
|
%{?_with_ads:%files ads} |
|
|
%{?_with_ads:%defattr(644,root,root,755)} |
|
|
%{?_with_ads:%dir %{_libdir}/%{name}} |
|
|
%{?_with_ads:%{_libdir}/%{name}/librddads.a} |
|
|
|
|
754 |
%{?_with_allegro:%files allegro} |
%{?_with_allegro:%files allegro} |
755 |
%{?_with_allegro:%defattr(644,root,root,755)} |
%{?_with_allegro:%defattr(644,root,root,755)} |
756 |
%{?_with_allegro:%dir %{_libdir}/%{name}} |
%{?_with_allegro:%dir %{_libdir}/%{name}} |
822 |
%{?_with_pgsql:%dir %{_libdir}/%{name}} |
%{?_with_pgsql:%dir %{_libdir}/%{name}} |
823 |
%{?_with_pgsql:%{_libdir}/%{name}/libhbpgsql.a} |
%{?_with_pgsql:%{_libdir}/%{name}/libhbpgsql.a} |
824 |
%{?_with_pgsql:%{_libdir}/%{name}/libsddpg.a} |
%{?_with_pgsql:%{_libdir}/%{name}/libsddpg.a} |
825 |
|
%{?_with_pgsql:%defattr(644,root,root)} |
826 |
|
%{?_with_pgsql:%{_includedir}/%{name}/hbpgsql.hbx} |
827 |
|
%{?_with_pgsql:%{_includedir}/%{name}/postgres.ch} |
828 |
|
|
829 |
%{?_with_qt:%files qt} |
%{?_with_qt:%files qt} |
830 |
%{?_with_qt:%defattr(644,root,root,755)} |
%{?_with_qt:%defattr(644,root,root,755)} |