fixes
This commit is contained in:
parent
a084c51809
commit
06c9f9fbb3
13
flex.spec
13
flex.spec
@ -7,7 +7,9 @@ Group: Development/Tools
|
|||||||
URL: http://flex.sourceforge.net/
|
URL: http://flex.sourceforge.net/
|
||||||
Source: http://puzzle.dl.sourceforge.net/sourceforge/flex/flex-%{version}.tar.bz2
|
Source: http://puzzle.dl.sourceforge.net/sourceforge/flex/flex-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: gettext info byacc
|
BuildRequires: gettext info bison m4
|
||||||
|
Requires(post): /sbin/install-info
|
||||||
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The flex program generates scanners. Scanners are programs which can
|
The flex program generates scanners. Scanners are programs which can
|
||||||
@ -24,7 +26,7 @@ You should install flex if you are going to use your system for
|
|||||||
application development.
|
application development.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n flex-%{version}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-dependency-tracking
|
%configure --disable-dependency-tracking
|
||||||
@ -33,6 +35,7 @@ make
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
||||||
|
|
||||||
( cd ${RPM_BUILD_ROOT}
|
( cd ${RPM_BUILD_ROOT}
|
||||||
ln -sf flex .%{_bindir}/lex
|
ln -sf flex .%{_bindir}/lex
|
||||||
@ -47,8 +50,10 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|||||||
%post
|
%post
|
||||||
/sbin/install-info %{_infodir}/flex.info.gz --dir-file=%{_infodir}/dir ||:
|
/sbin/install-info %{_infodir}/flex.info.gz --dir-file=%{_infodir}/dir ||:
|
||||||
|
|
||||||
%postun
|
%preun
|
||||||
/sbin/install-info --delete flex --dir-file=%{_infodir}/dir ||:
|
if [ $1 = 0 ]; then
|
||||||
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||||
|
fi
|
||||||
|
|
||||||
%check
|
%check
|
||||||
echo ============TESTING===============
|
echo ============TESTING===============
|
||||||
|
Loading…
Reference in New Issue
Block a user