bison/bison.spec

changeset 755
192d78fefb97
parent 452
30449282a0c7
equal deleted inserted replaced
3:02ba12361c77 4:ec5d4b2b1418
97 "%{l_bash}" configure \ 97 "%{l_bash}" configure \
98 --prefix=%{l_prefix} \ 98 --prefix=%{l_prefix} \
99 --mandir=%{l_prefix}/man \ 99 --mandir=%{l_prefix}/man \
100 --infodir=%{l_prefix}/info \ 100 --infodir=%{l_prefix}/info \
101 --disable-nls 101 --disable-nls
102 %{l_make} -f Makefile %{l_mflags} 102 %{l_make} -f Makefile %{l_mflags -O}
103 ) || exit $? 103 ) || exit $?
104 %if "%{with_old}" == "yes" 104 %if "%{with_old}" == "yes"
105 ( cd bison-%{V_old} 105 ( cd bison-%{V_old}
106 CC="%{l_cc}" \ 106 CC="%{l_cc}" \
107 CFLAGS="%{l_cflags -O}" \ 107 CFLAGS="%{l_cflags -O}" \
109 ./configure \ 109 ./configure \
110 --prefix=%{l_prefix} \ 110 --prefix=%{l_prefix} \
111 --mandir=%{l_prefix}/man \ 111 --mandir=%{l_prefix}/man \
112 --infodir=%{l_prefix}/info \ 112 --infodir=%{l_prefix}/info \
113 --disable-nls 113 --disable-nls
114 %{l_make} -f Makefile %{l_mflags} 114 %{l_make} -f Makefile %{l_mflags -O}
115 ) || exit $? 115 ) || exit $?
116 %endif 116 %endif
117 117
118 %install 118 %install
119 %if "%{with_old}" == "yes" 119 %if "%{with_old}" == "yes"
120 ( cd bison-%{V_old} 120 ( cd bison-%{V_old}
121 %{l_make} -f Makefile %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 121 %{l_make} -f Makefile %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
122 mv $RPM_BUILD_ROOT%{l_prefix}/bin/bison \ 122 mv $RPM_BUILD_ROOT%{l_prefix}/bin/bison \
123 $RPM_BUILD_ROOT%{l_prefix}/bin/bison-old 123 $RPM_BUILD_ROOT%{l_prefix}/bin/bison-old
124 mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/bison.1 \ 124 mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/bison.1 \
125 $RPM_BUILD_ROOT%{l_prefix}/man/man1/bison-old.1 125 $RPM_BUILD_ROOT%{l_prefix}/man/man1/bison-old.1
126 ) || exit $? 126 ) || exit $?
127 %endif 127 %endif
128 ( cd bison-%{V_new} 128 ( cd bison-%{V_new}
129 %{l_make} -f Makefile %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 129 %{l_make} -f Makefile %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
130 ) || exit $? 130 ) || exit $?
131 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale 131 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
132 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir 132 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
133 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias 133 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias
134 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 134 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true

mercurial