Changeset 1344 for spec/trunk/SPECS/nasm.spec
- Timestamp:
- Mar 8, 2018, 9:27:33 AM (8 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/nasm.spec (modified) (5 diffs)
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 1 8 Summary: A portable x86 assembler which uses Intel-like syntax 2 9 Name: nasm 3 Version: 2.1 1.084 Release: 2%{?dist}10 Version: 2.13.03 11 Release: 1%{?dist} 5 12 License: BSD 6 13 Group: Development/Languages 7 14 URL: 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 15 Vendor: bww bitwise works GmbH 16 %scm_source github https://github.com/bitwiseworks/%{name}-os2 %{version}-os2 11 17 12 Source0: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip13 18 Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}-xdoc.tar.bz2 14 19 15 20 BuildRequires: perl 16 21 BuildRequires: autoconf 17 #Requires(post): /sbin/install-info 18 #Requires(preun): /sbin/install-info 22 #BuildRequires: asciidoc 23 #BuildRequires: xmlto 24 BuildRequires: gcc 25 BuildRequires: make 19 26 20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 27 %if %{with documentation} 28 %package doc 29 Summary: Documentation for NASM 30 BuildRequires: perl(Font::TTF::Font) 31 BuildRequires: perl(Sort::Versions) 32 BuildRequires: perl(File::Spec) 33 BuildRequires: adobe-source-sans-pro-fonts 34 BuildRequires: adobe-source-code-pro-fonts 35 BuildRequires: ghostscript 36 BuildArch: noarch 37 # For arch to noarch conversion 38 Obsoletes: %{name}-doc < %{version}-%{release} 39 %endif 21 40 22 41 %package rdoff 23 42 Summary: Tools for the RDOFF binary format, sometimes used with NASM 24 43 Group: Development/Tools 25 26 %package doc27 Summary: Documentation for NASM28 BuildRequires: texinfo29 #BuildRequires: ghostscript, texinfo30 BuildArch: noarch31 # For arch to noarch conversion32 Obsoletes: %{name}-doc < %{version}-%{release}33 44 34 45 %description … … 37 48 instruction mnemonics and syntax. 38 49 50 %if %{with documentation} 39 51 %description doc 40 52 This package contains documentation for the Netwide Assembler (NASM), 41 53 in HTML, info, PostScript, and text formats. 54 %endif 42 55 43 56 %description rdoff … … 49 62 50 63 %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 59 65 tar xjf %{SOURCE1} --strip-components 1 60 66 61 67 %build 62 sh autogen.sh 68 autoreconf 63 69 export 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 70 export LIBS="-lcx" 67 71 %configure 72 %if %{with documentation} 68 73 make everything %{?_smp_mflags} 69 74 gzip -9f doc/nasmdoc.ps 70 75 gzip -9f doc/nasmdoc.txt 76 %else 77 make all %{?_smp_mflags} 78 %endif 71 79 72 80 %install 73 rm -rf $RPM_BUILD_ROOT74 81 make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf 75 install -d $RPM_BUILD_ROOT/%{_infodir}76 install -t $RPM_BUILD_ROOT/%{_infodir} doc/info/*77 82 78 83 %clean 79 84 rm -rf ${RPM_BUILD_ROOT} 80 85 81 #%post82 #if [ -e %{_infodir}/nasm.info.gz ]; then83 # /sbin/install-info %{_infodir}/nasm.info.gz %{_infodir}/dir || :84 #fi85 86 #%preun87 #if [ $1 = 0 -a -e %{_infodir}/nasm.info.gz ]; then88 # /sbin/install-info --delete %{_infodir}/nasm.info.gz %{_infodir}/dir || :89 #fi90 86 91 87 %files … … 95 91 %{_mandir}/man1/nasm* 96 92 %{_mandir}/man1/ndisasm* 97 %{_infodir}/nasm.info*98 93 94 %if %{with documentation} 99 95 %files doc 100 96 %doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz doc/nasmdoc.pdf 97 %endif 101 98 102 99 %files rdoff … … 115 112 116 113 %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 118 118 - added enhancement from http://sourceforge.net/p/nasm/mailman/message/34609638/ 119 119 this is needed for vbox port, see vbox ticket #31 for further reference
Note:
See TracChangeset
for help on using the changeset viewer.
