## ## silvercity.spec -- OpenPKG RPM Specification ## Copyright (c) 2000-2004 The OpenPKG Project ## Copyright (c) 2000-2004 Ralf S. Engelschall ## Copyright (c) 2000-2004 Cable & Wireless ## ## 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. ## %define ver 0.9.5 %define rel 20040520 %define V_python 2.3.0 # package information Name: silvercity Summary: SilverCity is a lexing package, based on Scintilla URL: http://silvercity.sourceforge.net/ Vendor: Brian Quinlan Packager: Paul Vlaar Group: Language Class: EVAL Distribution: OpenPKG License: BSD License Version: %{ver} Release: %{rel} # list of sources Source0: SilverCity-%{ver}.tar.gz # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 2.0.0, python >= %{V_python} PreReq: OpenPKG, openpkg >= 2.0.0, python >= %{V_python} AutoReq: no AutoReqProv: no %description SilverCity is a lexing package, based on Scintilla, that can provide lexical analysis for over 20 programming and markup langauges. SilverCity can be used as a C++ library and also has scripting language bindings for Python. %prep %setup -n SilverCity-%{ver} %build # do the actual build python setup.py build %install # place built files in buildroot rm -rf $RPM_BUILD_ROOT python setup.py install -O1 --prefix %{l_prefix} --root $RPM_BUILD_ROOT # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} %files -f files # cleanup build root %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] \ && rm -rf $RPM_BUILD_ROOT %post %postun