Репозиторий Sisyphus
Последнее обновление: 17 октября 2019 | Пакетов: 17500 | Посещений: 15285814
en ru br
Репозитории ALT

Группа :: Издательство
Пакет: epubcheck

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

# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
# END SourceDeps(oneline)
# spec file for package epubcheck
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           epubcheck
Summary:        Validates IDPF EPub Files
License:        BSD-3-Clause
Group:          Publishing
Version:        3.0
Release:        alt1_5.1
URL:            http://code.google.com/p/epubcheck/
Source0:        %{name}-%{version}.zip
Source1:        %{name}.script
Source2: %{name}.xml
BuildArchitectures: noarch
BuildRequires:  unzip ant dos2unix
BuildRequires:  java-devel-default
BuildRequires:  saxon jing
BuildRequires:  libzio-devel
BuildRequires:  docbook-style-xsl docbook-dtds
BuildRequires:  libxslt xsltproc
Requires:       saxon jing java
Source44: import.info

EpubCheck is a tool to validate IDPF Epub files. It can
detect many types of errors in Epub. OCF container
structure, OPF and OPS mark-up, and internal reference
consistency are checked. EpubCheck can be run as a
standalone command-line tool, installed as a web application
or used as a library.

 Peter Sorotokin
 Garth Conboy
 Markus Gylling
 Piotr Kula
 Paul Norton

%define EPUBCHECK_HOME %{_datadir}/%{name}


%setup -q -n %{name}-%{version}
# Replace placeholder strings:
cp %{S:1} %{name}
sed -i "s= at HOME at =%{EPUBCHECK_HOME}=" %{name}
cp %{S:2} .

#xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl %{name}.xml
xsltproc /usr/share/xml/docbook/xsl-stylesheets/manpages/docbook.xsl %{name}.xml
gzip -9 %{name}.1

mkdir -p %{buildroot}%{_mandir}/man1 \
        $RPM_BUILD_ROOT%{_javadir} \
        $RPM_BUILD_ROOT%{_bindir} \
%{__install} -m 755 %{name}            $RPM_BUILD_ROOT%{_bindir}

cp %{name}.1.gz %{buildroot}%{_mandir}/man1
cp -a lib/*.jar $RPM_BUILD_ROOT%{EPUBCHECK_HOME}/lib

pushd $RPM_BUILD_ROOT%{_javadir}
ln -s %{EPUBCHECK_HOME}/%{name}-%{version}.jar %{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{name}.jar

%doc %{_mandir}/man1/%{name}*


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

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