summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2020-03-01 08:36:29 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2020-03-01 08:36:29 +0000
commitc46a6b9d52ed2a52e20821f395b2cb8be001eab5 (patch)
tree58902ca90d7a5dd225c5b580b8d447f6139b937e
parentd36cca12cdd835fa3508bbf9acb6ba5a0bcc6ed1 (diff)
automatic import of R-CRAN-epubr
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-epubr.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..14e9b3b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/epubr_0.6.1.tar.gz
diff --git a/R-CRAN-epubr.spec b/R-CRAN-epubr.spec
new file mode 100644
index 0000000..67bed5b
--- /dev/null
+++ b/R-CRAN-epubr.spec
@@ -0,0 +1,81 @@
+%global packname epubr
+%global packver 0.6.1
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.6.1
+Release: 1%{?dist}
+Summary: Read EPUB File Metadata and Text
+
+License: MIT + file LICENSE
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel
+Requires: R-core
+BuildArch: noarch
+BuildRequires: R-CRAN-xml2
+BuildRequires: R-CRAN-xslt
+BuildRequires: R-CRAN-magrittr
+BuildRequires: R-CRAN-tibble
+BuildRequires: R-CRAN-dplyr
+BuildRequires: R-CRAN-tidyr
+Requires: R-CRAN-xml2
+Requires: R-CRAN-xslt
+Requires: R-CRAN-magrittr
+Requires: R-CRAN-tibble
+Requires: R-CRAN-dplyr
+Requires: R-CRAN-tidyr
+
+%description
+Provides functions supporting the reading and parsing of internal e-book
+content from EPUB files. The 'epubr' package provides functions supporting
+the reading and parsing of internal e-book content from EPUB files. E-book
+metadata and text content are parsed separately and joined together in a
+tidy, nested tibble data frame. E-book formatting is not completely
+standardized across all literature. It can be challenging to curate parsed
+e-book content across an arbitrary collection of e-books perfectly and in
+completely general form, to yield a singular, consistently formatted
+output. Many EPUB files do not even contain all the same pieces of
+information in their respective metadata. EPUB file parsing functionality
+in this package is intended for relatively general application to
+arbitrary EPUB e-books. However, poorly formatted e-books or e-books with
+highly uncommon formatting may not work with this package. There may even
+be cases where an EPUB file has DRM or some other property that makes it
+impossible to read with 'epubr'. Text is read 'as is' for the most part.
+The only nominal changes are minor substitutions, for example curly quotes
+changed to straight quotes. Substantive changes are expected to be
+performed subsequently by the user as part of their text analysis.
+Additional text cleaning can be performed at the user's discretion, such
+as with functions from packages like 'tm' or 'qdap'.
+
+%prep
+%setup -q -c -n %{packname}
+
+
+%build
+
+%install
+
+mkdir -p %{buildroot}%{rlibdir}
+%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
+
+test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
+rm -f %{buildroot}%{rlibdir}/R.css
+
+%files
+%dir %{rlibdir}/%{packname}
+%doc %{rlibdir}/%{packname}/html
+%{rlibdir}/%{packname}/Meta
+%{rlibdir}/%{packname}/help
+%{rlibdir}/%{packname}/DESCRIPTION
+%license %{rlibdir}/%{packname}/LICENSE
+%{rlibdir}/%{packname}/NAMESPACE
+%doc %{rlibdir}/%{packname}/NEWS.md
+%{rlibdir}/%{packname}/R
+%doc %{rlibdir}/%{packname}/doc
+%doc %{rlibdir}/%{packname}/dracula.epub
+%doc %{rlibdir}/%{packname}/text.xml
+%doc %{rlibdir}/%{packname}/WORDLIST
+%{rlibdir}/%{packname}/INDEX
diff --git a/sources b/sources
new file mode 100644
index 0000000..7b68b2f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c9ef6ef2e28480cc07b948938f30e3dd epubr_0.6.1.tar.gz