Ignore:
Timestamp:
Mar 8, 2018, 9:27:33 AM (8 years ago)
Author:
Silvan Scherrer
Message:

spec: nasm: Release version 2.13.03-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/nasm.spec

    r632 r1344  
     1# Build without documentation per default if built as part of a module.
     2%if 0%{?_module_build}
     3%bcond_with documentation
     4%else
     5%bcond_without documentation
     6%endif
     7
    18Summary: A portable x86 assembler which uses Intel-like syntax
    29Name: nasm
    3 Version: 2.11.08
    4 Release: 2%{?dist}
     10Version: 2.13.03
     11Release: 1%{?dist}
    512License: BSD
    613Group: Development/Languages
    714URL: http://www.nasm.us
    8 #define svn_url     e:/trees/nasm/trunk
    9 %define svn_url     http://svn.netlabs.org/repos/ports/nasm/trunk
    10 %define svn_rev     1237
     15Vendor: bww bitwise works GmbH
     16%scm_source github https://github.com/bitwiseworks/%{name}-os2 %{version}-os2
    1117
    12 Source0: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1318Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}-xdoc.tar.bz2
    1419
    1520BuildRequires: perl
    1621BuildRequires: autoconf
    17 #Requires(post): /sbin/install-info
    18 #Requires(preun): /sbin/install-info
     22#BuildRequires: asciidoc
     23#BuildRequires: xmlto
     24BuildRequires: gcc
     25BuildRequires: make
    1926
    20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     27%if %{with documentation}
     28%package doc
     29Summary: Documentation for NASM
     30BuildRequires: perl(Font::TTF::Font)
     31BuildRequires: perl(Sort::Versions)
     32BuildRequires: perl(File::Spec)
     33BuildRequires: adobe-source-sans-pro-fonts
     34BuildRequires: adobe-source-code-pro-fonts
     35BuildRequires: ghostscript
     36BuildArch: noarch
     37# For arch to noarch conversion
     38Obsoletes: %{name}-doc < %{version}-%{release}
     39%endif
    2140
    2241%package rdoff
    2342Summary: Tools for the RDOFF binary format, sometimes used with NASM
    2443Group: Development/Tools
    25 
    26 %package doc
    27 Summary: Documentation for NASM
    28 BuildRequires: texinfo
    29 #BuildRequires: ghostscript, texinfo
    30 BuildArch: noarch
    31 # For arch to noarch conversion
    32 Obsoletes: %{name}-doc < %{version}-%{release}
    3344
    3445%description
     
    3748instruction mnemonics and syntax.
    3849
     50%if %{with documentation}
    3951%description doc
    4052This package contains documentation for the Netwide Assembler (NASM),
    4153in HTML, info, PostScript, and text formats.
     54%endif
    4255
    4356%description rdoff
     
    4962
    5063%prep
    51 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{?!svn_rev):0}
    52 %setup -q
    53 %else
    54 %setup -n "%{name}-%{version}" -Tc
    55 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
    56 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
    57 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
    58 %endif
     64%scm_setup
    5965tar xjf %{SOURCE1} --strip-components 1
    6066
    6167%build
    62 sh autogen.sh
     68autoreconf
    6369export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    64 # as long as ghostscript is not there as rpm, take care that ps2pdf.cmd and gsos2
    65 # are found in the path
    66 export PS2PDF=ps2pdf.cmd
     70export LIBS="-lcx"
    6771%configure
     72%if %{with documentation}
    6873make everything %{?_smp_mflags}
    6974gzip -9f doc/nasmdoc.ps
    7075gzip -9f doc/nasmdoc.txt
     76%else
     77make all %{?_smp_mflags}
     78%endif
    7179
    7280%install
    73 rm -rf $RPM_BUILD_ROOT
    7481make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf
    75 install -d $RPM_BUILD_ROOT/%{_infodir}
    76 install -t $RPM_BUILD_ROOT/%{_infodir} doc/info/*
    7782
    7883%clean
    7984rm -rf ${RPM_BUILD_ROOT}
    8085
    81 #%post
    82 #if [ -e %{_infodir}/nasm.info.gz ]; then
    83 #  /sbin/install-info %{_infodir}/nasm.info.gz  %{_infodir}/dir || :
    84 #fi
    85 
    86 #%preun
    87 #if [ $1 = 0 -a -e %{_infodir}/nasm.info.gz ]; then
    88 #  /sbin/install-info --delete %{_infodir}/nasm.info.gz %{_infodir}/dir || :
    89 #fi
    9086
    9187%files
     
    9591%{_mandir}/man1/nasm*
    9692%{_mandir}/man1/ndisasm*
    97 %{_infodir}/nasm.info*
    9893
     94%if %{with documentation}
    9995%files doc
    10096%doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz doc/nasmdoc.pdf
     97%endif
    10198
    10299%files rdoff
     
    115112
    116113%changelog
    117 * Thu Dec 29 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.11.8-2
     114* Wed Feb 21 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.13.03-1
     115- updated to vendor version 2.13.03
     116
     117* Tue Dec 29 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.11.8-2
    118118- added enhancement from http://sourceforge.net/p/nasm/mailman/message/34609638/
    119119  this is needed for vbox port, see vbox ticket #31 for further reference
Note: See TracChangeset for help on using the changeset viewer.