as-gui/as-gui.spec

Thu, 08 Jan 2009 18:28:40 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 08 Jan 2009 18:28:40 +0100
changeset 45
d2954f86e9e6
parent 1
52e8b53d33be
child 85
e6a1cd7ed6ba
permissions
-rw-r--r--

Depend on sed, grep, and binutils, because libtool hard codes values.
This unfortunate dependency change is necessary because the main
program script calls helper tools from hard coded paths. Please
see /pfx/bin/libtool:77 for the example SED="/pfx/bin/sed".

michael@1 1 ##
michael@1 2 ## as-gui.spec -- OpenPKG RPM Package Specification
michael@1 3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@1 4 ##
michael@1 5 ## Permission to use, copy, modify, and distribute this software for
michael@1 6 ## any purpose with or without fee is hereby granted, provided that
michael@1 7 ## the above copyright notice and this permission notice appear in all
michael@1 8 ## copies.
michael@1 9 ##
michael@1 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@1 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@1 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@1 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@1 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@1 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@1 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@1 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@1 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@1 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@1 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@1 21 ## SUCH DAMAGE.
michael@1 22 ##
michael@1 23
michael@1 24 # package information
michael@1 25 Name: as-gui
michael@1 26 Summary: Accounting System (AS) Graphical User Interface (GUI)
michael@3 27 URL: http://asgui.europalab.com/
michael@1 28 Vendor: Michael Schloh von Bennewitz
michael@1 29 Packager: OpenPKG Foundation e.V.
michael@1 30 Distribution: OpenPKG Community
michael@1 31 Class: EVAL
michael@1 32 Group: Finance
michael@1 33 License: GPL
michael@3 34 Version: 0.7.8
michael@3 35 Release: 20081212
michael@1 36
michael@1 37 # package options
michael@1 38 %option with_corba yes
michael@1 39 %option with_soap yes
michael@1 40
michael@1 41 # list of sources
michael@3 42 Source0: ftp://ftp.europalab.com/pub/sfw/asgui/as-gui-%{version}.tar.gz
michael@1 43
michael@1 44 # build information
michael@1 45 Prefix: %{l_prefix}
michael@1 46 BuildRoot: %{l_buildroot}
michael@1 47 BuildPreReq: OpenPKG, openpkg >= 20050615, qt, pkgconfig, make
michael@1 48 PreReq: OpenPKG, openpkg >= 20050615, qt
michael@1 49 %if "%{with_corba}" == "yes"
michael@1 50 BuildPreReq: mico
michael@1 51 PreReq: mico
michael@1 52 %endif
michael@1 53 %if "%{with_soap}" == "yes"
michael@1 54 BuildPreReq: easysoap
michael@1 55 PreReq: easysoap
michael@1 56 %endif
michael@1 57 AutoReq: no
michael@1 58 AutoReqProv: no
michael@1 59
michael@1 60 %description
michael@3 61 Accounting System (AS) is a time tracking and accounting system.
michael@3 62 AS GUI is the graphical user interface client.
michael@1 63
michael@1 64 %track
michael@1 65 prog as-gui = {
michael@1 66 version = %{version}
michael@3 67 url = ftp://ftp.europalab.com/pub/sfw/asgui/
michael@1 68 regex = as-gui-(__VER__)\.tar\.gz
michael@1 69 }
michael@1 70
michael@1 71 %prep
michael@1 72 %setup -q -n as-gui-%{version}
michael@1 73 cp %{l_shtool} .
michael@1 74 %{l_shtool} subst \
michael@1 75 -e 's;\($(IDL) --c++-suffix=cpp\) \($<\);\1 --use-quotes \2;' \
michael@1 76 Makefile.in
michael@1 77
michael@1 78 %build
michael@1 79 CC="%{l_cc}" \
michael@1 80 CXX="%{l_cxx}" \
michael@1 81 CPPFLAGS="%{l_cppflags}" \
michael@1 82 CFLAGS="%{l_cflags -O}" \
michael@1 83 CXXFLAGS="%{l_cxxflags -O}" \
michael@1 84 LDFLAGS="%{l_ldflags}" \
michael@1 85 ./configure \
michael@1 86 --prefix=%{l_prefix} \
michael@1 87 --datadir=%{l_prefix}/share/as-gui \
michael@1 88 --x-includes=`%{l_rc} --query x11_incdir` \
michael@1 89 --x-libraries=`%{l_rc} --query x11_libdir` \
michael@1 90 %if "%{with_corba}" == "yes"
michael@1 91 --with-mico=%{l_prefix} \
michael@1 92 %endif
michael@1 93 %if "%{with_soap}" == "yes"
michael@1 94 --with-esoap=%{l_prefix} \
michael@1 95 %endif
michael@1 96 --with-qt=%{l_prefix}
michael@1 97 %{l_make} %{l_mflags -O}
michael@1 98
michael@1 99 %install
michael@1 100 rm -rf $RPM_BUILD_ROOT
michael@1 101 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@1 102 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@1 103
michael@1 104 %files -f files
michael@1 105
michael@1 106 %clean
michael@1 107 rm -rf $RPM_BUILD_ROOT
michael@1 108

mercurial