rebuilt with libunrar, debug package and build requirements [release 6.0.3-2mamba;Thu Dec 31 2020]
This commit is contained in:
parent
2b5f69fade
commit
30d6ee14a1
50
unrar.spec
50
unrar.spec
@ -1,6 +1,6 @@
|
||||
Name: unrar
|
||||
Version: 6.0.3
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Unrar can extract files from .rar archives
|
||||
Group: System/Tools
|
||||
Vendor: openmamba
|
||||
@ -10,25 +10,50 @@ URL: http://www.rarlab.com
|
||||
Source: http://www.rarlab.com/rar/unrarsrc-%{version}.tar.gz
|
||||
Patch: %{name}-5.0.14-man.patch
|
||||
License: no OSI Approved
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: ldconfig
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libstdc++6-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
Unrar can extract files from .rar archives.
|
||||
If you want to create .rar archives, install package rar.
|
||||
|
||||
%package -n libunrar
|
||||
Group: System/Libraries
|
||||
Summary: Unrar shared library
|
||||
|
||||
%description -n libunrar
|
||||
This package contains the shared library prived with unrar.
|
||||
|
||||
%package -n libunrar-devel
|
||||
Group: Development/Libraries
|
||||
Summary: Static libraries and headers for libunrar
|
||||
Requires: libunrar = %{version}-%{release}
|
||||
|
||||
%description -n libunrar-devel
|
||||
This package contains static libraries and header files needed for development.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%setup -q -n unrar
|
||||
#%patch0 -p1
|
||||
%setup -q -c -a0
|
||||
cp -a unrar libunrar
|
||||
|
||||
%build
|
||||
%make CXX=%{_host}-g++
|
||||
make -C libunrar STRIP=/bin/true lib
|
||||
make -C unrar STRIP=/bin/true -j1
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
install -d %{buildroot}{%{_bindir},%{_mandir}/man1}
|
||||
install -m 0755 unrar %{buildroot}%{_bindir}
|
||||
install -D -m0755 unrar/unrar %{buildroot}%{_bindir}/unrar
|
||||
install -D -m0755 libunrar/libunrar.so %{buildroot}%{_libdir}/libunrar.so
|
||||
install -D -m644 libunrar/dll.hpp %{buildroot}%{_includedir}/unrar/dll.hpp
|
||||
#install -m 0644 unrar.1 %{buildroot}%{_mandir}/man1
|
||||
|
||||
%clean
|
||||
@ -38,8 +63,21 @@ install -m 0755 unrar %{buildroot}%{_bindir}
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/unrar
|
||||
#%{_mandir}/man1/*
|
||||
%doc unrar/license.txt
|
||||
|
||||
%files -n libunrar
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libunrar.so
|
||||
%doc unrar/license.txt
|
||||
|
||||
%files -n libunrar-devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/unrar/dll.hpp
|
||||
|
||||
%changelog
|
||||
* Thu Dec 31 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.3-2mamba
|
||||
- rebuilt with libunrar, debug package and build requirements
|
||||
|
||||
* Mon Dec 07 2020 Automatic Build System <autodist@mambasoft.it> 6.0.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user