-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBLASTvim.spec
More file actions
84 lines (68 loc) · 1.86 KB
/
Copy pathBLASTvim.spec
File metadata and controls
84 lines (68 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# spec file for package BLASTvim
#
# includes module(s): vim
#
%include Solaris.inc
%include usr-gnu.inc
Name: BLASTvim
Summary: Vi IMproved Text Editor
Version: 7.3
Source: ftp://ftp.vim.org/pub/vim/unix/vim-%{version}.tar.bz2
SUNW_BaseDir: %{_basedir}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: BLASTncursesw
%if %build_l10n
%package l10n
Summary: %{summary} - l10n files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %{name}
%endif
%prep
rm -rf vim73
%setup -q -n vim73
%build
export CFLAGS="-m64 -I/opt/blast/include -I/opt/blast/include/ncursesw "
export CPPFLAGS="-m64 -I/opt/blast/include -I/opt/blast/include/ncursesw "
export LDFLAGS="-m64 -R/opt/blast/lib/amd64 -L/opt/blast/lib/amd64 -lncursesw"
./configure --prefix=%{_prefix} \
--bindir=%{_bindir} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir} \
--enable-gui=no \
--without-x \
--enable-multibyte \
--disable-xim \
--with-features=big
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
rm -rf $RPM_BUILD_ROOT%{_mandir}/fr
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr(0755, root, sys) %{_datadir}
%dir %attr(0755, root, sys) %{_datadir}/vim
%{_datadir}/vim/*
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/*
%{_mandir}/*/*
%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif
%changelog
* Sun March 11 2012 - Initial SPEC - nh