14
0
Files
python-guessit/python-guessit.spec
Tomáš Chvátal 8a23449611 Accepting request 632651 from home:alois:branches:devel:languages:python
- Update to version 3.0.0
  * Renamed `format` property to `source`.
  * `source` property `Cam` is now `Camera` or `HD Camera`
  * `source` property `Telesync` is now `Telesync` or `HD
    Telesync`
  * `source` property `PPV` is now `Pay-per-view`
  * `source` property `DVB` is now `Digital TV`
  * `source` property `VOD` is now `Video on Demand`
  * `source` property `WEBRip` is now `Web` with additional
    property `other`: `Rip`
  * `source` property `WEB-DL` is now `Web`
  * `source` property `AHDTV` is now `Analog HDTV`
  * `source` property `UHDTV` is now `Ultra HDTV`
  * `source` property `HDTC` is now `HD Telecine`
  * `screen_size` property `360i` was added.
  * `screen_size` property `480i` was added.
  * `screen_size` property `576i` was added.
  * `screen_size` property `900i` was added.
  * `screen_size` property `1440p` was added.
  * `screen_size` property `4K` is now `2160p`
  * `screen_size` property `4320p` was added.
  * `video_codec` property `h264` is now `H.264`
  * `video_codec` property `h265` is now `H.265`
  * `video_codec` property `Mpeg2` is now `MPEG-2`
  * `video_codec` property `Real` is now `RealVideo`
  * `video_codec` property `XviD` is now `Xvid`
  * `video_profile` property `BP` is now `Baseline`.
  * `video_profile` property `HP` is now `High`.
  * `video_profile` property `XP` is now `Extended`.
  * `video_profile` property `MP` is now `Main`.
  * `video_profile` property `Hi422P` is now `High 4:2:2`.
  * `video_profile` property `Hi444PP` is now `High 4:4:4
    Predictive`.
  * `video_profile` property `High 10` was added.
  * `video_profile` property `8bit` was removed. `8bit` is
    detected as `color_depth`: `8-bit`
  * `video_profile` property `10bit` was removed. `10bit` is
    detected as `color_depth`: `10-bit`
  * `audio_codec` property `DTS-HD` was added.
  * `audio_codec` property `AC3` is now `Dolby Digital`
  * `audio_codec` property `EAC3` is now `Dolby Digital Plus`
  * `audio_codec` property `TrueHD` is now `Dolby TrueHD`
  * `audio_codec` property `DolbyAtmos` is now `Dolby Atmos`.
  * `audio_profile` property `HE` is now `High Efficiency`.
  * `audio_profile` property `LC` is now `Low Complexity`.
  * `audio_profile` property `HQ` is now `High Quality`.
  * `audio_profile` property `HDMA` is now `Master Audio`.
  * `edition` property `Collector Edition` is now `Collector`
  * `edition` property `Special Edition` is now `Special`
  * `edition` property `Criterion Edition` is now `Criterion`
  * `edition` property `Deluxe Edition` is now `Deluxe`
  * `edition` property `Limited Edition` is now `Limited`
  * `edition` property `Theatrical Edition` is now `Theatrical`
  * `edition` property `Director's Definitive Cut` was added.
  * `episode_details` property `Oav` and `Ova` were removed.
    They are now `other: Original Animated Video`
  * `episode_details` property `Omake` is now `Extras`
  * `episode_details` property `Final` was added.
  * `other` property `Rip` was added.
  * `other` property `DDC` was removed. `DDC` is now `edition`:
    `Director's Definitive Cut`
  * `other` property `CC` was removed. `CC` is now `edition`:
    `Criterion`
  * `other` property `FINAL` was removed. `FINAL` is now
    `episode_details`: `Final`
  * `other` property `Original Animated Video` was added.
  * `other` property `OV` is now `Original Video`
  * `other` property `AudioFix` is now `Audio Fixed`
  * `other` property `SyncFix` is now `Sync Fixed`
  * `other` property `DualAudio` is now `Dual Audio`
  * `other` property `Fansub` is now `Fan Subtitled`
  * `other` property `Fastsub` is now `Fast Subtitled`
  * `other` property `FullHD` is now `Full HD`
  * `other` property `UltraHD` is now `Ultra HD`
  * `other` property `mHD` and `HDLight` are now `Micro HD`
  * `other` property `HQ` is now `High Quality`
  * `other` property `HR` is now `High Resolution`
  * `other` property `LD` is now `Line Dubbed`
  * `other` property `MD` is now `Mic Dubbed`
  * `other` property `Low Definition` was added.
  * `other` property `LiNE` is now `Line Audio`
  * `other` property `R5` is now `Region 5`
  * `other` property `Region C` was added.
  * `other` property `ReEncoded` is now `Reencoded`
  * `other` property `WideScreen` is now `Widescreen`
  * Added `Ultra HD Blu-ray` as new `source` possible value.
  * Added `Standard Dynamic Range` as new `other` possible value.
  * Added `HDR10` as new `other` possible value.
  * Added `Dolby Vision` as new `other` possible value.
  * Added `BT.2020` as new `other` possible value.
  * Added `12-bit` as new `color_depth` possible value.
  * Added `IMAX` as new `edition` possible value.
  * Added `Upscaled` as new `other` possible value.
  * Added `High Frame Rate` as new `other` possible value.
  * Added `Ultimate` as new `edition` possible value.
  * Added `Fan` as new `edition` possible value.
  * Added `High Resolution Audio` as new `audio_profile`
    possible value.
  * Added `Extended Surround` as new `audio_profile` possible
    value.
  * Added `EX` as new `audio_profile` possible value
  * Added `Opus` as new `audio_codec` possible value
  * Added `aspect_ratio` as new property. Also used to validate
    if a screen_size is a standard resolution.
  * Fixed unwanted language and country detection for exotic
    languages.
  * Added default and configurable list of allowed languages and
    countries
  * Added `VC-1` as new `video_codec` possible value
  * Enhanced dash-separated `release_group` detection.
  * Changed `size` output to return `guessit.Quantity` object.
  * Changed `size` output to return `guessit.Size` object.
  * Added `audio_video_rate` as new possible property.
  * Added `video_video_rate` as new possible property.
  * Added `frame_rate` as new possible property.
  * Added `disc` as a new possible property.
  * Added `H.263` as new `video_codec` possible value.
  * Added `VP7` as new `video_codec` possible value.
  * Added `VP8` as new `video_codec` possible value.
  * Added `VP9` as new `video_codec` possible value.
  * Added `Vorbis` as new `audio_codec` possible value.
  * Added `PCM` as new `audio_codec` possible value.
  * Added `LPCM` as new `audio_codec` possible value.
  * Added `Digital Master` as new `source` possible value.
  * Added several new values for `streaming_service`.
  * Added new options `--includes` and `--excludes`.
  * Added `Sample` as new `other` possible value.
  * Added `Obfuscated` as new `other` possible value.
  * Added `Proof` as new `other` possible value.
  * Added `Repost` as new `other` possible value.
  * Added advanced guessit configuration to config files.
  * Add support for `pathlib.Path` objects on guessit API input.
  version 2.1.4
  * Fix broken match function when using `rebulk>=0.9.0`.
- Enabled tests

OBS-URL: https://build.opensuse.org/request/show/632651
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-guessit?expand=0&rev=11
2018-09-03 08:30:11 +00:00

86 lines
3.4 KiB
RPMSpec

#
# spec file for package python-guessit
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-guessit
Version: 3.0.0
Release: 0
Summary: GuessIt - a library for guessing information from video files
License: LGPL-3.0-only
Group: Development/Languages/Python
Url: https://github.com/wackou/guessit
Source0: https://pypi.io/packages/source/g/guessit/guessit-%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module babelfish >= 0.5.5}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module rebulk >= 0.9.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-babelfish >= 0.5.5
Requires: python-python-dateutil
Requires: python-rebulk >= 0.9.0
BuildArch: noarch
%python_subpackages
%description
GuessIt is a Python library that extracts as much information as
possible from a video file.
It has a filename matcher that allows to guess a lot of metadata from
a video using its filename only. This matcher works with both movies
and TV shows episodes.
%prep
%setup -q -n guessit-%{version}
# Remove shebang from non-executable files
for i in {'audio_codec','bit_rate','bonus','cds','container','country','crc','date','edition','episodes','episode_title','film','__init__','language','mimetype','other','part','release_group','screen_size','size','source','streaming_service','title','type','video_codec','website'}; do
sed -i -e "1d" "guessit/rules/properties/$i.py"
done
for i in {'common/comparators','common/date','common/expected','common/formatters','common/__init__','common/numeral','common/pattern','common/quantity','common/validators','common/words','__init__','markers/groups','markers/__init__','markers/path','processors'}; do
sed -i -e "1d" "guessit/rules/$i.py"
done
for i in {'api','backports','__init__','jsonutils','__main__','options','reutils','test/__init__','test/rules/__init__','test/rules/processors_test','test/test_api','test/test_api_unicode_literals','test/test_benchmark','test/test_main','test/test_options','test/test_yml','__version__','yamlutils'}; do
sed -i -e "1d" "guessit/$i.py"
done
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
%{python_expand pushd %{buildroot}%{$python_sitelib}/guessit
$python %{_bindir}/py.test
rm -rf .benchmarks .pytest_cache
popd
}
%files %{python_files}
%doc README.rst
%license LICENSE
%python3_only %{_bindir}/guessit
%{python_sitelib}/guessit
%{python_sitelib}/guessit-%{version}-py%{python_version}.egg-info
%changelog