michael@511: ## michael@511: ## figlet.spec -- OpenPKG RPM Package Specification michael@511: ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. michael@511: ## michael@511: ## Permission to use, copy, modify, and distribute this software for michael@511: ## any purpose with or without fee is hereby granted, provided that michael@511: ## the above copyright notice and this permission notice appear in all michael@511: ## copies. michael@511: ## michael@511: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@511: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@511: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@511: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@511: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@511: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@511: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@511: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@511: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@511: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@511: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@511: ## SUCH DAMAGE. michael@511: ## michael@511: michael@511: # package information michael@511: Name: figlet michael@511: Summary: ASCII Figure Fonts michael@511: URL: http://www.figlet.org/ michael@511: Vendor: John Cowan michael@511: Packager: OpenPKG Foundation e.V. michael@511: Distribution: OpenPKG Community michael@511: Class: BASE michael@511: Group: Typesetting michael@511: License: BSD michael@511: Version: 2.2.5 michael@512: Release: 20120800 michael@511: michael@511: # list of sources michael@511: Source0: ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-%{version}.tar.gz michael@512: Patch0: figlet.patch michael@511: michael@511: # build information michael@511: BuildPreReq: OpenPKG, openpkg >= 20100101 michael@511: PreReq: OpenPKG, openpkg >= 20100101 michael@511: michael@511: %description michael@511: FIGlet is a nifty program for rendering font-based banners with michael@511: plain ASCII text character combinations. michael@511: michael@511: %track michael@511: prog figlet = { michael@511: version = %{version} michael@511: url = ftp://ftp.plig.org/pub/figlet/program/unix/ michael@511: regex = figlet-(__VER__)\.tar\.gz michael@511: } michael@511: michael@511: %prep michael@511: %setup -q michael@512: %patch -p0 michael@511: michael@511: %build michael@511: %{l_make} %{l_mflags} \ michael@511: CC="%{l_cc}" \ michael@511: CFLAGS="%{l_cflags -O}" \ michael@511: DEFAULTFONTDIR="%{l_prefix}/share/figlet" michael@511: michael@511: %install michael@511: %{l_shtool} mkdir -f -p -m 755 \ michael@511: $RPM_BUILD_ROOT%{l_prefix}/bin \ michael@511: $RPM_BUILD_ROOT%{l_prefix}/man/man6 \ michael@511: $RPM_BUILD_ROOT%{l_prefix}/share/figlet michael@511: %{l_shtool} install -c -s -m 755 \ michael@511: figlet chkfont $RPM_BUILD_ROOT%{l_prefix}/bin/ michael@511: %{l_shtool} install -c -m 755 \ michael@511: figlist showfigfonts $RPM_BUILD_ROOT%{l_prefix}/bin/ michael@511: %{l_shtool} install -c -m 644 \ michael@511: figlet.6 $RPM_BUILD_ROOT%{l_prefix}/man/man6/ michael@511: %{l_shtool} install -c -m 644 \ michael@511: fonts/*.flf fonts/*.flc $RPM_BUILD_ROOT%{l_prefix}/share/figlet/ michael@511: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@511: michael@511: %files -f files michael@511: michael@511: %clean michael@511: