container-exception-logger/container-exception-logger.spec

53 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2019-12-14 10:08:47 +08:00
Name: container-exception-logger
Version: 1.0.3
Release: 5
2019-12-14 10:08:47 +08:00
Summary: Logging from a container to a host
License: GPLv3+
URL: https://github.com/abrt/container-exception-logger
2020-09-11 11:44:56 +08:00
Source0: https://github.com/abrt/container-exception-logger/archive/%{name}-%{version}-1.tar.gz
2021-06-02 11:06:26 +08:00
BuildRequires: asciidoc libxslt gcc
2019-12-14 10:08:47 +08:00
%description
Container-exception-logger is a tool designed to run inside of a container
which is able to get its input outside of the container.
%package help
Summary: Help document for the %{name} package
%description help
Help document for the %{name} package.
%prep
2020-09-11 11:44:56 +08:00
%autosetup -n %{name}-%{name}-%{version}-1 -p1
2019-12-14 10:08:47 +08:00
%build
gcc %{optflags} -fPIE src/%{name}.c -o src/container-exception-logger
2019-12-14 10:08:47 +08:00
a2x -d manpage -f manpage man/container-exception-logger.1.asciidoc
%install
install -d %{buildroot}%{_bindir}
cp src/container-exception-logger %{buildroot}/%{_bindir}/container-exception-logger
install -d %{buildroot}/%{_mandir}/man1
cp man/container-exception-logger.1 %{buildroot}/%{_mandir}/man1/container-exception-logger.1
%files
%license COPYING
%attr(6755, root, root) %{_bindir}/container-exception-logger
%files help
%{_mandir}/man1/container-exception-logger.1.*
%changelog
* Fri Mar 03 2023 wulei <wulei80@h-partners.com> - 1.0.3-5
- Add the compilation option pie
2021-06-02 11:06:26 +08:00
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> 1.0.3-4
- Add gcc in BuildRequires
2020-09-11 11:44:56 +08:00
* Tues Sept 8 2020 Ge Wang <wangge20@huawei.com> 1.0.3-3
- Modify the Source0 Url
2019-12-14 10:08:47 +08:00
* Thu Dec 12 2019 shijian <shijian16@huawei.com> 1.0.3-2
- Package init