summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2013-08-08 15:00:38 +0200
committerMaciej Wereski <m.wereski@partner.samsung.com>2014-03-28 15:41:24 +0100
commite8eb59aee615020d82dbe8bbfa108875d2946e86 (patch)
treed9bf914c094145d1ed79ef09734b1097a43f9613
parent8559e3346c0a43ee8671a8ea43767b1809c80021 (diff)
downloadvi-accepted/tizen_3.0.m2_wearable.tar.gz
vi-accepted/tizen_3.0.m2_wearable.tar.bz2
vi-accepted/tizen_3.0.m2_wearable.zip
Add packaging, do not strip binaries, fix pathstizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasetizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasetizen_3.0_ivi_releasetizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasetizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasetizen_3.0.m14.3_ivi_releasetizen_3.0.m14.2_ivi_releasetizen_3.0.2014.q3_common_releasesubmit/tizen_unified/20170308.100417submit/tizen_mobile/20141120.000000submit/tizen_ivi/20160223.000001submit/tizen_ivi/20160223.000000submit/tizen_ivi/20160217.000000submit/tizen_common/20151026.085049submit/tizen_common/20151023.083358submit/tizen_6.5/20211028.163901submit/tizen_6.0_hotfix/20201103.115104submit/tizen_6.0_hotfix/20201102.192904submit/tizen_6.0/20201029.205504submit/tizen_5.5_wearable_hotfix/20201026.184308submit/tizen_5.5_mobile_hotfix/20201026.185108submit/tizen_5.5/20191031.000008submit/tizen_5.0/20181101.000008submit/tizen_4.0/20170828.100007submit/tizen_4.0/20170811.094300submit/tizen_3.0_wearable/20161015.000006submit/tizen_3.0_tv/20161015.000006submit/tizen_3.0_mobile/20161015.000007submit/tizen_3.0_ivi/20161010.000008submit/tizen_3.0_common/20161104.104000submit/tizen_3.0.m2/20170104.093755submit/tizen/20140402.112002accepted/tizen/unified/20170309.040735accepted/tizen/mobile/20141021.082600accepted/tizen/ivi/panda/20140402.181433accepted/tizen/ivi/20160223.234614accepted/tizen/ivi/20140409.182009accepted/tizen/generic/20140402.145556accepted/tizen/8.0/unified/20231005.095640accepted/tizen/7.0/unified/hotfix/20221116.111530accepted/tizen/7.0/unified/20221110.062723accepted/tizen/6.5/unified/20211029.015343accepted/tizen/6.0/unified/hotfix/20201103.050157accepted/tizen/6.0/unified/20201030.103947accepted/tizen/5.5/unified/wearable/hotfix/20201027.104327accepted/tizen/5.5/unified/mobile/hotfix/20201027.071716accepted/tizen/5.5/unified/20191031.012739accepted/tizen/5.0/unified/20181102.030026accepted/tizen/4.0/unified/20170828.221536accepted/tizen/4.0/unified/20170816.013001accepted/tizen/3.0/wearable/20161015.084446accepted/tizen/3.0/tv/20161016.010035accepted/tizen/3.0/mobile/20161015.034416accepted/tizen/3.0/ivi/20161011.070340accepted/tizen/3.0/common/20161114.111944accepted/tizen/3.0.m2/wearable/20170105.025755accepted/tizen/3.0.m2/tv/20170105.025709accepted/tizen/3.0.m2/mobile/20170105.025605tizen_8.0tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizen_4.0tizen_3.0_tvtizen_3.0_ivitizen_3.0.m2tizen_3.0.m1_tvtizen_3.0.m1_mobiletizen_3.0.m14.3_ivitizen_3.0.m14.2_ivitizen_3.0.2015.q2_commontizen_3.0.2015.q1_commontizen_3.0.2014.q4_commontizen_3.0.2014.q3_commontizen_3.0accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_ivi_pandaaccepted/tizen_iviaccepted/tizen_genericaccepted/tizen_commonaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unifiedaccepted/tizen_4.0_unifiedaccepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_commonaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobileaccepted/tizen_3.0.m14.3_iviaccepted/tizen_3.0.2014.q3_common
Change-Id: Id57f35546ed13e370197e2e6fa5476c457ad255c Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
-rw-r--r--Makefile6
-rw-r--r--packaging/vi.manifest5
-rw-r--r--packaging/vi.spec53
3 files changed, 61 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b3e01ea..b18699f 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@
# Destinations for installation. $(PRESERVEDIR) is used for recovery files.
# It will get mode 1777.
#
-PREFIX = /usr/local
+PREFIX = /usr
BINDIR = $(PREFIX)/bin
LIBEXECDIR = $(PREFIX)/libexec
MANDIR = $(PREFIX)/share/man
@@ -94,7 +94,7 @@ DESTDIR =
#
# A BSD-like install program. GNU install will fit well here, too.
#
-INSTALL = /usr/ucb/install
+INSTALL = /usr/bin/install
#
# Compiler and linker flags.
@@ -235,7 +235,7 @@ MALLOC=mapmalloc.o
#WARN = -Wall -Wno-parentheses -Werror
-STRIP = -s
+STRIP =
RECOVER = -DEXRECOVER=\"$(LIBEXECDIR)/exrecover\" \
-DEXPRESERVE=\"$(LIBEXECDIR)/expreserve\"
CCFLAGS = $(CFLAGS) $(WARN) $(CPPFLAGS) $(FEATURES) $(CHARSET) $(OSTYPE) \
diff --git a/packaging/vi.manifest b/packaging/vi.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/vi.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/vi.spec b/packaging/vi.spec
new file mode 100644
index 0000000..c71fe57
--- /dev/null
+++ b/packaging/vi.spec
@@ -0,0 +1,53 @@
+Name: vi
+Version: 050325
+Release: 1
+License: BSD-4-Clause-UC and BSD-4-Clause-Caldera
+
+Summary: The Traditional Vi
+
+Url: http://ex-vi.sourceforge.net/
+Group: Base/Utilities
+Source: http://prdownloads.sourceforge.net/ex-vi/ex-%{version}.tar.bz2
+Source1: vi.manifest
+BuildRequires: gcc
+BuildRequires: make
+BuildRequires: glibc-devel >= 2.2.2
+BuildRequires: ncurses-devel
+Conflicts: vim-base
+
+%description
+Compared to most of its many clones, the traditional vi is a rather small
+program just with its extremely powerful editing interface, but lacking fancy
+features like multiple undo, multiple screens, or syntax highlighting.
+This port of vi has generally preserved the original style, terminal control,
+and feature set. It adds support for international character sets, including
+multibyte encodings such as UTF-8, and some minor enhancements that were not
+present in BSD vi 3.7, but had been included in later vi versions for System V
+or in POSIX.2.
+
+%prep
+%setup -q -n ex-%{version}
+
+cp %{SOURCE1} .
+
+%build
+export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
+export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
+
+make
+
+%install
+%make_install
+
+rm -Rf %{buildroot}%{_mandir}
+
+%files
+%defattr(-,root,root,-)
+%manifest vi.manifest
+%{_bindir}/edit
+%{_bindir}/ex
+%{_bindir}/vedit
+%{_bindir}/vi
+%{_bindir}/view
+%{_libexecdir}/expreserve
+%{_libexecdir}/exrecover