SHA256
3
0
forked from pool/flex

Accepting request 889932 from devel:tools:compiler

OBS-URL: https://build.opensuse.org/request/show/889932
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/flex?expand=0&rev=36
This commit is contained in:
Dominique Leuenberger 2021-05-11 21:03:24 +00:00 committed by Git OBS Bridge
commit 7f183e4020
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat May 1 19:02:40 UTC 2021 - Dirk Müller <dmueller@suse.com>
- stop installing COPYING into docdir (already in licensedir)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 15 10:12:39 UTC 2021 - Martin Pluskal <mpluskal@suse.com> Mon Feb 15 10:12:39 UTC 2021 - Martin Pluskal <mpluskal@suse.com>

View File

@ -70,13 +70,14 @@ This package contains libraries for using flex.
%patch0 -p1 %patch0 -p1
%build %build
cp -a %{SOURCE2} .
autoreconf -fi autoreconf -fi
%configure \ %configure \
--docdir=%{_docdir}/%{name} --docdir=%{_docdir}/%{name}
%if 0%{?do_profiling} %if 0%{?do_profiling}
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}" %make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
# do not run profiling in parallel for reproducible builds (boo#1040589 boo#1102408) # do not run profiling in parallel for reproducible builds (boo#1040589 boo#1102408)
make CFLAGS="%{optflags} %{cflags_profile_generate}" check %make_build CFLAGS="%{optflags} %{cflags_profile_generate}" check
%make_build clean %make_build clean
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}" %make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else %else
@ -90,7 +91,6 @@ autoreconf -fi
%make_install %make_install
find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
install -D -p -m 0755 %{SOURCE1} %{buildroot}/%{_bindir}/lex 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} ln -s flex.1%{ext_man} %{buildroot}/%{_mandir}/man1/lex.1%{ext_man}
%find_lang %{name} %find_lang %{name}
@ -106,14 +106,14 @@ ln -s flex.1%{ext_man} %{buildroot}/%{_mandir}/man1/lex.1%{ext_man}
%files -f %{name}.lang %files -f %{name}.lang
%license COPYING %license COPYING
%doc AUTHORS ChangeLog NEWS ONEWS README.md THANKS %doc AUTHORS ChangeLog NEWS ONEWS README.md THANKS README.SUSE
%exclude %_docdir/%{name}/COPYING
%{_bindir}/flex %{_bindir}/flex
%{_bindir}/flex++ %{_bindir}/flex++
%{_bindir}/lex %{_bindir}/lex
%{_mandir}/man1/flex.1%{?ext_man} %{_mandir}/man1/flex.1%{?ext_man}
%{_mandir}/man1/lex.1%{?ext_man} %{_mandir}/man1/lex.1%{?ext_man}
%{_infodir}/flex* %{_infodir}/flex*
%{_docdir}/%{name}
%files -n libfl-devel %files -n libfl-devel
%license COPYING %license COPYING