summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTizenOpenSource <tizenopensrc@samsung.com>2023-12-28 18:17:59 +0900
committerTizenOpenSource <tizenopensrc@samsung.com>2023-12-28 18:17:59 +0900
commitb1f2fc9e7dae14d3e094d416ecd65288ad3d5bb0 (patch)
tree3a990de97c78dae00500d1dc9298d4c6af2131ee
parent122ee055da39d7d35d23c6be85aca64bcfa2fa07 (diff)
downloadtexinfo-sandbox/texinfo_7.1.tar.gz
texinfo-sandbox/texinfo_7.1.tar.bz2
texinfo-sandbox/texinfo_7.1.zip
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
-rw-r--r--packaging/info-dir22
-rw-r--r--packaging/texinfo.manifest5
-rw-r--r--packaging/texinfo.spec120
3 files changed, 147 insertions, 0 deletions
diff --git a/packaging/info-dir b/packaging/info-dir
new file mode 100644
index 00000000..5b4fc74f
--- /dev/null
+++ b/packaging/info-dir
@@ -0,0 +1,22 @@
+This is the file /usr/share/info/dir, which contains the
+topmost node of the Info hierarchy, called (dir)Top.
+The first time you invoke Info you start off looking at this node.
+
+File: dir, Node: Top This is the top of the INFO tree
+
+ This (the Directory node) gives a menu of major topics.
+ Typing "q" exits, "?" lists all Info commands, "d" returns here,
+ "h" gives a primer for first-timers,
+ "mEmacs<Return>" visits the Emacs manual, etc.
+
+ In Emacs, you can click mouse button 2 on a menu item or cross reference
+ to select it.
+
+* Menu:
+
+Utilities
+* Bash: (bash). The GNU Bourne-Again SHell.
+
+Libraries
+* History: (history). The GNU history library API
+* Readline: (readline). The GNU readline library API
diff --git a/packaging/texinfo.manifest b/packaging/texinfo.manifest
new file mode 100644
index 00000000..017d22d3
--- /dev/null
+++ b/packaging/texinfo.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/texinfo.spec b/packaging/texinfo.spec
new file mode 100644
index 00000000..69e6aa17
--- /dev/null
+++ b/packaging/texinfo.spec
@@ -0,0 +1,120 @@
+Name: texinfo
+Version: 7.1
+Release: 0
+Summary: Tools Needed to Create Documentation from Texinfo Sources
+License: GPL-3.0-or-later
+Group: Productivity/Publishing/Texinfo
+Url: https://www.gnu.org/software/texinfo/
+Source: %{name}-%{version}.tar.gz
+Source10: info-dir
+Source1001: texinfo.manifest
+
+BuildRequires: automake
+BuildRequires: help2man
+BuildRequires: bzip2-devel
+BuildRequires: libzio-devel
+BuildRequires: ncurses-devel
+BuildRequires: perl
+BuildRequires: perl-gettext
+BuildRequires: zlib-devel
+BuildRequires: gettext-tools
+
+
+%description
+Texinfo is a documentation system that uses a single source file to
+produce both online information and printed output. Using Texinfo, you
+can create a printed document with the normal features of a book,
+including chapters, sections, cross-references, and indices. From the
+same Texinfo source file, you can create a menu-driven, online info
+file with nodes, menus, cross-references, and indices using the included
+makeinfo tool.
+
+%package -n info
+Summary: A Stand-Alone Terminal-Based Info Browser
+License: GPL-3.0-or-later
+Group: Productivity/Publishing/Texinfo
+
+%description -n info
+Info is a terminal-based program for reading documentation of computer
+programs in the Info format. The GNU Project distributes most of its
+on-line manuals in the Info format, so you need a program called "Info
+reader" to read the manuals.
+
+%package -n makeinfo
+Summary: Translate Texinfo documents to info format
+License: GPL-3.0-or-later
+Group: Productivity/Publishing/Texinfo
+Provides: texinfo:/usr/bin/makeinfo
+Requires: texinfo = %{version}
+
+%description -n makeinfo
+Makeinfo translates Texinfo source documentation to various other
+formats, by default Info files suitable for reading online with Emacs
+or standalone GNU Info.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+export HOST=%{_target_cpu}-tizen-linux
+export CFLAGS="$RPM_OPT_FLAGS -pipe -fPIC"
+export LDFLAGS=" -pie "
+export CC=gcc
+export CXXFLAGS+=" -fPIC "
+
+
+AUTOPOINT=true autoreconf -fi
+./configure --build=$HOST \
+ --prefix=%{_prefix} \
+ --mandir=%{_mandir} \
+ --datadir=%{_datadir} \
+ --infodir=%{_infodir} \
+ --without-included-gettext \
+ --disable-perl-xs \
+ --enable-nls
+
+export PATH=${PWD}/makeinfo:${PWD}/util:$PATH
+make %{?_smp_mflags};
+
+%install
+export LD_AS_NEEDED=0
+
+make DESTDIR=%{buildroot} \
+ infodir=%{_infodir} \
+ htmldir=%{_defaultdocdir}/texi2html install
+
+install -d -m 0755 %{buildroot}/sbin
+mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/
+ln -sf ../../sbin/install-info %{buildroot}%{_bindir}/install-info
+
+install -d -m 0755 %{buildroot}%{_infodir}
+install -m 644 %{SOURCE10} %{buildroot}%{_infodir}/dir
+
+%find_lang %{name} %{name}.lang
+%find_lang %{name}_document %{name}_document.lang
+
+%remove_docs
+
+%files -f %{name}_document.lang
+%manifest %{name}.manifest
+%license COPYING
+%{_bindir}/pdftexi2dvi
+%{_bindir}/pod2texi
+%{_bindir}/texi2any
+%{_bindir}/texi2dvi
+%{_bindir}/texi2pdf
+%{_bindir}/texindex
+%{_datadir}/texinfo/*
+
+%files -n makeinfo -f %{name}.lang
+%manifest %{name}.manifest
+%license COPYING
+%{_bindir}/makeinfo
+
+%files -n info
+%manifest %{name}.manifest
+%license COPYING
+/sbin/install-info
+%{_bindir}/install-info
+%{_bindir}/info