Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 952dcac7adc38002154d3e807be1c4ac > files > 2

patool-1.5-5.mga5.src.rpm

Name:		patool
Version:	1.5
Release:	%mkrel 5
Summary:	Portable command line archive file manager
Source0:	http://wummel.github.io/%{name}/dist/%{name}-%{version}.tar.gz
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://wummel.github.io/patool/

BuildArch:	noarch

%description
Various archive types can be created, extracted, tested and listed by
patool. The advantage of patool is its simplicity in handling archive
files without having to remember a myriad of programs and options.

The archive format is determined by the file(1) program and as a
fallback by the archive file extension.

patool supports 7z (.7z), ACE (.ace), ALZIP (.alz), AR (.a), ARC (.arc),
ARJ (.arj), BZIP2 (.bz2), CAB (.cab), compress (.Z), CPIO (.cpio),
DEB (.deb), DMS (.dms), GZIP (.gz), LRZIP (.lrz), LZH (.lha, .lzh), LZIP (.lz),
LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar), RZIP (.rz), TAR (.tar),
XZ (.xz), ZIP (.zip, .jar) and ZOO (.zoo) formats. It relies on helper
applications to handle those archive formats (for example bzip2 for
BZIP2 archives).

The archive formats TAR (.tar), ZIP (.zip), BZIP2 (.bz2) and GZIP (.gz)
are supported natively and do not require helper applications to be
installed.


%prep
%setup -q -n %{name}-%{version}

%build
%{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot} --skip-build --record=INSTALLED_FILES
# 'brp-compress' compresses the manpages without distutils knowing.
# The sed script appends a * suffix to the affected manpage filename.
# This is because they can be installed under any of several extensions.
RPM_MANDIR=usr/share/man
RPM_LOCALMANDIR=usr/local/share/man

sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2*@' INSTALLED_FILES


%files
%doc doc/*.txt
%{_bindir}/patool
%{python_sitelib}/*/*.py*
%{python_sitelib}/*/*/*.py*
%{python_sitelib}/*.egg-info
%{python_sitelib}/_Patool_configdata.py*
%{_mandir}/man1/patool.1.*


%changelog
* Wed Oct 15 2014 umeabot <umeabot> 1.5-5.mga5
+ Revision: 742708
- Second Mageia 5 Mass Rebuild

* Sat Sep 27 2014 tv <tv> 1.5-4.mga5
+ Revision: 727534
- rebuild for missing pythoneggs deps

* Tue Sep 16 2014 umeabot <umeabot> 1.5-3.mga5
+ Revision: 683354
- Mageia 5 Mass Rebuild

  + pterjan <pterjan>
    - Rebuild for new Python

* Sat May 10 2014 shlomif <shlomif> 1.5-1.mga5
+ Revision: 621731
- New version 1.5

* Tue Oct 22 2013 umeabot <umeabot> 1.4-4.mga4
+ Revision: 542826
- Mageia 4 Mass Rebuild

* Tue Oct 15 2013 pterjan <pterjan> 1.4-3.mga4
+ Revision: 498032
- Rebuild to add different pythonegg provides for python 2 and 3

* Fri Oct 04 2013 philippem <philippem> 1.4-2.mga4
+ Revision: 491550
+ rebuild (emptylog)

* Sun Sep 08 2013 sander85 <sander85> 1.4-1.mga4
+ Revision: 476057
- New version: 1.4

* Sun Jul 21 2013 sander85 <sander85> 1.3-1.mga4
+ Revision: 457020
- New version: 1.3
- Update URLs

* Sat May 25 2013 shlomif <shlomif> 1.1-1.mga4
+ Revision: 427485
- New version 1.1

* Sun Jan 13 2013 umeabot <umeabot> 0.16-4.mga3
+ Revision: 362462
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon May 28 2012 shlomif <shlomif> 0.16-3.mga3
+ Revision: 248717
- Fix the build with PYTHONDONTWRITEBYTECODE=1
- imported package patool