|
|
5b09cbd |
%{?mingw_package_header}
|
|
|
f6f9c2c |
|
|
|
cb0c379 |
%global mingw_pkg_name antlr
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
Summary: MinGW Windows ANTLR C++ run-time library
|
|
|
cb0c379 |
Name: mingw-%{mingw_pkg_name}
|
|
|
f6f9c2c |
Version: 2.7.7
|
|
|
1968a6a |
Release: 25%{?dist}
|
|
|
f6f9c2c |
License: Public Domain
|
|
|
f6f9c2c |
URL: http://www.antlr.org/
|
|
|
cb0c379 |
Source0: http://www.antlr2.org/download/%{mingw_pkg_name}-%{version}.tar.gz
|
|
|
cb0c379 |
Patch1: %{mingw_pkg_name}-%{version}-newgcc.patch
|
|
|
cb0c379 |
Patch2: mingw-%{mingw_pkg_name}.patch
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
BuildArch: noarch
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
BuildRequires: mingw32-filesystem >= 52
|
|
|
82a0f9d |
BuildRequires: mingw64-filesystem >= 52
|
|
|
f6f9c2c |
BuildRequires: mingw32-gcc
|
|
|
82a0f9d |
BuildRequires: mingw64-gcc
|
|
|
f6f9c2c |
BuildRequires: mingw32-gcc-c++
|
|
|
82a0f9d |
BuildRequires: mingw64-gcc-c++
|
|
|
f6f9c2c |
BuildRequires: mingw32-binutils
|
|
|
82a0f9d |
BuildRequires: mingw64-binutils
|
|
|
f6f9c2c |
BuildRequires: libtool
|
|
|
f6f9c2c |
BuildRequires: autoconf
|
|
|
f6f9c2c |
BuildRequires: automake
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
Requires: pkgconfig
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
%description
|
|
|
f6f9c2c |
ANTLR is a parser generator. This package contains the MinGW Windows
|
|
|
f6f9c2c |
run-time library for ANTLR C++ parsers.
|
|
|
f6f9c2c |
|
|
|
cb0c379 |
# Mingw32
|
|
|
cb0c379 |
%package -n mingw32-%{mingw_pkg_name}
|
|
|
cb0c379 |
Summary: %{summary}
|
|
|
cb0c379 |
|
|
|
cb0c379 |
%description -n mingw32-%{mingw_pkg_name}
|
|
|
cb0c379 |
ANTLR is a parser generator. This package contains the MinGW Windows
|
|
|
cb0c379 |
run-time library for ANTLR C++ parsers.
|
|
|
cb0c379 |
|
|
|
cb0c379 |
%package -n mingw32-%{mingw_pkg_name}-static
|
|
|
f6f9c2c |
Summary: Static Version of the MinGW Windows ANTLR C++ run-time library
|
|
|
cb0c379 |
Requires: mingw32-%{mingw_pkg_name} = %{version}-%{release}
|
|
|
f6f9c2c |
|
|
|
cb0c379 |
%description -n mingw32-%{mingw_pkg_name}-static
|
|
|
f6f9c2c |
Static version of the MinGW Windows ANTLR run-time library.
|
|
|
f6f9c2c |
|
|
|
5b09cbd |
# Mingw64
|
|
|
5b09cbd |
%package -n mingw64-%{mingw_pkg_name}
|
|
|
5b09cbd |
Summary: %{summary}
|
|
|
5b09cbd |
|
|
|
5b09cbd |
%description -n mingw64-%{mingw_pkg_name}
|
|
|
5b09cbd |
ANTLR is a parser generator. This package contains the MinGW Windows
|
|
|
5b09cbd |
run-time library for ANTLR C++ parsers.
|
|
|
5b09cbd |
|
|
|
5b09cbd |
%package -n mingw64-%{mingw_pkg_name}-static
|
|
|
5b09cbd |
Summary: Static Version of the MinGW Windows ANTLR C++ run-time library
|
|
|
5b09cbd |
Requires: mingw32-%{mingw_pkg_name} = %{version}-%{release}
|
|
|
5b09cbd |
|
|
|
5b09cbd |
%description -n mingw64-%{mingw_pkg_name}-static
|
|
|
5b09cbd |
Static version of the MinGW Windows ANTLR run-time library.
|
|
|
5b09cbd |
|
|
|
5b09cbd |
%{?mingw_debug_package}
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
%prep
|
|
|
cb0c379 |
%setup -q -n %{mingw_pkg_name}-%{version}
|
|
|
f6f9c2c |
# remove all binary libs
|
|
|
f6f9c2c |
find . -name "*.jar" -exec rm -f {} \;
|
|
|
f6f9c2c |
%patch1
|
|
|
f6f9c2c |
%patch2 -p1 -b .mingw
|
|
|
f6f9c2c |
# CRLF->LF
|
|
|
f6f9c2c |
sed -i 's/\r//' LICENSE.txt
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
%build
|
|
|
5b09cbd |
%{mingw_configure} --without-examples
|
|
|
f6f9c2c |
pushd lib/cpp
|
|
|
f6f9c2c |
touch NEWS
|
|
|
f6f9c2c |
rm -f {,antlr,src}/Makefile{.in,}
|
|
|
f6f9c2c |
libtoolize -f -c
|
|
|
f6f9c2c |
aclocal -I m4
|
|
|
f6f9c2c |
autoconf
|
|
|
f6f9c2c |
autoheader
|
|
|
f6f9c2c |
automake -a -c
|
|
|
5b09cbd |
%{mingw_configure} --enable-static
|
|
|
5b09cbd |
%{mingw_make} %{?_smp_mflags}
|
|
|
f6f9c2c |
popd
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
%install
|
|
|
f6f9c2c |
pushd lib/cpp
|
|
|
5b09cbd |
%{mingw_make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
f6f9c2c |
popd
|
|
|
f6f9c2c |
|
|
|
5b09cbd |
rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libantlr2.la
|
|
|
5b09cbd |
rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/libantlr2.la
|
|
|
f6f9c2c |
|
|
|
fdffab9 |
mkdir $RPM_BUILD_ROOT%{_bindir}
|
|
|
5b09cbd |
install -p -m 755 build_win32/scripts/antlr-config $RPM_BUILD_ROOT%{mingw32_bindir}/antlr-config
|
|
|
5b09cbd |
install -p -m 755 build_win64/scripts/antlr-config $RPM_BUILD_ROOT%{mingw64_bindir}/antlr-config
|
|
|
5b09cbd |
ln -s %{mingw32_bindir}/antlr-config $RPM_BUILD_ROOT%{_bindir}/%{mingw32_target}-antlr-config
|
|
|
5b09cbd |
ln -s %{mingw64_bindir}/antlr-config $RPM_BUILD_ROOT%{_bindir}/%{mingw64_target}-antlr-config
|
|
|
f6f9c2c |
|
|
|
cb0c379 |
%files -n mingw32-%{mingw_pkg_name}
|
|
|
f6f9c2c |
%doc LICENSE.txt
|
|
|
5b09cbd |
%{mingw32_includedir}/%{mingw_pkg_name}
|
|
|
5b09cbd |
%{mingw32_bindir}/antlr-config
|
|
|
5b09cbd |
%{mingw32_bindir}/libantlr2-0.dll
|
|
|
5b09cbd |
%{mingw32_libdir}/libantlr2.dll.a
|
|
|
5b09cbd |
%{mingw32_libdir}/pkgconfig/antlr2.pc
|
|
|
5b09cbd |
%{_bindir}/%{mingw32_target}-antlr-config
|
|
|
f6f9c2c |
|
|
|
cb0c379 |
%files -n mingw32-%{mingw_pkg_name}-static
|
|
|
5b09cbd |
%{mingw32_libdir}/libantlr2.a
|
|
|
5b09cbd |
|
|
|
5b09cbd |
%files -n mingw64-%{mingw_pkg_name}
|
|
|
5b09cbd |
%doc LICENSE.txt
|
|
|
5b09cbd |
%{mingw64_includedir}/%{mingw_pkg_name}
|
|
|
5b09cbd |
%{mingw64_bindir}/antlr-config
|
|
|
5b09cbd |
%{mingw64_bindir}/libantlr2-0.dll
|
|
|
5b09cbd |
%{mingw64_libdir}/libantlr2.dll.a
|
|
|
5b09cbd |
%{mingw64_libdir}/pkgconfig/antlr2.pc
|
|
|
5b09cbd |
%{_bindir}/%{mingw64_target}-antlr-config
|
|
|
5b09cbd |
|
|
|
5b09cbd |
%files -n mingw64-%{mingw_pkg_name}-static
|
|
|
5b09cbd |
%{mingw64_libdir}/libantlr2.a
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
%changelog
|
|
|
3ee8775 |
* Tue Aug 04 2020 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.7.7-25
|
|
|
3ee8775 |
- rebuild
|
|
|
3ee8775 |
|
|
|
1968a6a |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-25
|
|
|
1968a6a |
- Second attempt - Rebuilt for
|
|
|
1968a6a |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
1968a6a |
|
|
|
533812b |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-24
|
|
|
533812b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
533812b |
|
|
|
b327213 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-23
|
|
|
b327213 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
b327213 |
|
|
|
c29611a |
* Tue Oct 08 2019 Sandro Mani <manisandro@gmail.com> - 2.7.7-22
|
|
|
c29611a |
- Rebuild (Changes/Mingw32GccDwarf2)
|
|
|
c29611a |
|
|
|
2220f86 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-21
|
|
|
2220f86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
2220f86 |
|
|
|
efef6b2 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-20
|
|
|
efef6b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
efef6b2 |
|
|
|
b65351c |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-19
|
|
|
b65351c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
b65351c |
|
|
|
ee8991c |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-18
|
|
|
ee8991c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
ee8991c |
|
|
|
9ddd4cb |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-17
|
|
|
9ddd4cb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
9ddd4cb |
|
|
|
b2c2212 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-16
|
|
|
b2c2212 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
b2c2212 |
|
|
|
884f58a |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-15
|
|
|
884f58a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
884f58a |
|
|
|
c0fc4c6 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.7-14
|
|
|
c0fc4c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
c0fc4c6 |
|
|
|
3c0503d |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.7-13
|
|
|
3c0503d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
3c0503d |
|
|
|
e0ce7e4 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.7-12
|
|
|
e0ce7e4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
e0ce7e4 |
|
|
|
ed8fecb |
* Sun Jan 27 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.7.7-11
|
|
|
ed8fecb |
- Rebuild against mingw-gcc 4.8 (win64 uses SEH exceptions now)
|
|
|
ed8fecb |
|
|
|
5b09cbd |
* Fri Aug 3 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.7.7-10
|
|
|
5b09cbd |
- enable 64bit build
|
|
|
5b09cbd |
|
|
|
a124bb1 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.7-9
|
|
|
a124bb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
a124bb1 |
|
|
|
5e57f8a |
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.7.7-8
|
|
|
5e57f8a |
- Rebuild against the mingw-w64 toolchain
|
|
|
5e57f8a |
|
|
|
fdffab9 |
* Tue Jan 31 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.7.7-7
|
|
|
fdffab9 |
- Moved the antlr-config script from %%{_exec_prefix}/%%{_mingw32_target}/bin
|
|
|
fdffab9 |
to %%{_mingw32_bindir}
|
|
|
fdffab9 |
- Dropped the dependency extraction magic as it's done automatically by RPM 4.9
|
|
|
fdffab9 |
- Dropped the %%clean section and %%defattr tags
|
|
|
fdffab9 |
|
|
|
5332be3 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.7-6
|
|
|
5332be3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
5332be3 |
|
|
|
cb0c379 |
* Mon May 23 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.7.7-5
|
|
|
cb0c379 |
- transition to new package naming scheme
|
|
|
cb0c379 |
|
|
|
f6f9c2c |
* Sun May 1 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.7.7-4
|
|
|
f6f9c2c |
- remove unnecessary cruft reported by Kalev Lember
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
* Mon Feb 21 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.7.7-3
|
|
|
f6f9c2c |
- build dynamic as well as static library
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
* Mon Feb 21 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.7.7-2
|
|
|
f6f9c2c |
- fix antlr-config --cxxflags
|
|
|
f6f9c2c |
- workaround for the libtool "cannot link static library to DLL" problem
|
|
|
f6f9c2c |
|
|
|
f6f9c2c |
* Sat Feb 19 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.7.7-1
|
|
|
f6f9c2c |
- Initial Package (based on the native package)
|