Group :: Archiving/Compression
RPM: unrar
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: unrar
Version: 6.1.7
Release: alt1
Summary: RAR unarchiver
License: Freely distributable
Group: Archiving/Compression
Url: http://www.rarlab.com
Source: %{name}src-%version.tar.gz
# Automatically added by buildreq on Mon Feb 07 2011
BuildRequires: gcc-c++
%description
The unrar utility is a freeware program, distributed with source code and
developed for extracting, testing and viewing the contents of archives created
with the RAR archiver, version 1.50 and above.
%package -n libunrar
Summary: Shared library for extracting, testing and viewing the contents of RAR archives
Group: System/Libraries
%description -n libunrar
Shared library for extracting, testing and viewing the contents of RAR archives
%package -n libunrar-devel
Summary: Include file containing unrar API
Group: Development/C++
%description -n libunrar-devel
%summary
%prep
%setup -n unrar
sed -ri 's/^(lib:[[space:]]+)clean[[:space:]]+/\1/' makefile
sed -i '1i#define _UNIX' dll.hpp
%build
%make_build lib STRIP=touch
mv libunrar.so ..
%make_build clean
%make_build unrar STRIP=touch
#make_build lib LDFLAGS+='-Wl,-soname=libunrar.so.0' STRIP=touch
%install
install -pD -m755 unrar %buildroot%_bindir/unrar
install -D ../libunrar.so %buildroot%_libdir/libunrar.so
install -D dll.hpp %buildroot%_includedir/libunrar/dll.hpp
%files
%_bindir/*
%doc *.txt
%files -n libunrar
%doc *.txt
%_libdir/libunrar.so
%files -n libunrar-devel
%dir %_includedir/libunrar
%_includedir/libunrar/dll.hpp
%changelog
…
Full changelog you can see here
Version: 6.1.7
Release: alt1
Summary: RAR unarchiver
License: Freely distributable
Group: Archiving/Compression
Url: http://www.rarlab.com
Source: %{name}src-%version.tar.gz
# Automatically added by buildreq on Mon Feb 07 2011
BuildRequires: gcc-c++
%description
The unrar utility is a freeware program, distributed with source code and
developed for extracting, testing and viewing the contents of archives created
with the RAR archiver, version 1.50 and above.
%package -n libunrar
Summary: Shared library for extracting, testing and viewing the contents of RAR archives
Group: System/Libraries
%description -n libunrar
Shared library for extracting, testing and viewing the contents of RAR archives
%package -n libunrar-devel
Summary: Include file containing unrar API
Group: Development/C++
%description -n libunrar-devel
%summary
%prep
%setup -n unrar
sed -ri 's/^(lib:[[space:]]+)clean[[:space:]]+/\1/' makefile
sed -i '1i#define _UNIX' dll.hpp
%build
%make_build lib STRIP=touch
mv libunrar.so ..
%make_build clean
%make_build unrar STRIP=touch
#make_build lib LDFLAGS+='-Wl,-soname=libunrar.so.0' STRIP=touch
%install
install -pD -m755 unrar %buildroot%_bindir/unrar
install -D ../libunrar.so %buildroot%_libdir/libunrar.so
install -D dll.hpp %buildroot%_includedir/libunrar/dll.hpp
%files
%_bindir/*
%doc *.txt
%files -n libunrar
%doc *.txt
%_libdir/libunrar.so
%files -n libunrar-devel
%dir %_includedir/libunrar
%_includedir/libunrar/dll.hpp
%changelog
…
Full changelog you can see here