Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37573899
en ru br
Репозитории ALT

Группа :: Работа с файлами
Пакет: m4b-tool

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%if_feature php81 8.1.0
%def_with php81
%define defphp php8.1
%endif

%if_feature php7 7.4.3
%def_with php7
%define defphp php7
%endif

Name: m4b-tool
Version: 0.4.2
Release: alt4

Summary: m4b-tool is a command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b

License: MIT
Group: File tools
Url: https://github.com/sandreas/m4b-tool

# Source-url: https://github.com/sandreas/m4b-tool/archive/v.%version.tar.gz

Source: %name-%version.tar

Source1: %name-development-%version.tar

Patch: 35f6fe997f0543d3f6ef6ca400738f94ff9c29ce.patch

Packager: Vitaly Lipatov <lav at altlinux.ru>

BuildArch: noarch

BuildRequires(pre): rpm-macros-features >= 0.8

#composer

# fdkaac
BuildRequires: ffmpeg mp4v2-utils git-core
BuildRequires: /usr/bin/php
BuildRequires: %defphp-intl %defphp-mbstring

Requires: %defphp-intl %defphp-mbstring
Requires: ffmpeg mp4v2-utils

%description
m4b-tool is a is a wrapper for ffmpeg and mp4v2 to merge,
split or and manipulate audiobook files with chapters.
Although m4b-tool is designed to handle m4b files,
nearly all audio formats should be supported, e.g. mp3, aac, ogg, alac and flac.

%prep
%setup -a1
%patch -p1

# Build need git repo

git init
git config user.email "you at example.com"
git config user.name "Your Name"
git add build
git commit -am "Fix for build"
git tag "%version"

%build
echo "Generating PHAR ..."
php -d phar.readonly=off tools/box.phar build

%install
mkdir -p %buildroot/%_bindir/
install -m755 dist/m4b-tool.phar %buildroot%_bindir/%name

#check

#test "$(%buildroot%_bindir/wp cli version)" = "m4b-tool %version"

%files
%_bindir/%name

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin