rebuilt with libunrar, debug package and build requirements [release 6.0.3-2mamba;Thu Dec 31 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 18:49:41 +01:00
parent 2b5f69fade
commit 30d6ee14a1

View File

@ -1,6 +1,6 @@
Name: unrar Name: unrar
Version: 6.0.3 Version: 6.0.3
Release: 1mamba Release: 2mamba
Summary: Unrar can extract files from .rar archives Summary: Unrar can extract files from .rar archives
Group: System/Tools Group: System/Tools
Vendor: openmamba Vendor: openmamba
@ -10,25 +10,50 @@ URL: http://www.rarlab.com
Source: http://www.rarlab.com/rar/unrarsrc-%{version}.tar.gz Source: http://www.rarlab.com/rar/unrarsrc-%{version}.tar.gz
Patch: %{name}-5.0.14-man.patch Patch: %{name}-5.0.14-man.patch
License: no OSI Approved License: no OSI Approved
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Unrar can extract files from .rar archives. Unrar can extract files from .rar archives.
If you want to create .rar archives, install package rar. 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 %prep
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%setup -q -n unrar %setup -q -c -a0
#%patch0 -p1 cp -a unrar libunrar
%build %build
%make CXX=%{_host}-g++ make -C libunrar STRIP=/bin/true lib
make -C unrar STRIP=/bin/true -j1
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}{%{_bindir},%{_mandir}/man1} install -D -m0755 unrar/unrar %{buildroot}%{_bindir}/unrar
install -m 0755 unrar %{buildroot}%{_bindir} 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 #install -m 0644 unrar.1 %{buildroot}%{_mandir}/man1
%clean %clean
@ -38,8 +63,21 @@ install -m 0755 unrar %{buildroot}%{_bindir}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/unrar %{_bindir}/unrar
#%{_mandir}/man1/* #%{_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 %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 * Mon Dec 07 2020 Automatic Build System <autodist@mambasoft.it> 6.0.3-1mamba
- automatic version update by autodist - automatic version update by autodist