Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:thomas-schraitle
epubcheck4
epubcheck4.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File epubcheck4.spec of Package epubcheck4
# # spec file for package epubcheck4 # # Copyright (c) 2014 SUSE LINUX Products 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/ # %define _name epubcheck %define devel alpha11 %define ver 4.0.0 Name: epubcheck4 Summary: Validates IDPF EPub Files License: BSD-3-Clause Group: Productivity/Publishing/XML Version: %{ver}_%{devel} Release: 0 URL: https://github.com/IDPF/epubcheck Source0: %{_name}-%{ver}-%{devel}-dist.zip # epubcheck-4.0.0-alpha11-dist.zip Source1: %{name}.script Source2: %{name}.xml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: unzip ant dos2unix %if 0%{?fedora_version} BuildRequires: java-1.6.0-openjdk-devel %else BuildRequires: java-devel >= 1.5 %endif BuildRequires: saxon jing BuildRequires: libzio-devel BuildRequires: docbook-xsl-stylesheets docbook_4 BuildRequires: libxslt Requires: saxon jing java %description *** THIS IS JUST FOR TESTING PURPOSES! *** The package name will be renamed to 'epubcheck' once *** the final version has been released. 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. Authors ------- Peter Sorotokin Garth Conboy Markus Gylling Piotr Kula Paul Norton %define EPUBCHECK_HOME %{_datadir}/%{name} %prep %setup -q -n %{_name}-%{ver}-%{devel} # Replace placeholder strings: cp %{S:1} %{name} sed -i "s=@HOME@=%{EPUBCHECK_HOME}=" %{name} cp %{S:2} . %build xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl %{name}.xml gzip -9 %{name}.1 %install rm -rf $RPM_BUILD_ROOT mkdir -p %{buildroot}%{_mandir}/man1 \ $RPM_BUILD_ROOT%{_javadir} \ $RPM_BUILD_ROOT%{_bindir} \ $RPM_BUILD_ROOT%{EPUBCHECK_HOME}/lib %{__install} -m 755 %{name} $RPM_BUILD_ROOT%{_bindir} cp %{name}.1.gz %{buildroot}%{_mandir}/man1 cp %{_name}.jar $RPM_BUILD_ROOT%{EPUBCHECK_HOME}/%{name}.jar cp -a lib/*.jar $RPM_BUILD_ROOT%{EPUBCHECK_HOME}/lib pushd $RPM_BUILD_ROOT%{_javadir} ln -s %{EPUBCHECK_HOME}/%{name}.jar . ln -s %{name}.jar %{name}-%{ver}.jar popd %files %defattr(-, root, root) %doc %{_mandir}/man1/%{name}* %dir %{EPUBCHECK_HOME} %{EPUBCHECK_HOME}/* %{_javadir}/%{name}*.jar %{_bindir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor