diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-05 12:56:52 -0800 |
---|---|---|
committer | Philippe Coval <philippe.coval@open.eurogiciel.org> | 2014-11-14 21:53:29 +0100 |
commit | 3fcb848b6caf17a6fbb2cc8215bc987b448ceea1 (patch) | |
tree | 82a4b7701f0302006a3d27f5cfa1df2dde1411ad | |
parent | 12f7802d6024973f431fb65e4122af36aa00cd30 (diff) | |
download | nasm-3fcb848b6caf17a6fbb2cc8215bc987b448ceea1.tar.gz nasm-3fcb848b6caf17a6fbb2cc8215bc987b448ceea1.tar.bz2 nasm-3fcb848b6caf17a6fbb2cc8215bc987b448ceea1.zip |
packaging: add packaging
Change-Id: Id5d0f3b9482dce77a640467ec475b5841dc23e41
-rw-r--r-- | packaging/nasm.spec | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/packaging/nasm.spec b/packaging/nasm.spec new file mode 100644 index 0000000..f1cb7b5 --- /dev/null +++ b/packaging/nasm.spec @@ -0,0 +1,68 @@ +Name: nasm +Version: 2.09.08 +Release: 0 +License: BSD-2-Clause +Summary: Netwide Assembler (An x86 Assembler) +Url: http://nasm.sourceforge.net/ +Group: Development/Languages/Other +Source: nasm-%{version}.tar.bz2 +BuildRequires: makeinfo +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +NASM is a prototype general-purpose x86 assembler. It can currently +output several binary formats, including ELF, a.out, Win32, and OS/2. + +Read the licence agreement in /usr/share/doc/packages/nasm/Licence. + +%prep +%setup -q + +%package doc +License: LGPL-2.1+ +Summary: Documentation for Nasm +Group: Development/Languages/Other +Provides: nasm:/usr/share/doc/packages/nasm/nasmdoc.pdf + +%description doc +This package contains the documentation for Nasm. + +%build +touch -r ./ver.c ./ver.c.stamp +TS=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') +sed -i "s/__DATE__/\"$TS\"/g" ver.c +touch -r ./ver.c.stamp ./ver.c +%configure +make all + +cd doc +make html info nasmdoc.ps nasmdoc.txt + +%install +install -d -m 755 %{buildroot}/usr/bin +install -d -m 755 %{buildroot}/%{_mandir}/man1 +install -d -m 755 %{buildroot}/%{_docdir}/nasm +install -d -m 755 %{buildroot}/%{_docdir}/nasm/rdoff +install -d -m 755 %{buildroot}/%{_docdir}/nasm/html +install -d -m 755 %{buildroot}/%{_infodir} +make INSTALLROOT=%{buildroot} install +make INSTALLROOT=%{buildroot} rdf_install +install -m 644 AUTHORS CHANGES ChangeLog LICENSE TODO README doc/*.txt \ + %{buildroot}/%{_docdir}/nasm +install -m 644 rdoff/README rdoff/doc/* \ + %{buildroot}/%{_docdir}/nasm/rdoff +install -m 644 doc/html/* %{buildroot}%{_docdir}/nasm/html +install -m 644 ndisasm.1 nasm.1 rdoff/*.1 %{buildroot}%{_mandir}/man1 +install -m 644 doc/info/* %{buildroot}%{_infodir} + +%files +%defattr(-,root,root) +/usr/bin/* +%doc %{_mandir}/man1/*.1.gz + +%files doc +%defattr(-,root,root) +%doc %{_docdir}/nasm +%doc %{_infodir}/nasm* + +%changelog |