1 Star 0 Fork 5

starlet_dx/scl-utils

forked from src-openEuler/scl-utils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
scl-utils.spec 2.92 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2023-04-14 09:58 . Update to 2.0.3
%global __cmake_in_source_build 1
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
Name: scl-utils
Epoch: 1
Version: 2.0.3
Release: 1
Summary: Utilities for alternative packaging
License: GPLv2+
URL: https://github.com/sclorg/scl-utils
Source0: https://github.com/sclorg/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Source1: macros.scl-filesystem
BuildRequires: gcc make
Buildrequires: cmake
Buildrequires: rpm-devel
Buildrequires: libcmocka-devel
Requires: %{_bindir}/modulecmd
Patch1: 0003-Scl-utils-layout-patch-from-fedora-famillecollet.com.patch
Patch100: BZ-2056462-do-not-error-out-on-SIGINT.patch
Patch101: BZ-2091000-remove-tmp-file.patch
Patch102: add-h-option-to-scl-command.patch
%description
Run-time utility for alternative packaging.
%package build
Summary: RPM build macros for alternative packaging
Requires: iso-codes %{vendor}-rpm-config
%description build
Essential RPM build macros for alternative packaging.
%prep
%autosetup -p1
%build
%cmake .
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
if [ %{macrosdir} != %{_sysconfdir}/rpm ]; then
mkdir -p %{buildroot}%{macrosdir}
mv %{buildroot}%{_sysconfdir}/rpm/macros.scl %{buildroot}%{macrosdir}
rmdir %{buildroot}%{_sysconfdir}/rpm
fi
cat %SOURCE1 >> %{buildroot}%{macrosdir}/macros.scl
mkdir -p %{buildroot}%{_sysconfdir}/scl
cd %{buildroot}%{_sysconfdir}/scl
mkdir modulefiles
mkdir prefixes
ln -s prefixes conf
%check
make check
%files
%dir %{_sysconfdir}/scl/modulefiles
%dir %{_sysconfdir}/scl/prefixes
%{_sysconfdir}/scl/conf
%{_sysconfdir}/scl/func_scl.csh
%config %{_sysconfdir}/bash_completion.d/scl
%config %{_sysconfdir}/profile.d/scl-init.sh
%config %{_sysconfdir}/profile.d/scl-init.csh
%{_bindir}/scl
%{_bindir}/scl_enabled
%{_bindir}/scl_source
%{_mandir}/man1/scl.1.gz
%doc LICENSE
%files build
%{macrosdir}/macros.scl
%{_rpmconfigdir}/scldeps.sh
%{_rpmconfigdir}/fileattrs/scl.attr
%{_rpmconfigdir}/fileattrs/sclbuild.attr
%{_rpmconfigdir}/brp-scl-compress
%{_rpmconfigdir}/brp-scl-python-bytecompile
%changelog
* Fri Apr 14 2023 yaoxin <[email protected]> - 1:2.0.3-1
- Update to 2.0.3
* Thu Nov 17 2022 caodongxia <[email protected]> - 1:2.0.2-5
- Replace oenEuler with the vendor macro
* Tue Mar 1 2022 yangping <[email protected]> - 1:2.0.2-4
- Fix need config
* Tue Oct 12 2021 caodongxia <[email protected]> - 1:2.0.2-3
- add -h option to scl command
* Fri Oct 08 2021 wangyue <[email protected]> - 1:2.0.2-2
- fix direct scl_source --help output
* Tue Sep 7 2021 zhengyaohui <[email protected]> - 1:2.0.2-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/starlet-dx/scl-utils.git
[email protected]:starlet-dx/scl-utils.git
starlet-dx
scl-utils
scl-utils
master

搜索帮助