diff --git a/1.0.9.tar.gz b/1.0.9.tar.gz new file mode 100644 index 0000000..22b92b0 Binary files /dev/null and b/1.0.9.tar.gz differ diff --git a/mujs.spec b/mujs.spec new file mode 100644 index 0000000..82ed92f --- /dev/null +++ b/mujs.spec @@ -0,0 +1,52 @@ +Name: mujs +Version: 1.0.9 +Release: 1 +Summary: An embeddable Javascript interpreter +License: ISC +URL: http://mujs.com/ +# The mujs.com download page doesn't provide recent tarballs +# Github mirror of mujs.com repository provides releases from tags +Source0: https://github.com/ccxvii/mujs/archiv/%{version}.tar.gz +BuildRequires: coreutils +BuildRequires: gcc +BuildRequires: grep +BuildRequires: make +BuildRequires: readline-devel + +%description +MuJS is a lightweight Javascript interpreter designed for embedding in +other software to extend them with scripting capabilities. + +%package devel +Summary: MuJS development files +Provides: %{name}-static = %{version}-%{release} + +%description devel +This package provides the MuJS static library. + +%prep +%setup -q -n %{name}-%{version} +chmod a-x -v docs/* + +%build +make debug %{?_smp_mflags} XCFLAGS="%{optflags} -fPIC" LDFLAGS="%{?__global_ldflags}" + +%install +make install DESTDIR=%{buildroot} prefix="%{_prefix}" libdir="%{_libdir}" \ + XCFLAGS="%{optflags} -fPIC" LDFLAGS="%{?__global_ldflags}" + +%files +%license COPYING +%doc AUTHORS README docs +%{_bindir}/%{name} + +%files devel +%license COPYING +%doc AUTHORS README +%{_libdir}/pkgconfig/%{name}.pc +%{_includedir}/%{name}.h +%{_libdir}/lib%{name}.a + +%changelog +* Thu May 13 2021 He Rengui - 1.0.9-1 +- package init