"Fossies" - the Fresh Open Source Software Archive

Member "ansifilter-2.18-x64/ansifilter.spec" (30 Jan 2021, 1789 Bytes) of package /windows/misc/ansifilter-2.18-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #%define prefix  /usr
    2 
    3 # Release number can be specified with rpmbuild --define 'rel SOMETHING' ...
    4 # If no such --define is used, the release number is 1.
    5 #
    6 # Source archive's extension can be specified with --define 'srcext .foo'
    7 # where .foo is the source archive's actual extension.
    8 # To compile an RPM from a .bz2 source archive, give the command
    9 #   rpmbuild -tb --define 'srcext bz2' @PACKAGE@-@VERSION@.tar.bz2
   10 #
   11 
   12 
   13 %if %{?srcext:0}%{!?srcext:1}
   14 %define srcext bz2
   15 %endif
   16 
   17 Name:    ansifilter
   18 Summary: ANSI terminal escape code converter
   19 Version: 1.19
   20 Release: 1
   21 Group:   Development/Tools
   22 License: GPLv3
   23 Vendor:  Andre Simon <andre.simon1@gmx.de>
   24 URL:     http://www.andre-simon.de/
   25 
   26 Source0:   http://www.andre-simon.de/zip/%{name}-%{version}.tar.%{srcext}
   27 Buildroot: %{_tmppath}/%{name}-%{version}.%{release}-root
   28 
   29 %description
   30 Ansifilter handles text files containing ANSI terminal escape codes.
   31 The command sequences may be stripped or be interpreted to generate formatted 
   32 output (HTML, RTF, TeX, LaTeX, BBCode, Pango).
   33 
   34 %prep
   35 %setup -q -n ansifilter-%{version}
   36 
   37 %build
   38 make
   39 
   40 %install
   41 if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi
   42 install -d $RPM_BUILD_ROOT%
   43 install -d $RPM_BUILD_ROOT%{_mandir}/man1
   44 install -d $RPM_BUILD_ROOT%{_defaultdocdir}/ansifilter/
   45 
   46 install -m644 ./man/ansifilter.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/ansifilter.1.gz
   47 install -m644 ChangeLog  COPYING INSTALL README $RPM_BUILD_ROOT%{_defaultdocdir}/ansifilter/
   48 mkdir -p $RPM_BUILD_ROOT%{_bindir}
   49 install -m755 ./src/ansifilter  $RPM_BUILD_ROOT%{_bindir}
   50 
   51 %clean
   52 rm -fr %{buildroot}
   53 
   54 %files
   55 %defattr(-,root,root,-)
   56 
   57 %{_defaultdocdir}/ansifilter
   58 %{_mandir}/man1/ansifilter.1.gz
   59 %{_bindir}/ansifilter
   60 
   61 %changelog 
   62 
   63 * Mon Nov 03 2008 Andre Simon <as@andre-simon.de> 1.2-1
   64 — initial spec file
   65