Accepting request 408451 from home:pluskalm:branches:devel:tools:compiler
- Small spec file cleanup OBS-URL: https://build.opensuse.org/request/show/408451 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/flex?expand=0&rev=22
This commit is contained in:
parent
353dd4fb35
commit
014b10195e
@ -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
|
||||
|
||||
|
33
flex.spec
33
flex.spec
@ -29,6 +29,7 @@ Source1: lex-wrapper.sh
|
||||
Source2: README.SUSE
|
||||
Source3: baselibs.conf
|
||||
Patch1: flex-2.6.1-fPIC.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: bison
|
||||
BuildRequires: gcc-c++
|
||||
@ -36,7 +37,8 @@ BuildRequires: help2man
|
||||
BuildRequires: libtool
|
||||
BuildRequires: makeinfo
|
||||
Requires: m4
|
||||
PreReq: %{install_info_prereq}
|
||||
Requires(pre): %{install_info_prereq}
|
||||
Requires(post): %{install_info_prereq}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -48,7 +50,7 @@ patterns in text.
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
--disable-shared
|
||||
@ -60,32 +62,31 @@ make %{?_smp_mflags} check
|
||||
%endif
|
||||
|
||||
%install
|
||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||
install %{SOURCE1} %{buildroot}/%{_bindir}/lex
|
||||
ln -s flex.1.gz %{buildroot}/%{_mandir}/man1/lex.1.gz
|
||||
cp %{SOURCE2} %{buildroot}/%{_docdir}/%{name}
|
||||
%make_install
|
||||
install -D -p -m 0755 %{SOURCE1} %{buildroot}/%{_bindir}/lex
|
||||
install -D -p -m 0644 %{SOURCE2} %{buildroot}/%{_docdir}/flex/README.SUSE
|
||||
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}
|
||||
|
||||
%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)
|
||||
%{_bindir}/flex
|
||||
%{_bindir}/flex++
|
||||
%{_bindir}/lex
|
||||
%{_includedir}/FlexLexer.h
|
||||
%{_libdir}/libfl.a
|
||||
%{_mandir}/man1/flex.1.gz
|
||||
%{_mandir}/man1/lex.1.gz
|
||||
%{_mandir}/man1/flex.1%{ext_man}
|
||||
%{_mandir}/man1/lex.1%{ext_man}
|
||||
%{_infodir}/flex*
|
||||
%{_docdir}/%{name}
|
||||
|
||||
%post
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%preun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user