## NOTE Please ask before touching this spec - thanks ;) [barjac] #################################################################### # # $Id: harbour.spec 16946 2011-07-17 13:10:57Z vszakats $ # # --------------------------------------------------------------- # Copyright 2003 Przemyslaw Czerpak , # Dave Pearson # Harbour RPM spec file # # See COPYING for licensing terms. # --------------------------------------------------------------- # --------------------------------------------------------------- # HOWTO .rpm docs: # http://fedoraproject.org/wiki/PackageMaintainers/CreatingPackageHowTo # http://www.gurulabs.com/downloads/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.PDF # --------------------------------------------------------------- # TOFIX: Contrib packages with dependencies will be packaged # into separate .rpms, but their headers will be packaged # into the core Harbour package. This f.e. makes it impossible # to detect a Harbour contrib package by checking the existence # of the header. [vszakats] # Fixed: All headers are now in the correct packages [barjac] ###################################################################### # # This spec has been adapted for Mageia from the original # which is available in the tarball. # ###################################################################### ## Definitions. ###################################################################### %define hb_ldconf %([ -d /etc/ld.so.conf.d ] && echo /etc/ld.so.conf.d) %if "%{hb_ldconf}" == "" %undefine hb_ldconf %endif %define _with_jpeg 1 %define _with_localpcre 1 %define _with_localzlib 1 # Comment %%define to disable contrib package builds. %define _with_allegro 1 %define _with_cairo 1 %define _with_cups 1 %define _with_curl 1 %define _with_firebird 1 %define _with_gd 1 %define _with_mysql 1 %define _with_odbc 1 %define _with_pgsql 1 %define _with_qt 1 %define libharbour %mklibname %{name} %define name harbour %define dname Harbour %define version 3.0.0 %define hb_etcdir /etc/%{name} %define hb_plat export HB_PLATFORM=linux %define hb_cc export HB_COMPILER=gcc %define hb_cflag export HB_USER_CFLAGS= %define hb_lflag export HB_USER_LDFLAGS= %define hb_dflag export HB_USER_DFLAGS= %define shl_path export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}`pwd`/lib/${HB_PLATFORM}/${HB_COMPILER}${HB_BUILD_NAME} %define hb_gpm export HB_WITH_GPM=%{!?_without_gpm:yes}%{?_without_gpm:no} %define hb_crs export HB_WITH_CURSES=%{!?_without_curses:yes}%{?_without_curses:no} %define hb_sln export HB_WITH_SLANG=%{!?_without_slang:yes}%{?_without_slang:no} %define hb_x11 export HB_WITH_X11=%{!?_without_x11:yes}%{?_without_x11:no} %define hb_local export HB_WITH_ZLIB=%{?_with_localzlib:local} ; export HB_WITH_PCRE=%{?_with_localpcre:local} %define hb_proot export HB_INSTALL_PKG_ROOT=%{buildroot} %define hb_bdir export HB_INSTALL_BIN=%{buildroot}%{_bindir} %define hb_idir export HB_INSTALL_INC=%{buildroot}%{_includedir}/%{name} %define hb_ldir export HB_INSTALL_LIB=%{buildroot}%{_libdir}/%{name} %define hb_ddir export HB_INSTALL_DYN=%{buildroot}%{_libdir}/%{name} %define hb_edir export HB_INSTALL_ETC=%{buildroot}%{hb_etcdir} %define hb_mdir export HB_INSTALL_MAN=%{buildroot}%{_mandir} %define hb_tdir export HB_INSTALL_DOC=%{buildroot}%{_docdir}/%{name} %define hb_blds export HB_BUILD_STRIP=all %define hb_bldsh export HB_BUILD_SHARED=%{!?_with_static:yes} %define hb_cmrc export HB_BUILD_NOGPLLIB=%{?_without_gpllib:yes} %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 hbide %{?_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" %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} ###################################################################### ## Preamble. ###################################################################### Summary: Free software Clipper compatible compiler Summary(pl): Darmowy kompilator kompatybilny z jM-DM-^Yzykiem Clipper Summary(pt_BR): Um compilador Clipper compativel Gratis Summary(ru): ????????? ??????????, ??????????? ? ?????? Clipper Summary(hu): Szabad szoftver Clipper kompatibilis fordM-CM--tM-CM-3 Name: %{name} Version: %{version} Release: %mkrel 4 License: GPLv2+ Group: Development/Other URL: http://harbour-project.org/ Source0: http://downloads.sourceforge.net/project/harbour-project/source/3.0.0/harbour-3.0.0.tar.xz Source1: hbide.png %{!?_without_curses:BuildRequires: ncurses-devel} %{!?_without_gpm:BuildRequires: gpm-devel} BuildRequires: openssl-devel BuildRequires: %{_lib}zlib-devel %{?_with_allegro:BuildRequires: %{_lib}allegro-devel} %{?_with_cairo:BuildRequires: %{_lib}cairo-devel} %{?_with_gd:BuildRequires: %{_lib}gd-devel} %{?_with_mysql:BuildRequires: %{_lib}mariadb-devel} %{?_with_qt:BuildRequires: pkgconfig(QtWebKit)} %{?_with_cups:BuildRequires: %{_lib}cups2-devel} %{?_with_curl:BuildRequires: %{_lib}curl-devel} %{?_with_firebird:BuildRequires: firebird-devel} %{?_with_odbc:BuildRequires: %{_lib}unixODBC-devel} %{?_with_pgsql:BuildRequires: postgresql9.1-devel} Requires: %{libharbour} = %{version}-%{release} Provides: %{name} = %{version}-%{release} Patch0: harbour-3.0.0-mga-hbrun_DSO.patch %{?_with_curl:Patch1: harbour-3.0.0-mga-curl_types.h_core.c.patch} %define _noautoreq 'libharbour.*' %description %{dname} is a CA-Cl*pper compatible compiler for multiple platforms. This package includes a compiler, pre-processor, header files, virtual machine and documentation. Features: Written in ANSI C Multi-threading, Unicode, scriptable Full Clipper 5 compatibility Partial Xbase++ compatibility Highly compatible with xHarbour fork (via xhb library) %description -l pl %{dname} to kompatybilny z jM-DM-^Yzykiem CA-Cl*pper kompilator rozwijany na wielu rM-CM-3M-EM- hbide.desktop <