Add packaging, do not strip binaries, fix paths 15/18715/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_common accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0 tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2 tizen_3.0_ivi tizen_3.0_tv tizen_4.0 tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/3.0.m2/mobile/20170105.025605 accepted/tizen/3.0.m2/tv/20170105.025709 accepted/tizen/3.0.m2/wearable/20170105.025755 accepted/tizen/3.0/common/20161114.111944 accepted/tizen/3.0/ivi/20161011.070340 accepted/tizen/3.0/mobile/20161015.034416 accepted/tizen/3.0/tv/20161016.010035 accepted/tizen/3.0/wearable/20161015.084446 accepted/tizen/4.0/unified/20170816.013001 accepted/tizen/4.0/unified/20170828.221536 accepted/tizen/5.0/unified/20181102.030026 accepted/tizen/5.5/unified/20191031.012739 accepted/tizen/5.5/unified/mobile/hotfix/20201027.071716 accepted/tizen/5.5/unified/wearable/hotfix/20201027.104327 accepted/tizen/6.0/unified/20201030.103947 accepted/tizen/6.0/unified/hotfix/20201103.050157 accepted/tizen/6.5/unified/20211029.015343 accepted/tizen/7.0/unified/20221110.062723 accepted/tizen/7.0/unified/hotfix/20221116.111530 accepted/tizen/8.0/unified/20231005.095640 accepted/tizen/generic/20140402.145556 accepted/tizen/ivi/20140409.182009 accepted/tizen/ivi/20160223.234614 accepted/tizen/ivi/panda/20140402.181433 accepted/tizen/mobile/20141021.082600 accepted/tizen/unified/20170309.040735 submit/tizen/20140402.112002 submit/tizen_3.0.m2/20170104.093755 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000008 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100007 submit/tizen_5.0/20181101.000008 submit/tizen_5.5/20191031.000008 submit/tizen_5.5_mobile_hotfix/20201026.185108 submit/tizen_5.5_wearable_hotfix/20201026.184308 submit/tizen_6.0/20201029.205504 submit/tizen_6.0_hotfix/20201102.192904 submit/tizen_6.0_hotfix/20201103.115104 submit/tizen_6.5/20211028.163901 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160223.000000 submit/tizen_ivi/20160223.000001 submit/tizen_mobile/20141120.000000 submit/tizen_unified/20170308.100417 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorMaciej Wereski <m.wereski@partner.samsung.com>
Thu, 8 Aug 2013 13:00:38 +0000 (15:00 +0200)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Fri, 28 Mar 2014 14:41:24 +0000 (15:41 +0100)
Change-Id: Id57f35546ed13e370197e2e6fa5476c457ad255c
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Makefile
packaging/vi.manifest [new file with mode: 0644]
packaging/vi.spec [new file with mode: 0644]

index b3e01ea..b18699f 100644 (file)
--- 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 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/vi.spec b/packaging/vi.spec
new file mode 100644 (file)
index 0000000..c71fe57
--- /dev/null
@@ -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