parent
c5de0e2acb
commit
9829cc0a31
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ flex-2.5.35.tar.bz2
|
|||||||
*.rpm
|
*.rpm
|
||||||
/flex-2.5.36.tar.bz2
|
/flex-2.5.36.tar.bz2
|
||||||
/flex-2.5.37.tar.bz2
|
/flex-2.5.37.tar.bz2
|
||||||
|
/flex-2.5.39.tar.bz2
|
||||||
|
30
flex.spec
30
flex.spec
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
Summary: A tool for creating scanners (text pattern recognizers)
|
Summary: A tool for creating scanners (text pattern recognizers)
|
||||||
Name: flex
|
Name: flex
|
||||||
Version: 2.5.37
|
Version: 2.5.39
|
||||||
Release: 8%{?dist}
|
Release: 1%{?dist}
|
||||||
# parse.c and parse.h are under GPLv3+ with exception which allows
|
# parse.c and parse.h are under GPLv3+ with exception which allows
|
||||||
# relicensing. Since flex is shipped under BDS-style license,
|
# relicensing. Since flex is shipped under BDS-style license,
|
||||||
# let's assume that the relicensing was done.
|
# let's assume that the relicensing was done.
|
||||||
@ -13,17 +13,8 @@ Group: Development/Tools
|
|||||||
URL: http://flex.sourceforge.net/
|
URL: http://flex.sourceforge.net/
|
||||||
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
# https://sourceforge.net/tracker/?func=detail&aid=3546447&group_id=97492&atid=618177
|
|
||||||
Patch0: flex-2.5.36-bison-2.6.1.patch
|
|
||||||
|
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=925801
|
|
||||||
Patch1: flex-2.5.37-aarch64.patch
|
|
||||||
|
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=993447
|
|
||||||
Patch2: flex-2.5.37-types.patch
|
|
||||||
|
|
||||||
#fix test-bison-yylloc and test-bison-yylval test failures
|
#fix test-bison-yylloc and test-bison-yylval test failures
|
||||||
Patch3: 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
|
Patch0: 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: m4
|
Requires: m4
|
||||||
@ -71,9 +62,6 @@ plain text and PDF formats.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS"
|
%configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS"
|
||||||
@ -84,6 +72,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
||||||
rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO}
|
rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO}
|
||||||
|
# For now, excluding the new .la and .so files as we haven't had
|
||||||
|
# any requests for them and adding them will require a new subpackage.
|
||||||
|
# The .so files contain 2 optional implementations of main and yywrap
|
||||||
|
# for developer convenience. They are also available in the .a file
|
||||||
|
# provided in flex-devel.
|
||||||
|
find %{buildroot} -name '*.la' -delete
|
||||||
|
find %{buildroot} -name '*.so' -delete
|
||||||
|
find %{buildroot} -name '*.so.2' -delete
|
||||||
|
find %{buildroot} -name '*.so.2.0.0' -delete
|
||||||
|
|
||||||
( cd ${RPM_BUILD_ROOT}
|
( cd ${RPM_BUILD_ROOT}
|
||||||
ln -sf flex .%{_bindir}/lex
|
ln -sf flex .%{_bindir}/lex
|
||||||
@ -137,6 +134,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_pkgdocdir}
|
%{_pkgdocdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 13 2015 Patsy Franklin <pfrankli@redhat.com> - 2.5.39-1
|
||||||
|
- Rebase to 2.5.39
|
||||||
|
|
||||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.37-8
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.37-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user