as-gui/as-gui.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 3
c2e6bf16b6f4
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

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@85 47 BuildPreReq: OpenPKG, openpkg >= 20050615
michael@85 48 PreReq: OpenPKG, openpkg >= 20050615
michael@85 49 BuildPreReq: make, gcc, gcc::with_cxx = yes, pkgconfig
michael@85 50 BuildPreReq: qt
michael@85 51 PreReq: qt
michael@1 52 %if "%{with_corba}" == "yes"
michael@1 53 BuildPreReq: mico
michael@1 54 PreReq: mico
michael@1 55 %endif
michael@1 56 %if "%{with_soap}" == "yes"
michael@1 57 BuildPreReq: easysoap
michael@1 58 PreReq: easysoap
michael@1 59 %endif
michael@1 60 AutoReq: no
michael@1 61 AutoReqProv: no
michael@1 62
michael@1 63 %description
michael@3 64 Accounting System (AS) is a time tracking and accounting system.
michael@3 65 AS GUI is the graphical user interface client.
michael@1 66
michael@1 67 %track
michael@1 68 prog as-gui = {
michael@1 69 version = %{version}
michael@3 70 url = ftp://ftp.europalab.com/pub/sfw/asgui/
michael@1 71 regex = as-gui-(__VER__)\.tar\.gz
michael@1 72 }
michael@1 73
michael@1 74 %prep
michael@1 75 %setup -q -n as-gui-%{version}
michael@1 76 cp %{l_shtool} .
michael@1 77 %{l_shtool} subst \
michael@1 78 -e 's;\($(IDL) --c++-suffix=cpp\) \($<\);\1 --use-quotes \2;' \
michael@1 79 Makefile.in
michael@1 80
michael@1 81 %build
michael@1 82 CC="%{l_cc}" \
michael@1 83 CXX="%{l_cxx}" \
michael@1 84 CPPFLAGS="%{l_cppflags}" \
michael@1 85 CFLAGS="%{l_cflags -O}" \
michael@1 86 CXXFLAGS="%{l_cxxflags -O}" \
michael@1 87 LDFLAGS="%{l_ldflags}" \
michael@1 88 ./configure \
michael@1 89 --prefix=%{l_prefix} \
michael@1 90 --datadir=%{l_prefix}/share/as-gui \
michael@1 91 --x-includes=`%{l_rc} --query x11_incdir` \
michael@1 92 --x-libraries=`%{l_rc} --query x11_libdir` \
michael@1 93 %if "%{with_corba}" == "yes"
michael@1 94 --with-mico=%{l_prefix} \
michael@1 95 %endif
michael@1 96 %if "%{with_soap}" == "yes"
michael@1 97 --with-esoap=%{l_prefix} \
michael@1 98 %endif
michael@1 99 --with-qt=%{l_prefix}
michael@1 100 %{l_make} %{l_mflags -O}
michael@1 101
michael@1 102 %install
michael@1 103 rm -rf $RPM_BUILD_ROOT
michael@1 104 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@1 105 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@1 106
michael@1 107 %files -f files
michael@1 108
michael@1 109 %clean
michael@1 110 rm -rf $RPM_BUILD_ROOT
michael@1 111

mercurial