From 4be6b77ea2d149c13df15cb315cdf9960c682959 Mon Sep 17 00:00:00 2001 From: kloczek Date: Fri, 4 Jun 1999 16:33:11 +0000 Subject: [PATCH] - rewrited to PLD coding style, - added {un}registering info pages for nasm. Changed files: nasm.spec -> 1.5 --- nasm.spec | 98 ++++++++++++++++++++----------------------------------- 1 file changed, 36 insertions(+), 62 deletions(-) diff --git a/nasm.spec b/nasm.spec index 3d3d432..eef5195 100644 --- a/nasm.spec +++ b/nasm.spec @@ -1,11 +1,11 @@ -Summary: nasm is a free assembler for the 80x86 series of microprocessors -Name: nasm -Version: 0.97 -Release: 2 -URL: http://www.cryogen.com/nasm/ -Source: ftp://sunsite.unc.edu/pub/Linux/devel/lang/assemblers/%{name}-%{version}.tar.gz -Copyright: Distributable and free for non-commercial use -Group: Development +Summary: Nasm is a free assembler for the 80x86 series of microprocessors +Name: nasm +Version: 0.98 +Release: 2 +Copyright: GPL +URL: http://www.cryogen.com/nasm/ +Source: ftp://sunsite.unc.edu/pub/Linux/devel/lang/assemblers/%{name}-%{version}.tar.bz2 +Group: Development BuildRoot: /tmp/%{name}-%{version}-root %description @@ -19,75 +19,49 @@ has macro capability. It includes a disassembler as well. Version 0.97 was entirely a bug fix release, since 0.96 had more bugs than we could shake a large stick at. -%package doc -Summary: NASM - the netwide assembler, documentation -Group: Development - -%description doc -Documentation for nasm in various formats. - %prep %setup -q cp rdoff/README rdoff/README.rdoff %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure --prefix=/usr +autoconf +LDFLAGS="-s"; export LDFLAGS +%configure \ + --prefix=%{_prefix} make all rdf +(cd doc; make nasmdoc.texi; makeinfo nasmdoc.texi) + %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/{bin,info,man/man1} -make prefix=$RPM_BUILD_ROOT/usr install install_rdf +install -d $RPM_BUILD_ROOT{%{_bindir},%{_infodir},%{_mandir}/man1} +make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf -install -m644 doc/nasm.info $RPM_BUILD_ROOT%{_infodir} -gzip -9nf $RPM_BUILD_ROOT%{_infodir}/nasm.info +install doc/nasm.info* $RPM_BUILD_ROOT%{_infodir} +gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*,%{_mandir}/man?/*} \ + Changes Licence Readme Wishlist MODIFIED -strip $RPM_BUILD_ROOT%{_bindir}/* || +%post +/sbin/install-info %{_infodir}/nasm.info.gz /etc/info-dir + +%preun +if [ "$1" = "0" ]; then + /sbin/install-info --delete %{_infodir}/nasm.info.gz /etc/info-dir +fi %clean rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root) -%doc Changes Licence Readme Wishlist misc rdoff/README.rdoff rdoff/rdoff.txt -%{_infodir}/nasm.info.gz -%{_bindir}/* -%attr(-,root,man) %{_mandir}/*/* - -%files doc -%defattr(-,root,root) -%doc doc/*.html doc/*.ps doc/*.txt +%defattr(644,root,root,755) +%doc *gz +%attr(755,root,root) %{_bindir}/* +%{_infodir}/nasm.info*gz +%{_mandir}/man?/* %changelog -* Sun Oct 18 1998 Arne Coucheron - [0.97-2] -- using %%{name} and %%{version} macros -- added -q parameter to %setup -- added URL tag and corrected Source tag -- using %defattr in files list -- rearranged the spec file a little - -* Thu Jan 22 1998 Steven Krikstone -- upgraded to 0.97. -- stripped rdoff/* files - -* Sun Nov 30 1997 Christian 'Dr. Disk' Hechelmann -- added %attr's -- added sanity check for RPM_BUILD_ROOT -- the prefix used in configure _must_ be the one the package resides - _after_ installation, as it might be compiled into the binaries. fixed. - -* Fri Nov 21 1997 Karsten Weiss -- Upgraded to 0.96. -- Using configure now. -- Using BuildRoot now. -- Install info file. Other doc file formats omitted. -- Default output format is ELF. - -* Wed Jun 4 1997 Karsten Weiss -- Created this spec file based on the old 0.93-1.src.rpm. -- Included all doc files. -- Added verbose description. -- Makefile uses RPM_OPT_FLAGS. -- Compiles without debug info. -- Changed default object file format to ELF32 (i386) +* Fri Jun 4 1999 Tomasz K³oczko + [0.98-2] +- based on spec from RH contrib, +- rewrited to PLD coding style, +- added {un}registering info pages for nasm. -- 2.44.0