!1 Init package
From: @weidongkl Reviewed-by: @dwl301,@small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
9deb2de6e7
BIN
1.0.9.tar.gz
Normal file
BIN
1.0.9.tar.gz
Normal file
Binary file not shown.
52
mujs.spec
Normal file
52
mujs.spec
Normal file
@ -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 <herengui@uniontech.com> - 1.0.9-1
|
||||||
|
- package init
|
||||||
Loading…
x
Reference in New Issue
Block a user