Accepting request 408452 from devel:tools:compiler
1 OBS-URL: https://build.opensuse.org/request/show/408452 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/flex?expand=0&rev=29
This commit is contained in:
commit
d0cbdbacbe
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 14 09:00:23 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Small spec file cleanup
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 26 09:26:03 UTC 2016 - idonmez@suse.com
|
Tue Apr 26 09:26:03 UTC 2016 - idonmez@suse.com
|
||||||
|
|
||||||
|
33
flex.spec
33
flex.spec
@ -29,6 +29,7 @@ Source1: lex-wrapper.sh
|
|||||||
Source2: README.SUSE
|
Source2: README.SUSE
|
||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
Patch1: flex-2.6.1-fPIC.patch
|
Patch1: flex-2.6.1-fPIC.patch
|
||||||
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -36,7 +37,8 @@ BuildRequires: help2man
|
|||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
Requires: m4
|
Requires: m4
|
||||||
PreReq: %{install_info_prereq}
|
Requires(pre): %{install_info_prereq}
|
||||||
|
Requires(post): %{install_info_prereq}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -48,7 +50,7 @@ patterns in text.
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fiv
|
||||||
%configure \
|
%configure \
|
||||||
--docdir=%{_docdir}/%{name} \
|
--docdir=%{_docdir}/%{name} \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
@ -60,32 +62,31 @@ make %{?_smp_mflags} check
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
%make_install
|
||||||
install %{SOURCE1} %{buildroot}/%{_bindir}/lex
|
install -D -p -m 0755 %{SOURCE1} %{buildroot}/%{_bindir}/lex
|
||||||
ln -s flex.1.gz %{buildroot}/%{_mandir}/man1/lex.1.gz
|
install -D -p -m 0644 %{SOURCE2} %{buildroot}/%{_docdir}/flex/README.SUSE
|
||||||
cp %{SOURCE2} %{buildroot}/%{_docdir}/%{name}
|
ln -s flex.1%{ext_man} %{buildroot}/%{_mandir}/man1/lex.1%{ext_man}
|
||||||
|
|
||||||
find %{buildroot} -name *.la -delete
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%post
|
||||||
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%install_info_delete --info-dir=%{_infodir} %%{_infodir}/%{name}.info%{ext_info}
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/flex
|
%{_bindir}/flex
|
||||||
%{_bindir}/flex++
|
%{_bindir}/flex++
|
||||||
%{_bindir}/lex
|
%{_bindir}/lex
|
||||||
%{_includedir}/FlexLexer.h
|
%{_includedir}/FlexLexer.h
|
||||||
%{_libdir}/libfl.a
|
%{_libdir}/libfl.a
|
||||||
%{_mandir}/man1/flex.1.gz
|
%{_mandir}/man1/flex.1%{ext_man}
|
||||||
%{_mandir}/man1/lex.1.gz
|
%{_mandir}/man1/lex.1%{ext_man}
|
||||||
%{_infodir}/flex*
|
%{_infodir}/flex*
|
||||||
%{_docdir}/%{name}
|
%{_docdir}/%{name}
|
||||||
|
|
||||||
%post
|
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
||||||
|
|
||||||
%preun
|
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user