michael@1: ## michael@1: ## as-gui.spec -- OpenPKG RPM Package Specification michael@1: ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. michael@1: ## michael@1: ## Permission to use, copy, modify, and distribute this software for michael@1: ## any purpose with or without fee is hereby granted, provided that michael@1: ## the above copyright notice and this permission notice appear in all michael@1: ## copies. michael@1: ## michael@1: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@1: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@1: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@1: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@1: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@1: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@1: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@1: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@1: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@1: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@1: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@1: ## SUCH DAMAGE. michael@1: ## michael@1: michael@1: # package information michael@1: Name: as-gui michael@1: Summary: Accounting System (AS) Graphical User Interface (GUI) michael@3: URL: http://asgui.europalab.com/ michael@1: Vendor: Michael Schloh von Bennewitz michael@1: Packager: OpenPKG Foundation e.V. michael@1: Distribution: OpenPKG Community michael@1: Class: EVAL michael@1: Group: Finance michael@1: License: GPL michael@3: Version: 0.7.8 michael@3: Release: 20081212 michael@1: michael@1: # package options michael@1: %option with_corba yes michael@1: %option with_soap yes michael@1: michael@1: # list of sources michael@3: Source0: ftp://ftp.europalab.com/pub/sfw/asgui/as-gui-%{version}.tar.gz michael@1: michael@1: # build information michael@1: Prefix: %{l_prefix} michael@1: BuildRoot: %{l_buildroot} michael@85: BuildPreReq: OpenPKG, openpkg >= 20050615 michael@85: PreReq: OpenPKG, openpkg >= 20050615 michael@85: BuildPreReq: make, gcc, gcc::with_cxx = yes, pkgconfig michael@85: BuildPreReq: qt michael@85: PreReq: qt michael@1: %if "%{with_corba}" == "yes" michael@1: BuildPreReq: mico michael@1: PreReq: mico michael@1: %endif michael@1: %if "%{with_soap}" == "yes" michael@1: BuildPreReq: easysoap michael@1: PreReq: easysoap michael@1: %endif michael@1: AutoReq: no michael@1: AutoReqProv: no michael@1: michael@1: %description michael@3: Accounting System (AS) is a time tracking and accounting system. michael@3: AS GUI is the graphical user interface client. michael@1: michael@1: %track michael@1: prog as-gui = { michael@1: version = %{version} michael@3: url = ftp://ftp.europalab.com/pub/sfw/asgui/ michael@1: regex = as-gui-(__VER__)\.tar\.gz michael@1: } michael@1: michael@1: %prep michael@1: %setup -q -n as-gui-%{version} michael@1: cp %{l_shtool} . michael@1: %{l_shtool} subst \ michael@1: -e 's;\($(IDL) --c++-suffix=cpp\) \($<\);\1 --use-quotes \2;' \ michael@1: Makefile.in michael@1: michael@1: %build michael@1: CC="%{l_cc}" \ michael@1: CXX="%{l_cxx}" \ michael@1: CPPFLAGS="%{l_cppflags}" \ michael@1: CFLAGS="%{l_cflags -O}" \ michael@1: CXXFLAGS="%{l_cxxflags -O}" \ michael@1: LDFLAGS="%{l_ldflags}" \ michael@1: ./configure \ michael@1: --prefix=%{l_prefix} \ michael@1: --datadir=%{l_prefix}/share/as-gui \ michael@1: --x-includes=`%{l_rc} --query x11_incdir` \ michael@1: --x-libraries=`%{l_rc} --query x11_libdir` \ michael@1: %if "%{with_corba}" == "yes" michael@1: --with-mico=%{l_prefix} \ michael@1: %endif michael@1: %if "%{with_soap}" == "yes" michael@1: --with-esoap=%{l_prefix} \ michael@1: %endif michael@1: --with-qt=%{l_prefix} michael@1: %{l_make} %{l_mflags -O} michael@1: michael@1: %install michael@1: rm -rf $RPM_BUILD_ROOT michael@1: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@1: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@1: michael@1: %files -f files michael@1: michael@1: %clean michael@1: rm -rf $RPM_BUILD_ROOT michael@1: