!2 add spec and source file to init this package

From: @myeuler
Reviewed-by: @overweight
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2021-01-27 19:05:25 +08:00 committed by Gitee
commit c49e3cf705
3 changed files with 51 additions and 0 deletions

47
p7zip.spec Normal file
View File

@ -0,0 +1,47 @@
#%global debug_package %{nil}
Name: p7zip
Version: 16.02
Release: 1
Summary: 7z for Linux system
License: GPLv2
URL: https://sourceforge.net/projects/p7zip/
Source0: https://sourceforge.net/projects/p7zip/files/p7zip/%{version}/%{name}_%{version}_src_all.tar.bz2
BuildRequires: gcc
%description
7za for Linux system to archive file as 7z file format
%prep
%setup -q -n %{name}_%{version}/
%build
%make_build
%install
#
# do not install 7z which may include unrar license
#
install -d %{buildroot}/%{_bindir}/
install -d %{buildroot}/%{_mandir}/man1
install -m 0755 bin/7za %{buildroot}/%{_bindir}/
install -m 0644 man1/7za.1 %{buildroot}/%{_mandir}/man1
%pre
%preun
%post
%postun
%check
%files
%license DOC/License.txt
%doc README
%{_bindir}/*
%{_mandir}/*
%changelog
* Tue Jan 26 2021 Wei Xiong <myeuler@163.com>
- Package init

4
p7zip.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: sourceforge
src_repo: projects/p7zip/files/p7zip
tag_prefix:
separator: _

BIN
p7zip_16.02_src_all.tar.bz2 Normal file

Binary file not shown.