Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37569697
en ru br
ALT Linux repositórios
S:0.0.2.g9f9884083831-alt1

Group :: Shelss
RPM: mrsh

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1

%define _soversion 0
# (mrsh_build_system == make) is untested; patches welcome.
%define mrsh_build_system meson

%define register_shell() for i in %*; do grep -Fqx "$i" /etc/shells || echo "$i" >> /etc/shells; done
%define unregister_shell() for i in %*; do sed -i 'y/\\//)/; /^'$(echo "$i" | tr / ')')'$/d; y/)/\\//' /etc/shells; done

Name: mrsh
Version: 0.0.2.g9f9884083831
Release: alt1

Summary: A minimal POSIX shell

License: MIT
Group: Shells
Url: https://mrsh.sh

%define libname lib%name%_soversion

VCS: https://git.sr.ht/~emersion/mrsh
Source: %name-%version-%release.tar

Patch1: 0001-parser-make-an-auto-const-char-array-static.patch

%if %mrsh_build_system == meson
BuildRequires: meson
%endif
%if %mrsh_build_system == make
BuildRequires: make
%endif
BuildRequires: libreadline-devel

%description
A minimal, POSIX compliant shell with simple, readable code.

%package -n %libname
Summary: %name as a shared library
Group: System/Libraries

%description -n %libname
A minimal, POSIX compliant shell with simple, readable code, available as a
shared library.

%package -n %libname-devel
Summary: Header files for developing POSIX shells or more elaborate ones
Group: Development/C
Requires: %libname = %version-%release
#Requires: glibc-devel

%description -n %libname-devel
This package contains the development files needed to develop programs
that use %name's shared library.

%prep
%setup
%patch1 -p1

%build
%if %mrsh_build_system == meson
%meson -Dreadline=enabled \
%ifarch i586 armh
-Dwerror=false
%endif

%meson_build
%endif
%if %mrsh_build_system == make
%configure
%make_build
%endif

%install
%if %mrsh_build_system == meson
%meson_install
%endif
%if %mrsh_build_system == make
%makeinstall_std
%endif

%post
# Unfortunately, we don't have a filetrigger-based mechanism.
if [ $1 -eq 1 ]; then
%register_shell %_bindir/%name
fi

%preun
if [ $1 -eq 0 ]; then
%unregister_shell %_bindir/%name
fi

%files
%_bindir/*
#_man1dir/*
%doc README.md LICENSE

%files -n %libname
%_libdir/lib%name.so.%{_soversion}*

%files -n %libname-devel
%_libdir/lib%name.so
%_includedir/mrsh/
%_pkgconfigdir/%name.pc

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009