Преглед на файлове

new package: kde-arts 1.1.3 (K Desktop Environment (Analog Real-Time Synthesizer))

Ralf S. Engelschall преди 22 години
родител
ревизия
16af1dbb1e
променени са 1 файла, в които са добавени 141 реда и са изтрити 0 реда
  1. 141 0
      kde-arts/kde-arts.spec

+ 141 - 0
kde-arts/kde-arts.spec

@@ -0,0 +1,141 @@
+##
+##  kde-arts.spec -- OpenPKG RPM Specification
+##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+##  Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
+##  Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
+##
+##  Permission to use, copy, modify, and distribute this software for
+##  any purpose with or without fee is hereby granted, provided that
+##  the above copyright notice and this permission notice appear in all
+##  copies.
+##
+##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+##  SUCH DAMAGE.
+##
+
+#   package version
+%define       V_kde    3.1.3
+%define       V_arts   1.1.3
+
+#   package information
+Name:         kde-arts
+Summary:      K Desktop Environment (Analog Real-Time Synthesizer)
+URL:          http://www.kde.org/
+Vendor:       KDE Project
+Packager:     The OpenPKG Project
+Distribution: OpenPKG [EVAL]
+Group:        KDE
+License:      GPL
+Version:      %{V_arts}
+Release:      20030818
+
+#   list of sources
+Source0:      ftp://ftp.kde.org/pub/kde/stable/%{V_kde}/src/arts-%{V_arts}.tar.bz2
+
+#   build information
+Prefix:       %{l_prefix}
+BuildRoot:    %{l_buildroot}
+BuildPreReq:  OpenPKG, openpkg >= 20030103, gcc, make
+PreReq:       OpenPKG, openpkg >= 20030103
+BuildPreReq:  X11, kde-qt, audiofile
+PreReq:       X11, kde-qt, audiofile
+AutoReq:      no
+AutoReqProv:  no
+
+%description
+    KDE is a powerful Open Source graphical desktop environment for Unix
+    workstations. It combines ease of use, contemporary functionality,
+    and outstanding graphical design with the technological superiority
+    of the Unix operating system.
+
+    This part is the KDE Analog Real-Time Synthesizer.
+
+%prep
+    %setup -q -n arts-%{V_arts}
+
+%build
+    #   set standard KDE/Qt build environment
+    export CC="%{l_cc}"
+    export CXX="%{l_cxx}"
+    export CFLAGS="`%{l_prefix}/bin/pkg-config --cflags-only-other kde-qt` %{l_cflags -O}"
+    export CXXFLAGS="`%{l_prefix}/bin/pkg-config --cflags-only-other kde-qt` %{l_cxxflags -O}"
+    export CPPFLAGS="`%{l_prefix}/bin/pkg-config --cflags-only-I kde-qt` %{l_cppflags}"
+    export LDFLAGS="`%{l_prefix}/bin/pkg-config --libs-only-L kde-qt` %{l_ldflags}"
+    export LIBS="`%{l_prefix}/bin/pkg-config --libs-only-l --libs-only-other kde-qt`"
+    export PATH="%{l_prefix}/libexec/kde:`%{l_prefix}/etc/rc --query x11_bindir`:$PATH"
+    export LD_LIBRARY_PATH="%{l_prefix}/lib/kde:${LD_LIBRARY_PATH-/usr/lib}"
+    export MOC="%{l_prefix}/libexec/kde/moc"
+    export UIC_PATH="%{l_prefix}/libexec/kde/uic"
+    export HOME="`pwd`"
+
+    #   set KDE/Qt installation paths
+    export KDEDIR="%{l_prefix}"
+    export kde_htmldir='\${prefix}/share/kde/doc/HTML'
+    export kde_appsdir='\${prefix}/share/kde/applnk'
+    export kde_icondir='\${prefix}/share/kde/icons'
+    export kde_sounddir='\${prefix}/share/kde/sounds'
+    export kde_datadir='\${prefix}/share/kde/apps'
+    export kde_locale='\${prefix}/share/kde/locale'
+    export kde_confdir='\${prefix}/share/kde/config'
+    export kde_mimedir='\${prefix}/share/kde/mimelnk'
+    export kde_toolbardir='\${prefix}/share/kde/toolbar'
+    export kde_wallpaperdir='\${prefix}/share/kde/wallpapers'
+    export kde_templatesdir='\${prefix}/share/kde/templates'
+    export kde_servicesdir='\${prefix}/share/kde/services'
+    export kde_servicetypesdir='\${prefix}/share/kde/servicetypes'
+    export kde_bindir='\${exec_prefix}/libexec/kde'
+    export kde_cgidir='\${exec_prefix}/lib/kde/cgi'
+    export kde_moduledir='\${prefix}/lib/kde/modules'
+    export kde_styledir='\${prefix}/lib/kde/plugins/styles'
+    export kde_widgetdir='\${prefix}/lib/kde/plugins/designer'
+
+    #   configure package
+    export DO_NOT_COMPILE="gmcop"
+    ./configure \
+        --prefix=%{l_prefix} \
+        --bindir=%{l_prefix}/libexec/kde \
+        --includedir=%{l_prefix}/include/kde \
+        --libdir=%{l_prefix}/lib/kde \
+        --datadir=%{l_prefix}/share/kde \
+        --localstatedir=%{l_prefix}/var/kde \
+        --with-x \
+        --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
+        --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
+        --with-qt-dir=%{l_prefix} \
+        --with-qt-includes=%{l_prefix}/include/kde/qt \
+        --with-qt-libraries=%{l_prefix}/lib/kde \
+        --with-extra-includes=%{l_prefix}/include \
+        --with-extra-libs=%{l_prefix}/lib \
+        --disable-debug \
+        --disable-static \
+        --enable-shared
+
+    #   build package
+    %{l_make} %{l_mflags -O}
+
+%install
+    #   install package
+    rm -rf $RPM_BUILD_ROOT
+    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+
+    #   strip down installation
+    strip $RPM_BUILD_ROOT%{l_prefix}/libexec/kde/* >/dev/null 2>&1 || true
+
+    #   determine installation files
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+    rm -rf $RPM_BUILD_ROOT
+