diff --git a/README.md b/README.md deleted file mode 100644 index 7342728d557c602f51c6d278bba9f3dd9faaf356..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,11 +0,0 @@ -Anolis OS -======================================= -# 代码仓库说明 -## 分支说明 ->进行代码开发工作时,请注意选择当前版本对应的分支 -* aX分支为对应大版本的主分支,如a8分支对应当前最新版本 -* aX.Y分支为对应小版本的维护分支,如a8.2分支对应8.2版本 -## 开发流程 -1. 首先fork目标分支到自己的namespace -2. 在自己的fork分支上做出修改 -3. 向对应的仓库中提交merge request,源分支为fork分支 diff --git a/os-prober.spec b/os-prober.spec new file mode 100644 index 0000000000000000000000000000000000000000..eca42e0d419351a3cbbd4c7b50afb28970ac7389 --- /dev/null +++ b/os-prober.spec @@ -0,0 +1,67 @@ +Name: os-prober +Version: 1.79 +Release: 1%{?dist} +Summary: Probes disks on the system for installed operating systems + +License: GPLv2+ and GPL+ +URL: http://kitenet.net/~joey/code/os-prober/ +Source0: http://ftp.us.debian.org/debian/pool/main/o/os-prober/%{name}_%{version}.tar.xz + +BuildRequires: gcc make +Requires: udev coreutils util-linux grep /bin/sed /sbin/modprobe grub2-tools-minimal + +%description +This package detects other OSes available on a system and outputs the results +in a generic machine-readable format. Support for new OSes and Linux +distributions can be added easily. + +%prep +%autosetup -n %{name} + +find -type f -exec sed -i -e 's|usr/lib|usr/libexec|g' {} \; +sed -i -e 's|grub-probe|grub2-probe|g' os-probes/common/50mounted-tests \ + linux-boot-probes/common/50mounted-tests +sed -i -e 's|grub-mount|grub2-mount|g' os-probes/common/50mounted-tests \ + linux-boot-probes/common/50mounted-tests common.sh + +%build +%set_build_flags +%make_build LDFLAGS="$LDFLAGS -fPIC" + +%install +install -m 0755 -d %{buildroot}%{_bindir} +install -m 0755 -d %{buildroot}%{_var}/lib/%{name} + +install -m 0755 -p os-prober linux-boot-prober %{buildroot}%{_bindir} +install -m 0755 -Dp newns %{buildroot}%{_libexecdir}/os-prober/newns +install -m 0644 -Dp common.sh %{buildroot}%{_datadir}/%{name}/common.sh + +%ifarch x86_64 +ARCH=x86 +%endif + +for probes in os-probes os-probes/mounted os-probes/init \ + linux-boot-probes linux-boot-probes/mounted; do + install -m 755 -d %{buildroot}%{_libexecdir}/$probes + cp -a $probes/common/* %{buildroot}%{_libexecdir}/$probes + if [ -e "$probes/$ARCH" ]; then + cp -a $probes/$ARCH/* %{buildroot}%{_libexecdir}/$probes + fi +done +if [ "$ARCH" = x86 ]; then + install -m 755 -p os-probes/mounted/powerpc/20macosx \ + %{buildroot}%{_libexecdir}/os-probes/mounted +fi + +%files +%doc README TODO debian/changelog +%license debian/copyright +%{_bindir}/* +%{_libexecdir}/* +%{_datadir}/%{name} +%{_var}/lib/%{name} + + +%changelog +* Mon Mar 14 2022 forrest_ly - 1.79-1 +- Init for Anolis OS 23 diff --git a/os-prober_1.79.tar.xz b/os-prober_1.79.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..a3ccdfd12ec7689384f526ab56856b271afc71f7 Binary files /dev/null and b/os-prober_1.79.tar.xz differ