bd9543f
Name:           mingw-crossreport
d924cda
Version:        201406
c819625
Release:        10%{?dist}
b8209f4
Summary:        Analysis tool to help cross-compilation to Windows
b8209f4
b8209f4
License:        GPLv2+
b8209f4
URL:            http://fedoraproject.org/wiki/MinGW
b8209f4
Source0:        crossreport.pl
b8209f4
Source1:        README
b8209f4
Source2:        COPYING
111515a
Source3:        crossreport.db.xz
f24ad4f
Source4:        update-crossreport-db.pl
b8209f4
b8209f4
BuildArch:      noarch
b8209f4
2cf163e
BuildRequires:  perl-interpreter
64ca72a
BuildRequires:  perl-generators
abb7563
%if 0%{?fedora} >= 19
abb7563
BuildRequires:  perl-podlators
abb7563
%endif
b8209f4
111515a
BuildRequires:  xz
111515a
6419176
# For nm and c++filt.
6419176
Requires:       binutils
6419176
b8209f4
b8209f4
%description
b8209f4
CrossReport is a tool to help you analyze the APIs used by a compiled
b8209f4
Linux program, in order to work out the effort required to
b8209f4
cross-compile that program for Windows, using the Fedora MinGW
b8209f4
cross-compiler.
b8209f4
b8209f4
The simplest way to use it is to point it at an existing Linux binary,
b8209f4
and then read the generated report.
b8209f4
b8209f4
What it does in more detail: It looks at the libraries and API calls
b8209f4
used by the Linux binary, and compares them to the libraries and API
b8209f4
calls that we currently support under the Fedora MinGW cross-compiler.
b8209f4
It then works out what is missing, and produces a report suggesting
b8209f4
the amount of work that needs to be done to port the program.  For
b8209f4
example, whether whole libraries need to be ported first, and/or how
b8209f4
to substitute individual calls to work on Windows.
b8209f4
b8209f4
bd9543f
%package -n mingw32-crossreport
bd9543f
Summary:        Analysis tool to help cross-compilation to Windows
bd9543f
bd9543f
%description -n mingw32-crossreport
bd9543f
CrossReport is a tool to help you analyze the APIs used by a compiled
bd9543f
Linux program, in order to work out the effort required to
bd9543f
cross-compile that program for Windows, using the Fedora MinGW
bd9543f
cross-compiler.
bd9543f
bd9543f
The simplest way to use it is to point it at an existing Linux binary,
bd9543f
and then read the generated report.
bd9543f
bd9543f
What it does in more detail: It looks at the libraries and API calls
bd9543f
used by the Linux binary, and compares them to the libraries and API
bd9543f
calls that we currently support under the Fedora MinGW cross-compiler.
bd9543f
It then works out what is missing, and produces a report suggesting
bd9543f
the amount of work that needs to be done to port the program.  For
bd9543f
example, whether whole libraries need to be ported first, and/or how
bd9543f
to substitute individual calls to work on Windows.
bd9543f
bd9543f
b8209f4
%prep
b8209f4
# empty
b8209f4
b8209f4
b8209f4
%build
b8209f4
# empty
b8209f4
b8209f4
b8209f4
%install
b8209f4
mkdir -p $RPM_BUILD_ROOT%{_bindir}
b8209f4
install -m 0755 %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/mingw32-crossreport
b8209f4
b8209f4
# Install the database.
b8209f4
mkdir -p $RPM_BUILD_ROOT%{_datadir}/crossreport
111515a
xzcat %{SOURCE3} > $RPM_BUILD_ROOT%{_datadir}/crossreport/crossreport.db
111515a
chmod 0644 $RPM_BUILD_ROOT%{_datadir}/crossreport/crossreport.db
b8209f4
b8209f4
# Install documentation (manually).
ddf261e
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
ddf261e
install -m 0644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_docdir}/%{name}
b8209f4
b8209f4
# Build the manpage from the source.
b8209f4
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
b8209f4
pod2man -c "CrossReport" -r "%{name}-%{version}" %{SOURCE0} \
b8209f4
  > $RPM_BUILD_ROOT%{_mandir}/man1/mingw32-crossreport.1
b8209f4
b8209f4
bd9543f
%files -n mingw32-crossreport
ddf261e
%doc %{_docdir}/%{name}/COPYING
ddf261e
%doc %{_docdir}/%{name}/README
b8209f4
%{_bindir}/mingw32-crossreport
b8209f4
%{_mandir}/man1/mingw32-crossreport.1*
b8209f4
%{_datadir}/crossreport/
b8209f4
b8209f4
b8209f4
%changelog
c819625
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 201406-10
c819625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c819625
1d177a5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 201406-9
1d177a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1d177a5
151ad8d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 201406-8
151ad8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
151ad8d
1866efb
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 201406-7
1866efb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1866efb
47d0b2a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 201406-6
47d0b2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
47d0b2a
0682ac6
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 201406-5
0682ac6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0682ac6
fb7cf98
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 201406-4
fb7cf98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fb7cf98
481cfe3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 201406-3
481cfe3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
481cfe3
293a2d5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 201406-2
293a2d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
293a2d5
d924cda
* Wed Jun 11 2014 Richard W.M. Jones <rjones@redhat.com> - 201406-1
d924cda
- Update the database against packages in Fedora 20.
d924cda
59ab5d4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 201308-2
59ab5d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
59ab5d4
111515a
* Tue Aug  6 2013 Richard W.M. Jones <rjones@redhat.com> - 201308-1
111515a
- Fix update-crossreport-db.pl so it ignores 'R' (read-only data) symbols.
111515a
- Update the database against all mingw32-* packages in Fedora 19.
111515a
- xz-compress the database so it doesn't take up so much space.
111515a
- Change the versioning system so it includes the month that the
111515a
  database was last updated.  This is more informative.
111515a
ddf261e
* Tue Aug  6 2013 Richard W.M. Jones <rjones@redhat.com> - 8-8
ddf261e
- Unversioned docdir on F20 (RHBZ#993866).
ddf261e
5629b46
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-7
5629b46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5629b46
aeaf9b7
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 8-6
aeaf9b7
- Perl 5.18 rebuild
aeaf9b7
abb7563
* Thu Apr  4 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 8-5
abb7563
- Added BR: perl-podlators for Fedora 19 and above
abb7563
0637ce2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-4
0637ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0637ce2
4026173
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-3
4026173
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4026173
bd9543f
* Wed Mar 07 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 8-2
bd9543f
- Renamed the source package to mingw-crossreport (RHBZ #800854)
bd9543f
f278fdb
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 8-1
f278fdb
- Made the package compatible with the mingw-w64 toolchain
f278fdb
- Dropped unneeded RPM tags
f278fdb
1f9b1d3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-3
1f9b1d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1f9b1d3
344e2b9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-2
344e2b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
344e2b9
64149e5
* Fri Jul 30 2010 Richard W.M. Jones <rjones@redhat.com> - 7-1
64149e5
- Update database.
64149e5
164fec4
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-3
164fec4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
164fec4
20cb730
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-2
20cb730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
20cb730
c6beb09
* Fri Feb 13 2009 Richard W.M. Jones <rjones@redhat.com> - 6-1
c6beb09
- Change to use Berkeley DB for storage.
c6beb09
6419176
* Fri Feb 13 2009 Richard W.M. Jones <rjones@redhat.com> - 5-1
6419176
- Requires binutils, for nm and c++filt (thanks Richard Hughes).
6419176
f24ad4f
* Fri Feb 13 2009 Richard W.M. Jones <rjones@redhat.com> - 4-1
f24ad4f
- Include the update script.
f24ad4f
b8209f4
* Wed Feb 11 2009 Richard W.M. Jones <rjones@redhat.com> - 3-1
b8209f4
- Initial RPM release.