mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Remove (Moved to git.rtems.org/data/git/rtems-crossrpms.git).
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
Chris Johns <chrisj@rtems.org>
|
|
||||||
- Testing.
|
|
||||||
- Bugfixes.
|
|
||||||
- mingw32.
|
|
||||||
|
|
||||||
Joel Sherrill <joel@oarcorp.com>
|
|
||||||
- Testing.
|
|
||||||
@@ -1,340 +0,0 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
Version 2, June 1991
|
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
|
||||||
License is intended to guarantee your freedom to share and change free
|
|
||||||
software--to make sure the software is free for all its users. This
|
|
||||||
General Public License applies to most of the Free Software
|
|
||||||
Foundation's software and to any other program whose authors commit to
|
|
||||||
using it. (Some other Free Software Foundation software is covered by
|
|
||||||
the GNU Library General Public License instead.) You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
this service if you wish), that you receive source code or can get it
|
|
||||||
if you want it, that you can change the software or use pieces of it
|
|
||||||
in new free programs; and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to make restrictions that forbid
|
|
||||||
anyone to deny you these rights or to ask you to surrender the rights.
|
|
||||||
These restrictions translate to certain responsibilities for you if you
|
|
||||||
distribute copies of the software, or if you modify it.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must give the recipients all the rights that
|
|
||||||
you have. You must make sure that they, too, receive or can get the
|
|
||||||
source code. And you must show them these terms so they know their
|
|
||||||
rights.
|
|
||||||
|
|
||||||
We protect your rights with two steps: (1) copyright the software, and
|
|
||||||
(2) offer you this license which gives you legal permission to copy,
|
|
||||||
distribute and/or modify the software.
|
|
||||||
|
|
||||||
Also, for each author's protection and ours, we want to make certain
|
|
||||||
that everyone understands that there is no warranty for this free
|
|
||||||
software. If the software is modified by someone else and passed on, we
|
|
||||||
want its recipients to know that what they have is not the original, so
|
|
||||||
that any problems introduced by others will not reflect on the original
|
|
||||||
authors' reputations.
|
|
||||||
|
|
||||||
Finally, any free program is threatened constantly by software
|
|
||||||
patents. We wish to avoid the danger that redistributors of a free
|
|
||||||
program will individually obtain patent licenses, in effect making the
|
|
||||||
program proprietary. To prevent this, we have made it clear that any
|
|
||||||
patent must be licensed for everyone's free use or not licensed at all.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
0. This License applies to any program or other work which contains
|
|
||||||
a notice placed by the copyright holder saying it may be distributed
|
|
||||||
under the terms of this General Public License. The "Program", below,
|
|
||||||
refers to any such program or work, and a "work based on the Program"
|
|
||||||
means either the Program or any derivative work under copyright law:
|
|
||||||
that is to say, a work containing the Program or a portion of it,
|
|
||||||
either verbatim or with modifications and/or translated into another
|
|
||||||
language. (Hereinafter, translation is included without limitation in
|
|
||||||
the term "modification".) Each licensee is addressed as "you".
|
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
|
||||||
covered by this License; they are outside its scope. The act of
|
|
||||||
running the Program is not restricted, and the output from the Program
|
|
||||||
is covered only if its contents constitute a work based on the
|
|
||||||
Program (independent of having been made by running the Program).
|
|
||||||
Whether that is true depends on what the Program does.
|
|
||||||
|
|
||||||
1. You may copy and distribute verbatim copies of the Program's
|
|
||||||
source code as you receive it, in any medium, provided that you
|
|
||||||
conspicuously and appropriately publish on each copy an appropriate
|
|
||||||
copyright notice and disclaimer of warranty; keep intact all the
|
|
||||||
notices that refer to this License and to the absence of any warranty;
|
|
||||||
and give any other recipients of the Program a copy of this License
|
|
||||||
along with the Program.
|
|
||||||
|
|
||||||
You may charge a fee for the physical act of transferring a copy, and
|
|
||||||
you may at your option offer warranty protection in exchange for a fee.
|
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Program or any portion
|
|
||||||
of it, thus forming a work based on the Program, and copy and
|
|
||||||
distribute such modifications or work under the terms of Section 1
|
|
||||||
above, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) You must cause the modified files to carry prominent notices
|
|
||||||
stating that you changed the files and the date of any change.
|
|
||||||
|
|
||||||
b) You must cause any work that you distribute or publish, that in
|
|
||||||
whole or in part contains or is derived from the Program or any
|
|
||||||
part thereof, to be licensed as a whole at no charge to all third
|
|
||||||
parties under the terms of this License.
|
|
||||||
|
|
||||||
c) If the modified program normally reads commands interactively
|
|
||||||
when run, you must cause it, when started running for such
|
|
||||||
interactive use in the most ordinary way, to print or display an
|
|
||||||
announcement including an appropriate copyright notice and a
|
|
||||||
notice that there is no warranty (or else, saying that you provide
|
|
||||||
a warranty) and that users may redistribute the program under
|
|
||||||
these conditions, and telling the user how to view a copy of this
|
|
||||||
License. (Exception: if the Program itself is interactive but
|
|
||||||
does not normally print such an announcement, your work based on
|
|
||||||
the Program is not required to print an announcement.)
|
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
|
||||||
identifiable sections of that work are not derived from the Program,
|
|
||||||
and can be reasonably considered independent and separate works in
|
|
||||||
themselves, then this License, and its terms, do not apply to those
|
|
||||||
sections when you distribute them as separate works. But when you
|
|
||||||
distribute the same sections as part of a whole which is a work based
|
|
||||||
on the Program, the distribution of the whole must be on the terms of
|
|
||||||
this License, whose permissions for other licensees extend to the
|
|
||||||
entire whole, and thus to each and every part regardless of who wrote it.
|
|
||||||
|
|
||||||
Thus, it is not the intent of this section to claim rights or contest
|
|
||||||
your rights to work written entirely by you; rather, the intent is to
|
|
||||||
exercise the right to control the distribution of derivative or
|
|
||||||
collective works based on the Program.
|
|
||||||
|
|
||||||
In addition, mere aggregation of another work not based on the Program
|
|
||||||
with the Program (or with a work based on the Program) on a volume of
|
|
||||||
a storage or distribution medium does not bring the other work under
|
|
||||||
the scope of this License.
|
|
||||||
|
|
||||||
3. You may copy and distribute the Program (or a work based on it,
|
|
||||||
under Section 2) in object code or executable form under the terms of
|
|
||||||
Sections 1 and 2 above provided that you also do one of the following:
|
|
||||||
|
|
||||||
a) Accompany it with the complete corresponding machine-readable
|
|
||||||
source code, which must be distributed under the terms of Sections
|
|
||||||
1 and 2 above on a medium customarily used for software interchange; or,
|
|
||||||
|
|
||||||
b) Accompany it with a written offer, valid for at least three
|
|
||||||
years, to give any third party, for a charge no more than your
|
|
||||||
cost of physically performing source distribution, a complete
|
|
||||||
machine-readable copy of the corresponding source code, to be
|
|
||||||
distributed under the terms of Sections 1 and 2 above on a medium
|
|
||||||
customarily used for software interchange; or,
|
|
||||||
|
|
||||||
c) Accompany it with the information you received as to the offer
|
|
||||||
to distribute corresponding source code. (This alternative is
|
|
||||||
allowed only for noncommercial distribution and only if you
|
|
||||||
received the program in object code or executable form with such
|
|
||||||
an offer, in accord with Subsection b above.)
|
|
||||||
|
|
||||||
The source code for a work means the preferred form of the work for
|
|
||||||
making modifications to it. For an executable work, complete source
|
|
||||||
code means all the source code for all modules it contains, plus any
|
|
||||||
associated interface definition files, plus the scripts used to
|
|
||||||
control compilation and installation of the executable. However, as a
|
|
||||||
special exception, the source code distributed need not include
|
|
||||||
anything that is normally distributed (in either source or binary
|
|
||||||
form) with the major components (compiler, kernel, and so on) of the
|
|
||||||
operating system on which the executable runs, unless that component
|
|
||||||
itself accompanies the executable.
|
|
||||||
|
|
||||||
If distribution of executable or object code is made by offering
|
|
||||||
access to copy from a designated place, then offering equivalent
|
|
||||||
access to copy the source code from the same place counts as
|
|
||||||
distribution of the source code, even though third parties are not
|
|
||||||
compelled to copy the source along with the object code.
|
|
||||||
|
|
||||||
4. You may not copy, modify, sublicense, or distribute the Program
|
|
||||||
except as expressly provided under this License. Any attempt
|
|
||||||
otherwise to copy, modify, sublicense or distribute the Program is
|
|
||||||
void, and will automatically terminate your rights under this License.
|
|
||||||
However, parties who have received copies, or rights, from you under
|
|
||||||
this License will not have their licenses terminated so long as such
|
|
||||||
parties remain in full compliance.
|
|
||||||
|
|
||||||
5. You are not required to accept this License, since you have not
|
|
||||||
signed it. However, nothing else grants you permission to modify or
|
|
||||||
distribute the Program or its derivative works. These actions are
|
|
||||||
prohibited by law if you do not accept this License. Therefore, by
|
|
||||||
modifying or distributing the Program (or any work based on the
|
|
||||||
Program), you indicate your acceptance of this License to do so, and
|
|
||||||
all its terms and conditions for copying, distributing or modifying
|
|
||||||
the Program or works based on it.
|
|
||||||
|
|
||||||
6. Each time you redistribute the Program (or any work based on the
|
|
||||||
Program), the recipient automatically receives a license from the
|
|
||||||
original licensor to copy, distribute or modify the Program subject to
|
|
||||||
these terms and conditions. You may not impose any further
|
|
||||||
restrictions on the recipients' exercise of the rights granted herein.
|
|
||||||
You are not responsible for enforcing compliance by third parties to
|
|
||||||
this License.
|
|
||||||
|
|
||||||
7. If, as a consequence of a court judgment or allegation of patent
|
|
||||||
infringement or for any other reason (not limited to patent issues),
|
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot
|
|
||||||
distribute so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you
|
|
||||||
may not distribute the Program at all. For example, if a patent
|
|
||||||
license would not permit royalty-free redistribution of the Program by
|
|
||||||
all those who receive copies directly or indirectly through you, then
|
|
||||||
the only way you could satisfy both it and this License would be to
|
|
||||||
refrain entirely from distribution of the Program.
|
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under
|
|
||||||
any particular circumstance, the balance of the section is intended to
|
|
||||||
apply and the section as a whole is intended to apply in other
|
|
||||||
circumstances.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
|
||||||
patents or other property right claims or to contest validity of any
|
|
||||||
such claims; this section has the sole purpose of protecting the
|
|
||||||
integrity of the free software distribution system, which is
|
|
||||||
implemented by public license practices. Many people have made
|
|
||||||
generous contributions to the wide range of software distributed
|
|
||||||
through that system in reliance on consistent application of that
|
|
||||||
system; it is up to the author/donor to decide if he or she is willing
|
|
||||||
to distribute software through any other system and a licensee cannot
|
|
||||||
impose that choice.
|
|
||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
|
||||||
be a consequence of the rest of this License.
|
|
||||||
|
|
||||||
8. If the distribution and/or use of the Program is restricted in
|
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
|
||||||
original copyright holder who places the Program under this License
|
|
||||||
may add an explicit geographical distribution limitation excluding
|
|
||||||
those countries, so that distribution is permitted only in or among
|
|
||||||
countries not thus excluded. In such case, this License incorporates
|
|
||||||
the limitation as if written in the body of this License.
|
|
||||||
|
|
||||||
9. The Free Software Foundation may publish revised and/or new versions
|
|
||||||
of the General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program
|
|
||||||
specifies a version number of this License which applies to it and "any
|
|
||||||
later version", you have the option of following the terms and conditions
|
|
||||||
either of that version or of any later version published by the Free
|
|
||||||
Software Foundation. If the Program does not specify a version number of
|
|
||||||
this License, you may choose any version ever published by the Free Software
|
|
||||||
Foundation.
|
|
||||||
|
|
||||||
10. If you wish to incorporate parts of the Program into other free
|
|
||||||
programs whose distribution conditions are different, write to the author
|
|
||||||
to ask for permission. For software which is copyrighted by the Free
|
|
||||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
||||||
make exceptions for this. Our decision will be guided by the two goals
|
|
||||||
of preserving the free status of all derivatives of our free software and
|
|
||||||
of promoting the sharing and reuse of software generally.
|
|
||||||
|
|
||||||
NO WARRANTY
|
|
||||||
|
|
||||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
||||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
||||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
||||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
||||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
||||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
||||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
||||||
REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
||||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
||||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
||||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
||||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
||||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
convey the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program is interactive, make it output a short notice like this
|
|
||||||
when it starts in an interactive mode:
|
|
||||||
|
|
||||||
Gnomovision version 69, Copyright (C) year name of author
|
|
||||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, the commands you use may
|
|
||||||
be called something other than `show w' and `show c'; they could even be
|
|
||||||
mouse-clicks or menu items--whatever suits your program.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or your
|
|
||||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
||||||
necessary. Here is a sample; alter the names:
|
|
||||||
|
|
||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
|
||||||
|
|
||||||
<signature of Ty Coon>, 1 April 1989
|
|
||||||
Ty Coon, President of Vice
|
|
||||||
|
|
||||||
This General Public License does not permit incorporating your program into
|
|
||||||
proprietary programs. If your program is a subroutine library, you may
|
|
||||||
consider it more useful to permit linking proprietary applications with the
|
|
||||||
library. If this is what you want to do, use the GNU Library General
|
|
||||||
Public License instead of this License.
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
|
||||||
|
|
||||||
2008-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
|
|
||||||
|
|
||||||
* rtems4.10/sparc/Makefile.am: Bump RTEMS CPU Kit version.
|
|
||||||
* patches/gcc-ada-4.3.2-rtems4.10-20080910.diff: New file.
|
|
||||||
* patches/gcc-ada-4.2.0-rtems4.8-20070705.diff: Removed.
|
|
||||||
|
|
||||||
2007-12-17 Chris Johns <chrisj@rtems.org>
|
|
||||||
|
|
||||||
* rtems4.8/.cvsignore, rtems4.8/arm/.cvsignore,
|
|
||||||
rtems4.8/avr/.cvsignore, rtems4.8/bfin/.cvsignore,
|
|
||||||
rtems4.8/h8300/.cvsignore, rtems4.8/i386/.cvsignore,
|
|
||||||
rtems4.8/m68k/.cvsignore, rtems4.8/mips/.cvsignore,
|
|
||||||
rtems4.8/mipstx39/.cvsignore, rtems4.8/powerpc/.cvsignore,
|
|
||||||
rtems4.8/sh/.cvsignore, rtems4.8/sparc/.cvsignore,
|
|
||||||
rtems4.8/tic4x/.cvsignore: New.
|
|
||||||
|
|
||||||
2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* configure.ac: New BUG-REPORT address.
|
|
||||||
|
|
||||||
2006-11-19 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* autotools/Makefile.am, autotools/autoconf.add:
|
|
||||||
Upgrade to autoconf-2.61.
|
|
||||||
|
|
||||||
2006-11-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* patches/gcc-core-4.2-20061114-rtems4.8-20061115.diff: New.
|
|
||||||
* patches/newlib-1.14.0-bfinrtems-20060810a.diff: Remove (Obsolete).
|
|
||||||
* patches/gcc-4.1.1-bfinrtems-20060810a.diff: Remove (Obsolete).
|
|
||||||
* rtems-4.8/bfin/Makefile.am, rtems-4.8/bin/gcc-sources.add:
|
|
||||||
GCC_REL=4. Upgrade to gcc-core-4.2-20061114-rtems4.8-20061115.diff.
|
|
||||||
|
|
||||||
2006-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* configure.ac, Makefile.am: Remove rtems4.7.
|
|
||||||
* rtems4.7: Remove (Development now in rtems-4-7-branch only).
|
|
||||||
|
|
||||||
2006-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* patches/newlib-1.14.0-rtems4.8-20061027.diff: New.
|
|
||||||
* patches/newlib-1.14.0-rtems-20061026.diff: Remove (broken).
|
|
||||||
|
|
||||||
2006-10-26 Joel Sherrill <joel@OARcorp.com>
|
|
||||||
|
|
||||||
* patches/newlib-1.14.0-rtems-20061026.diff: New file.
|
|
||||||
|
|
||||||
2006-10-22 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* Makefile.am, configure.ac: Add rtems-4.8.
|
|
||||||
|
|
||||||
2006-10-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* configure.ac: Set RTEMS_API to 4.8.
|
|
||||||
|
|
||||||
2006-10-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* autotools/Makefile.am, autotools/automake.add: Update to
|
|
||||||
automake-1.10.
|
|
||||||
|
|
||||||
2006-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* rtems4.7/arm/gcc-sources.add, rtems4.7/h8300/gcc-sources.add,
|
|
||||||
rtems4.7/i386/gcc-sources.add, rtems4.7/m68k/gcc-sources.add,
|
|
||||||
rtems4.7/mips/gcc-sources.add, rtems4.7/powerpc/gcc-sources.add
|
|
||||||
rtems4.7/sh/gcc-sources.add, rtems4.7/sparc/gcc-sources.add
|
|
||||||
rtems4.7/tic4x/gcc-sources.add: Add gcc-4.0.3.
|
|
||||||
|
|
||||||
2006-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
* gcc/build.add: Revert --disable-libssp etc. hacks.
|
|
||||||
|
|
||||||
2006-08-22 Chris Johns <chrisj@rtems.org>
|
|
||||||
|
|
||||||
* rtems4.7/avr/gcc-sources.add: Add the 4.0.3 patch.
|
|
||||||
* patches/gcc-core-4.0.3-rtems-20060822.diff:
|
|
||||||
The .exe for the versioned execuable for MinGW.
|
|
||||||
|
|
||||||
2006-08-21 Joel Sherrill <joel@OARcorp.com>
|
|
||||||
|
|
||||||
* rtems4.7/h8300/binutils-sources.add,
|
|
||||||
rtems4.7/m68k/binutils-sources.add: Add h8300 _tinydata patch and
|
|
||||||
bump patch for targets needing it.
|
|
||||||
* patches/binutils-2.17-rtems-20060815.diff: New file.
|
|
||||||
|
|
||||||
2006-08-11 Joel Sherrill <joel@oarcorp.com>
|
|
||||||
|
|
||||||
* configure.ac, gcc/build.add, gcc/target-gcc.add: Add bfin target
|
|
||||||
prior to merge. Add ability to disable libssp and libstdcxx-pch which
|
|
||||||
apparently are required to build the Blackfin port.
|
|
||||||
* patches/binutils-2.17-rtems-bfin-20060810.diff,
|
|
||||||
patches/gcc-4.1.1-bfinrtems-20060810a.diff,
|
|
||||||
patches/gdb-6.5-bfinrtems-20060810a.diff,
|
|
||||||
patches/newlib-1.14.0-bfinrtems-20060810a.diff,
|
|
||||||
rtems4.7/bfin/.cvsignore, rtems4.7/bfin/Makefile.am,
|
|
||||||
rtems4.7/bfin/binutils-sources.add, rtems4.7/bfin/gcc-sources.add,
|
|
||||||
rtems4.7/bfin/gdb-sources.add: New files.
|
|
||||||
|
|
||||||
2006-08-09 Joel Sherrill <joel@OARcorp.com>
|
|
||||||
|
|
||||||
* .cvsignore: Add INSTALL.
|
|
||||||
|
|
||||||
2006-07-19 Chris Johns <chrisj@rtems.org>
|
|
||||||
|
|
||||||
* patches/gcc-core-4.1.1-rtems-20060720.diff:
|
|
||||||
Added patch to fix GCC bug PR28400.
|
|
||||||
|
|
||||||
2006-07-13 Joel Sherrill <joel@oarcorp.com>
|
|
||||||
|
|
||||||
* configure.ac, rtems4.7/Makefile.am, rtems4.7/arm/Makefile.am,
|
|
||||||
rtems4.7/arm/gdb-sources.add, rtems4.7/avr/Makefile.am,
|
|
||||||
rtems4.7/avr/gdb-sources.add, rtems4.7/h8300/Makefile.am,
|
|
||||||
rtems4.7/h8300/gdb-sources.add, rtems4.7/i386/Makefile.am,
|
|
||||||
rtems4.7/i386/gdb-sources.add, rtems4.7/m68k/Makefile.am,
|
|
||||||
rtems4.7/m68k/gdb-sources.add, rtems4.7/mips/Makefile.am,
|
|
||||||
rtems4.7/mips/gdb-sources.add, rtems4.7/powerpc/Makefile.am,
|
|
||||||
rtems4.7/powerpc/gdb-sources.add, rtems4.7/sh/Makefile.am,
|
|
||||||
rtems4.7/sh/gdb-sources.add, rtems4.7/sparc/Makefile.am,
|
|
||||||
rtems4.7/sparc/gdb-sources.add, rtems4.7/tic4x/gdb-sources.add:
|
|
||||||
Updated to gdb 6.5
|
|
||||||
* patches/gdb-6.5-rtems-20060713.diff, rtems4.7/mipstx39/.cvsignore,
|
|
||||||
rtems4.7/mipstx39/Makefile.am, rtems4.7/mipstx39/gdb-sources.add: New files.
|
|
||||||
|
|
||||||
2006-07-12 Joel Sherrill <joel@oarcorp.com>
|
|
||||||
|
|
||||||
* rtems4.7/arm/gdb-sources.add, rtems4.7/avr/gdb-sources.add,
|
|
||||||
rtems4.7/h8300/gdb-sources.add, rtems4.7/i386/gdb-sources.add,
|
|
||||||
rtems4.7/m68k/gdb-sources.add, rtems4.7/mips/gdb-sources.add,
|
|
||||||
rtems4.7/powerpc/gdb-sources.add, rtems4.7/sh/gdb-sources.add,
|
|
||||||
rtems4.7/sparc/gdb-sources.add, rtems4.7/tic4x/gdb-sources.add:
|
|
||||||
Update gdb to use newer patch. This lets sparc build simulator and
|
|
||||||
mips build at all.
|
|
||||||
* patches/gdb-6.4-rtems-20060712.diff: New file.
|
|
||||||
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
##
|
|
||||||
## $Id$
|
|
||||||
##
|
|
||||||
|
|
||||||
EXTRA_DIST =
|
|
||||||
|
|
||||||
SUBDIRS = @HOST_SUBDIRS@ @TARGET_SUBDIRS@
|
|
||||||
|
|
||||||
DIST_SUBDIRS = cygwin
|
|
||||||
DIST_SUBDIRS += freebsd6.4
|
|
||||||
DIST_SUBDIRS += freebsd7.3
|
|
||||||
DIST_SUBDIRS += freebsd8.2
|
|
||||||
DIST_SUBDIRS += mingw32
|
|
||||||
DIST_SUBDIRS += netbsd5.1
|
|
||||||
DIST_SUBDIRS += solaris2.7
|
|
||||||
DIST_SUBDIRS += rtems4.11
|
|
||||||
|
|
||||||
DIST_SUBDIRS += autotools
|
|
||||||
|
|
||||||
EXTRA_DIST += specstrip
|
|
||||||
EXTRA_DIST += $(srcdir)/patches/*.diff
|
|
||||||
|
|
||||||
install-patches:
|
|
||||||
@rpmsourcedir=`rpm --eval '%_sourcedir'`; \
|
|
||||||
for f in $(srcdir)/patches/*.diff; do \
|
|
||||||
echo "$(INSTALL_DATA) $$f $$rpmsourcedir"; \
|
|
||||||
$(INSTALL_DATA) $$f $$rpmsourcedir; \
|
|
||||||
done
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
2006-07-24 Add provisory/preliminary autotools support.
|
|
||||||
|
|
||||||
2006-07-23 Rename "*-base-*" packages into <tool>-common.
|
|
||||||
Rename GCC's "*-<lang>" packages into "*-gcc-<lang>".
|
|
||||||
Many small directory ownership fixes.
|
|
||||||
Build all GCC packages with --enable-threads.
|
|
||||||
|
|
||||||
2006-07-10 Completely reworked and restructurized.
|
|
||||||
|
|
||||||
2006-03-10 Add preliminary rtems-gdb specs.
|
|
||||||
(Immature, incomplete, needs further testing).
|
|
||||||
|
|
||||||
2006-03-09 Add fortran and objc to GCC's default languages for freebsd5.2,
|
|
||||||
freebsd6.0 and solaris.
|
|
||||||
|
|
||||||
2006-03-02 Pass --enable-sysroot to non-rtems binutils (Required by
|
|
||||||
GCC-4.1 sys-root'ed toolchains).
|
|
||||||
|
|
||||||
2006-02-25 Put this package under the GPL.
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
|
|
||||||
Copyright (C) 2006 Ralf Corsépius, Ulm, Germany <ralf.corsepius@rtems.org>
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
* Improve autotools support:
|
|
||||||
- Problem: The autotools packages conflict with OS provided packages
|
|
||||||
for --prefix=/usr.
|
|
||||||
|
|
||||||
* Improve info files treatment:
|
|
||||||
- Problem: Infos are not target canonicalized. Therefore, installing them to
|
|
||||||
/usr or /usr/local is likely to conflict with vendor provided infos rsp.
|
|
||||||
locally installed packages. Additionally, installing to /usr/local is
|
|
||||||
completely out of our control.
|
|
||||||
- Current approach: Install infos/provide base packages only for
|
|
||||||
$prefix ==/opt/rtems* or if user is forcing them with --enable-infos
|
|
||||||
- Consider to canonicalize the infos (How?). Probably better be done by
|
|
||||||
upstream.
|
|
||||||
|
|
||||||
* Ada:
|
|
||||||
- Consider to remove it (Lack of multilibs renders it unusable for rtems
|
|
||||||
toolchains).
|
|
||||||
- Consider to add support for non-multilib'ed toolchains.
|
|
||||||
|
|
||||||
* gcc/build.add: Use --languages=fortran instead of f95 for gcc >= 4.1
|
|
||||||
(--languages=f95 is deprecated in gcc >= 4.1)
|
|
||||||
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# RTEMS_CANONICAL_SPLIT(THING)
|
|
||||||
# --------------------------
|
|
||||||
# Generate the variables THING, THING_{alias cpu vendor os}.
|
|
||||||
m4_define([RTEMS_CANONICAL_SPLIT],
|
|
||||||
[case $ac_cv_$1 in
|
|
||||||
*-*-*) ;;
|
|
||||||
*) AC_MSG_ERROR([invalid value of canonical $1]);;
|
|
||||||
esac
|
|
||||||
ac_save_IFS=$IFS; IFS='-'
|
|
||||||
set x $ac_cv_$1
|
|
||||||
shift
|
|
||||||
$1_cpu=$[1]
|
|
||||||
$1_vendor=$[2]
|
|
||||||
shift; shift
|
|
||||||
[# Remember, the first character of IFS is used to create $]*,
|
|
||||||
# except with old shells:
|
|
||||||
$1_os=$[*]
|
|
||||||
IFS=$ac_save_IFS
|
|
||||||
case $$1_os in *\ *) $1_os=`echo "$$1_os" | sed 's/ /-/g'`;; esac
|
|
||||||
])# RTEMS_CANONICAL_SPLIT
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
##
|
|
||||||
## $Id$
|
|
||||||
##
|
|
||||||
|
|
||||||
include $(top_srcdir)/mkspec.am
|
|
||||||
|
|
||||||
AUTOCONF_VERS = 2.68
|
|
||||||
AUTOCONF_RPMREL = 4
|
|
||||||
include ./autoconf.am
|
|
||||||
|
|
||||||
AUTOMAKE_VERS = 1.11.1b
|
|
||||||
AUTOMAKE_RPMREL = 1
|
|
||||||
include ./automake.am
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{srcvers}.tar.%{?el5:bz2}%{!?el5:xz}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
%define srcvers @AUTOCONF_VERS@
|
|
||||||
%define rpmvers %{expand:%(echo "@AUTOCONF_VERS@" | tr - _ )}
|
|
||||||
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
%define name @rpmprefix@autoconf
|
|
||||||
%else
|
|
||||||
%define name autoconf
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# --with alltests enable all tests
|
|
||||||
%bcond_with alltests
|
|
||||||
|
|
||||||
Name: %{name}
|
|
||||||
License: GPL
|
|
||||||
URL: http://www.gnu.org/software/autoconf
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{rpmvers}
|
|
||||||
Release: @AUTOCONF_RPMREL@
|
|
||||||
Summary: Tool for automatically generating GNU style Makefile.in's
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: perl m4 gawk emacs
|
|
||||||
%if "%{version}" >= "2.62"
|
|
||||||
BuildRequires: m4 >= 1.4.5
|
|
||||||
%endif
|
|
||||||
Requires: m4 gawk
|
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(preun): /sbin/install-info
|
|
||||||
|
|
||||||
@SOURCES@
|
|
||||||
|
|
||||||
# remove bogus Autoconf perl dependencies and provides
|
|
||||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Autom4te::
|
|
||||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Autom4te::
|
|
||||||
|
|
||||||
%description
|
|
||||||
GNU's Autoconf is a tool for configuring source code and Makefiles.
|
|
||||||
Using Autoconf, programmers can create portable and configurable
|
|
||||||
packages, since the person building the package is allowed to
|
|
||||||
specify various configuration options.
|
|
||||||
You should install Autoconf if you are developing software and you'd
|
|
||||||
like to use it to create shell scripts which will configure your
|
|
||||||
source code packages.
|
|
||||||
Note that the Autoconf package is not required for the end user who
|
|
||||||
may be configuring software with an Autoconf-generated script;
|
|
||||||
Autoconf is only required for the generation of the scripts, not
|
|
||||||
their use.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n autoconf-%{srcvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
|
|
||||||
%if !%{defined fedora}
|
|
||||||
# Work around rpm inserting bogus perl-module deps
|
|
||||||
cat << \EOF > %{name}-prov
|
|
||||||
#!/bin/sh
|
|
||||||
%{__perl_provides} $* |\
|
|
||||||
sed -e '/^perl(Autom4te/d'
|
|
||||||
EOF
|
|
||||||
%global __perl_provides %{_builddir}/autoconf-%{srcvers}/%{name}-prov
|
|
||||||
chmod +x %{__perl_provides}
|
|
||||||
|
|
||||||
cat << \EOF > %{name}-requ
|
|
||||||
#!/bin/sh
|
|
||||||
%{__perl_requires} $* |\
|
|
||||||
sed -e '/^perl(Autom4te/d'
|
|
||||||
EOF
|
|
||||||
%global __perl_requires %{_builddir}/autoconf-%{srcvers}/%{name}-requ
|
|
||||||
chmod +x %{__perl_requires}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
|
||||||
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
|
||||||
--bindir=%{_bindir} --datadir=%{_datadir}
|
|
||||||
make
|
|
||||||
|
|
||||||
%check
|
|
||||||
%if "%{_build}" == "%{_host}"
|
|
||||||
%if "%{srcvers}" == "2.68"
|
|
||||||
# test 199 fails sporadically
|
|
||||||
# test 205 fails deterministically
|
|
||||||
TESTSUITEFLAGS='-198 200-204 206-'
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make check %{!?with_alltests:TESTSUITEFLAGS="${TESTSUITEFLAGS}"}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf "${RPM_BUILD_ROOT}"
|
|
||||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
||||||
|
|
||||||
# Create this directory to prevent the corresponding line
|
|
||||||
# in %%files below to fail
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp
|
|
||||||
|
|
||||||
# RTEMS's standards.info comes from binutils
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
AUTOCONF_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
AUTOCONF_SUBPACKAGES += $(top_srcdir)/autotools/autoconf.add
|
|
||||||
AUTOCONF_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
|
||||||
AUTOCONF_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
AUTOCONF_SUBPACKAGES += $(top_srcdir)/autotools/target-autoconf.add
|
|
||||||
|
|
||||||
autoconf.spec.in: $(AUTOCONF_SUBPACKAGES) Makefile.in $(srcdir)/autoconf-sources.add
|
|
||||||
cat $(AUTOCONF_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/autoconf-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "s/[@]AUTOCONF_VERS[@]/$(AUTOCONF_VERS)/" \
|
|
||||||
-e "s/[@]AUTOCONF_RPMREL[@]/$(AUTOCONF_RPMREL)%{?dist}/" > $@
|
|
||||||
CLEANFILES += autoconf.spec.in
|
|
||||||
|
|
||||||
|
|
||||||
@rpmprefix@autoconf.spec: autoconf.spec.in
|
|
||||||
$(MKSPEC) autoconf.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@autoconf.spec
|
|
||||||
noinst_DATA += @rpmprefix@autoconf.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(AUTOCONF_SUBPACKAGES)
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
|
|
||||||
Source0: ftp://alpha.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
|
|
||||||
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
%define rpmvers @AUTOMAKE_VERS@
|
|
||||||
%define srcvers @AUTOMAKE_VERS@
|
|
||||||
%define amvers 1.11
|
|
||||||
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
%define name @rpmprefix@automake
|
|
||||||
%define requirements @rpmprefix@autoconf >= 2.61
|
|
||||||
%else
|
|
||||||
%define name automake
|
|
||||||
%define requirements autoconf >= 2.61
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: %{name}
|
|
||||||
URL: http://sources.redhat.com/automake
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{rpmvers}
|
|
||||||
Release: @AUTOMAKE_RPMREL@
|
|
||||||
Summary: Tool for automatically generating GNU style Makefile.in's
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: %{requirements} perl
|
|
||||||
Requires: %{requirements}
|
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(preun):/sbin/install-info
|
|
||||||
|
|
||||||
@SOURCES@
|
|
||||||
|
|
||||||
# remove bogus Automake perl dependencies and provides
|
|
||||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Automake::
|
|
||||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Automake::
|
|
||||||
|
|
||||||
%description
|
|
||||||
Automake is a tool for automatically generating "Makefile.in"s from
|
|
||||||
files called "Makefile.am". "Makefile.am" is basically a series of
|
|
||||||
"make" macro definitions (with rules being thrown in occasionally).
|
|
||||||
The generated "Makefile.in"s are compatible to the GNU Makefile
|
|
||||||
standards.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n automake-%{srcvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
|
|
||||||
%if !%{defined fedora}
|
|
||||||
# Work around rpm inserting bogus perl-module deps
|
|
||||||
cat << \EOF > %{name}-prov
|
|
||||||
#!/bin/sh
|
|
||||||
%{__perl_provides} $* |\
|
|
||||||
sed -e '/^perl(Automake/d'
|
|
||||||
EOF
|
|
||||||
%global __perl_provides %{_builddir}/automake-%{srcvers}/%{name}-prov
|
|
||||||
chmod +x %{__perl_provides}
|
|
||||||
|
|
||||||
cat << \EOF > %{name}-requ
|
|
||||||
#!/bin/sh
|
|
||||||
%{__perl_requires} $* |\
|
|
||||||
sed -e '/^perl(Automake/d'
|
|
||||||
EOF
|
|
||||||
%global __perl_requires %{_builddir}/automake-%{srcvers}/%{name}-requ
|
|
||||||
chmod +x %{__perl_requires}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
|
||||||
PATH=%{_bindir}:$PATH
|
|
||||||
case %_host in
|
|
||||||
*-mingw32)
|
|
||||||
# MinGW ships obsolete perl-5.6.1, which doesn't support threads
|
|
||||||
echo am_cv_prog_PERL_ithreads=no > config.cache
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Don't use %%configure, it replaces config.sub/config.guess with the
|
|
||||||
# outdated versions bundled with rpm.
|
|
||||||
./configure -C --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
|
||||||
--bindir=%{_bindir} --datadir=%{_datadir} \
|
|
||||||
--docdir=%{_datadir}/automake-%{amvers}/doc
|
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf "$RPM_BUILD_ROOT"
|
|
||||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
||||||
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/aclocal
|
|
||||||
echo "/usr/share/aclocal" > $RPM_BUILD_ROOT%{_datadir}/aclocal/dirlist
|
|
||||||
%endif
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
AUTOMAKE_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/autotools/automake.add
|
|
||||||
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
|
||||||
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/autotools/target-automake.add
|
|
||||||
|
|
||||||
automake.spec.in: $(AUTOMAKE_SUBPACKAGES) Makefile.am $(srcdir)/automake-sources.add
|
|
||||||
cat $(AUTOMAKE_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/automake-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "s/[@]AUTOMAKE_VERS[@]/$(AUTOMAKE_VERS)/g" \
|
|
||||||
-e "s/[@]AUTOMAKE_RPMREL[@]/$(AUTOMAKE_RPMREL)%{?dist}/g" > $@
|
|
||||||
CLEANFILES += automake.spec.in
|
|
||||||
|
|
||||||
|
|
||||||
@rpmprefix@automake.spec: automake.spec.in
|
|
||||||
$(MKSPEC) automake.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@automake.spec
|
|
||||||
noinst_DATA += @rpmprefix@automake.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(AUTOMAKE_SUBPACKAGES)
|
|
||||||
@@ -1,202 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
%define _prefix /opt/rtems-4.11
|
|
||||||
%define _exec_prefix %{_prefix}
|
|
||||||
%define _bindir %{_exec_prefix}/bin
|
|
||||||
%define _sbindir %{_exec_prefix}/sbin
|
|
||||||
%define _libexecdir %{_exec_prefix}/libexec
|
|
||||||
%define _datarootdir %{_prefix}/share
|
|
||||||
%define _datadir %{_datarootdir}
|
|
||||||
%define _sysconfdir %{_prefix}/etc
|
|
||||||
%define _sharedstatedir %{_prefix}/com
|
|
||||||
%define _localstatedir %{_prefix}/var
|
|
||||||
%define _includedir %{_prefix}/include
|
|
||||||
%define _libdir %{_exec_prefix}/%{_lib}
|
|
||||||
%define _mandir %{_datarootdir}/man
|
|
||||||
%define _infodir %{_datarootdir}/info
|
|
||||||
%define _localedir %{_datarootdir}/locale
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define srcvers 2.68
|
|
||||||
%define rpmvers %{expand:%(echo "2.68" | tr - _ )}
|
|
||||||
|
|
||||||
%define name rtems-4.11-autoconf
|
|
||||||
|
|
||||||
# --with alltests enable all tests
|
|
||||||
%bcond_with alltests
|
|
||||||
|
|
||||||
Name: %{name}
|
|
||||||
License: GPL
|
|
||||||
URL: http://www.gnu.org/software/autoconf
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{rpmvers}
|
|
||||||
Release: 4%{?dist}
|
|
||||||
Summary: Tool for automatically generating GNU style Makefile.in's
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: perl m4 gawk emacs
|
|
||||||
%if "%{version}" >= "2.62"
|
|
||||||
BuildRequires: m4 >= 1.4.5
|
|
||||||
%endif
|
|
||||||
Requires: m4 gawk
|
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(preun): /sbin/install-info
|
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{srcvers}.tar.%{?el5:bz2}%{!?el5:xz}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# remove bogus Autoconf perl dependencies and provides
|
|
||||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Autom4te::
|
|
||||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Autom4te::
|
|
||||||
|
|
||||||
%description
|
|
||||||
GNU's Autoconf is a tool for configuring source code and Makefiles.
|
|
||||||
Using Autoconf, programmers can create portable and configurable
|
|
||||||
packages, since the person building the package is allowed to
|
|
||||||
specify various configuration options.
|
|
||||||
You should install Autoconf if you are developing software and you'd
|
|
||||||
like to use it to create shell scripts which will configure your
|
|
||||||
source code packages.
|
|
||||||
Note that the Autoconf package is not required for the end user who
|
|
||||||
may be configuring software with an Autoconf-generated script;
|
|
||||||
Autoconf is only required for the generation of the scripts, not
|
|
||||||
their use.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n autoconf-%{srcvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
|
|
||||||
%if !%{defined fedora}
|
|
||||||
# Work around rpm inserting bogus perl-module deps
|
|
||||||
cat << \EOF > %{name}-prov
|
|
||||||
#!/bin/sh
|
|
||||||
%{__perl_provides} $* |\
|
|
||||||
sed -e '/^perl(Autom4te/d'
|
|
||||||
EOF
|
|
||||||
%global __perl_provides %{_builddir}/autoconf-%{srcvers}/%{name}-prov
|
|
||||||
chmod +x %{__perl_provides}
|
|
||||||
|
|
||||||
cat << \EOF > %{name}-requ
|
|
||||||
#!/bin/sh
|
|
||||||
%{__perl_requires} $* |\
|
|
||||||
sed -e '/^perl(Autom4te/d'
|
|
||||||
EOF
|
|
||||||
%global __perl_requires %{_builddir}/autoconf-%{srcvers}/%{name}-requ
|
|
||||||
chmod +x %{__perl_requires}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
|
||||||
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
|
||||||
--bindir=%{_bindir} --datadir=%{_datadir}
|
|
||||||
make
|
|
||||||
|
|
||||||
%check
|
|
||||||
%if "%{_build}" == "%{_host}"
|
|
||||||
%if "%{srcvers}" == "2.68"
|
|
||||||
# test 199 fails sporadically
|
|
||||||
# test 205 fails deterministically
|
|
||||||
TESTSUITEFLAGS='-198 200-204 206-'
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make check %{!?with_alltests:TESTSUITEFLAGS="${TESTSUITEFLAGS}"}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf "${RPM_BUILD_ROOT}"
|
|
||||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
||||||
|
|
||||||
# Create this directory to prevent the corresponding line
|
|
||||||
# in %%files below to fail
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp
|
|
||||||
|
|
||||||
# RTEMS's standards.info comes from binutils
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
# Fix up brp-compress to handle %%_prefix != /usr
|
|
||||||
*/brp-compress*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz ||:
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz ||:
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
# %doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
|
||||||
%dir %{_bindir}
|
|
||||||
%{_bindir}/*
|
|
||||||
%dir %{_infodir}
|
|
||||||
%ghost %{_infodir}/dir
|
|
||||||
|
|
||||||
%{_infodir}/autoconf.info*
|
|
||||||
%dir %{_mandir}
|
|
||||||
%dir %{_mandir}/man1
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
%dir %{_datadir}
|
|
||||||
%{_datadir}/autoconf
|
|
||||||
%exclude %{_datadir}/emacs/site-lisp
|
|
||||||
@@ -1,189 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
%define _prefix /opt/rtems-4.11
|
|
||||||
%define _exec_prefix %{_prefix}
|
|
||||||
%define _bindir %{_exec_prefix}/bin
|
|
||||||
%define _sbindir %{_exec_prefix}/sbin
|
|
||||||
%define _libexecdir %{_exec_prefix}/libexec
|
|
||||||
%define _datarootdir %{_prefix}/share
|
|
||||||
%define _datadir %{_datarootdir}
|
|
||||||
%define _sysconfdir %{_prefix}/etc
|
|
||||||
%define _sharedstatedir %{_prefix}/com
|
|
||||||
%define _localstatedir %{_prefix}/var
|
|
||||||
%define _includedir %{_prefix}/include
|
|
||||||
%define _libdir %{_exec_prefix}/%{_lib}
|
|
||||||
%define _mandir %{_datarootdir}/man
|
|
||||||
%define _infodir %{_datarootdir}/info
|
|
||||||
%define _localedir %{_datarootdir}/locale
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define rpmvers 1.11.1b
|
|
||||||
%define srcvers 1.11.1b
|
|
||||||
%define amvers 1.11
|
|
||||||
|
|
||||||
%define name rtems-4.11-automake
|
|
||||||
%define requirements rtems-4.11-autoconf >= 2.61
|
|
||||||
|
|
||||||
Name: %{name}
|
|
||||||
URL: http://sources.redhat.com/automake
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{rpmvers}
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: Tool for automatically generating GNU style Makefile.in's
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: %{requirements} perl
|
|
||||||
Requires: %{requirements}
|
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(preun):/sbin/install-info
|
|
||||||
|
|
||||||
# Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
|
|
||||||
Source0: ftp://alpha.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
|
|
||||||
|
|
||||||
|
|
||||||
# remove bogus Automake perl dependencies and provides
|
|
||||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Automake::
|
|
||||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Automake::
|
|
||||||
|
|
||||||
%description
|
|
||||||
Automake is a tool for automatically generating "Makefile.in"s from
|
|
||||||
files called "Makefile.am". "Makefile.am" is basically a series of
|
|
||||||
"make" macro definitions (with rules being thrown in occasionally).
|
|
||||||
The generated "Makefile.in"s are compatible to the GNU Makefile
|
|
||||||
standards.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n automake-%{srcvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
|
|
||||||
%if !%{defined fedora}
|
|
||||||
# Work around rpm inserting bogus perl-module deps
|
|
||||||
cat << \EOF > %{name}-prov
|
|
||||||
#!/bin/sh
|
|
||||||
%{__perl_provides} $* |\
|
|
||||||
sed -e '/^perl(Automake/d'
|
|
||||||
EOF
|
|
||||||
%global __perl_provides %{_builddir}/automake-%{srcvers}/%{name}-prov
|
|
||||||
chmod +x %{__perl_provides}
|
|
||||||
|
|
||||||
cat << \EOF > %{name}-requ
|
|
||||||
#!/bin/sh
|
|
||||||
%{__perl_requires} $* |\
|
|
||||||
sed -e '/^perl(Automake/d'
|
|
||||||
EOF
|
|
||||||
%global __perl_requires %{_builddir}/automake-%{srcvers}/%{name}-requ
|
|
||||||
chmod +x %{__perl_requires}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
|
||||||
PATH=%{_bindir}:$PATH
|
|
||||||
case %_host in
|
|
||||||
*-mingw32)
|
|
||||||
# MinGW ships obsolete perl-5.6.1, which doesn't support threads
|
|
||||||
echo am_cv_prog_PERL_ithreads=no > config.cache
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Don't use %%configure, it replaces config.sub/config.guess with the
|
|
||||||
# outdated versions bundled with rpm.
|
|
||||||
./configure -C --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
|
||||||
--bindir=%{_bindir} --datadir=%{_datadir} \
|
|
||||||
--docdir=%{_datadir}/automake-%{amvers}/doc
|
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf "$RPM_BUILD_ROOT"
|
|
||||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/aclocal
|
|
||||||
echo "/usr/share/aclocal" > $RPM_BUILD_ROOT%{_datadir}/aclocal/dirlist
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
# Fix up brp-compress to handle %%_prefix != /usr
|
|
||||||
*/brp-compress*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/automake.info.gz ||:
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz ||:
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
|
||||||
%dir %{_bindir}
|
|
||||||
%{_bindir}/aclocal*
|
|
||||||
%{_bindir}/automake*
|
|
||||||
%dir %{_infodir}
|
|
||||||
%ghost %{_infodir}/dir
|
|
||||||
%{_infodir}/automake.info*.gz
|
|
||||||
%dir %{_mandir}
|
|
||||||
%dir %{_mandir}/man1
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
%dir %{_datadir}
|
|
||||||
%{_datadir}/aclocal
|
|
||||||
%{_datadir}/aclocal-%{amvers}
|
|
||||||
%{_datadir}/automake-%{amvers}
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
%post
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz ||:
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz ||:
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
# %doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
|
||||||
%sysdir %{_bindir}
|
|
||||||
%{_bindir}/*
|
|
||||||
%sysdir %{_infodir}
|
|
||||||
%ghost %{_infodir}/dir
|
|
||||||
|
|
||||||
%{_infodir}/autoconf.info*
|
|
||||||
%sysdir %{_mandir}
|
|
||||||
%sysdir %{_mandir}/man1
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
%sysdir %{_datadir}
|
|
||||||
%{_datadir}/autoconf
|
|
||||||
%exclude %{_datadir}/emacs/site-lisp
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
%post
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/automake.info.gz ||:
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz ||:
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
|
||||||
%sysdir %{_bindir}
|
|
||||||
%{_bindir}/aclocal*
|
|
||||||
%{_bindir}/automake*
|
|
||||||
%sysdir %{_infodir}
|
|
||||||
%ghost %{_infodir}/dir
|
|
||||||
%{_infodir}/automake.info*.gz
|
|
||||||
%sysdir %{_mandir}
|
|
||||||
%sysdir %{_mandir}/man1
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
%sysdir %{_datadir}
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
%{_datadir}/aclocal
|
|
||||||
%endif
|
|
||||||
%{_datadir}/aclocal-%{amvers}
|
|
||||||
%{_datadir}/automake-%{amvers}
|
|
||||||
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
%if %build_infos
|
|
||||||
# ==============================================================
|
|
||||||
# @rpmprefix@binutils-common
|
|
||||||
# ==============================================================
|
|
||||||
%package -n @rpmprefix@binutils-common
|
|
||||||
Summary: Base package for RTEMS binutils
|
|
||||||
Group: Development/Tools
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
|
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(preun): /sbin/install-info
|
|
||||||
|
|
||||||
%description -n @rpmprefix@binutils-common
|
|
||||||
|
|
||||||
RTEMS is an open source operating system for embedded systems.
|
|
||||||
|
|
||||||
This is the base for binutils regardless of target CPU.
|
|
||||||
|
|
||||||
%post -n @rpmprefix@binutils-common
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
|
||||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
|
||||||
|
|
||||||
%preun -n @rpmprefix@binutils-common
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
|
||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files -n @rpmprefix@binutils-common
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%sysdir %{_prefix}
|
|
||||||
%sysdir %{_infodir}
|
|
||||||
%ghost %{_infodir}/dir
|
|
||||||
%{_infodir}/as.info*
|
|
||||||
%{_infodir}/bfd.info*
|
|
||||||
%{_infodir}/binutils.info*
|
|
||||||
%{_infodir}/ld.info*
|
|
||||||
%{_infodir}/standards.info*
|
|
||||||
%{_infodir}/gprof.info*
|
|
||||||
|
|
||||||
%sysdir %{_prefix}/share
|
|
||||||
%sysdir %{_prefix}/share/locale
|
|
||||||
%endif
|
|
||||||
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
%define binutils_pkgvers @BINUTILS_PKGVERS@
|
|
||||||
%define binutils_version @BINUTILS_VERS@
|
|
||||||
%define binutils_rpmvers %{expand:%(echo "@BINUTILS_VERS@" | tr - _ )}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-binutils
|
|
||||||
Summary: Binutils for target @tool_target@
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{binutils_rpmvers}
|
|
||||||
Release: @BINUTILS_RPMREL@
|
|
||||||
License: GPL/LGPL
|
|
||||||
URL: http://sources.redhat.com/binutils
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
%if "%{binutils_version}" >= "2.18"
|
|
||||||
# Bug in bfd: Doesn't build without texinfo installed
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%else
|
|
||||||
%if %build_infos
|
|
||||||
# Required for building the infos
|
|
||||||
BuildRequires: /sbin/install-info
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%else
|
|
||||||
%if "@tool_target@" == "i686-pc-cygwin"
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: bison
|
|
||||||
%if %build_infos
|
|
||||||
|
|
||||||
Requires: @rpmprefix@binutils-common
|
|
||||||
%endif
|
|
||||||
|
|
||||||
@SOURCES@
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross binutils for target @tool_target@
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
%build
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
export PATH="%{_bindir}:${PATH}"
|
|
||||||
%endif
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
%endif
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
../binutils-%{binutils_pkgvers}/configure \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=@tool_target@ \
|
|
||||||
--verbose --disable-nls \
|
|
||||||
--without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--disable-werror \
|
|
||||||
--with-sysroot=%{_prefix}/@tool_target@/sys-root \
|
|
||||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
|
||||||
--exec-prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
|
||||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
%if %build_infos
|
|
||||||
make info
|
|
||||||
%endif
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
%install
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
export PATH="%{_bindir}:${PATH}"
|
|
||||||
%endif
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
|
|
||||||
%if %build_infos
|
|
||||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
|
||||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
|
||||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
|
||||||
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
|
||||||
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
|
||||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
|
||||||
exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
|
||||||
install-info
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %build_infos
|
|
||||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
|
|
||||||
# binutils does not install share/locale, however it uses it
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
|
|
||||||
%else
|
|
||||||
# Conflict with a native binutils' infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# We don't ship host files
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
|
||||||
|
|
||||||
# manpages without corresponding tools
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-dlltool%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-dlltool*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-nlmconv%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-nlmconv*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-windres%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-windres*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-windmc%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-windmc*
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
|
||||||
cd binutils-%{binutils_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
# Fix up brp-compress to handle %%_prefix != /usr
|
|
||||||
*/brp-compress*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
%endif
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
|
||||||
%endif
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# ==============================================================
|
|
||||||
# @tool_target@-binutils
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n @rpmprefix@@tool_target@-binutils
|
|
||||||
# Summary: rtems binutils for @tool_target@
|
|
||||||
# Group: Development/Tools
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: @rpmprefix@binutils-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n @rpmprefix@@tool_target@-binutils
|
|
||||||
GNU binutils targetting @tool_target@.
|
|
||||||
|
|
||||||
%files -n @rpmprefix@@tool_target@-binutils
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%sysdir %{_prefix}
|
|
||||||
%sysdir %{_datarootdir}
|
|
||||||
|
|
||||||
%sysdir %{_mandir}
|
|
||||||
%sysdir %{_mandir}/man1
|
|
||||||
%{_mandir}/man1/@tool_target@-*.1*
|
|
||||||
|
|
||||||
%sysdir %{_bindir}
|
|
||||||
%{_bindir}/@tool_target@-*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/@tool_target@
|
|
||||||
%dir %{_exec_prefix}/@tool_target@/bin
|
|
||||||
%{_exec_prefix}/@tool_target@/bin/*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/@tool_target@/lib
|
|
||||||
%{_exec_prefix}/@tool_target@/lib/ldscripts
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
autoreconf -fis
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
%define _prefix @_prefix@
|
|
||||||
%define _exec_prefix %{_prefix}
|
|
||||||
%define _bindir %{_exec_prefix}/bin
|
|
||||||
%define _sbindir %{_exec_prefix}/sbin
|
|
||||||
%define _libexecdir %{_exec_prefix}/libexec
|
|
||||||
%define _datarootdir %{_prefix}/share
|
|
||||||
%define _datadir %{_datarootdir}
|
|
||||||
%define _sysconfdir %{_prefix}/etc
|
|
||||||
%define _sharedstatedir %{_prefix}/com
|
|
||||||
%define _localstatedir %{_prefix}/var
|
|
||||||
%define _includedir %{_prefix}/include
|
|
||||||
%define _libdir %{_exec_prefix}/%{_lib}
|
|
||||||
%define _mandir %{_datarootdir}/man
|
|
||||||
%define _infodir %{_datarootdir}/info
|
|
||||||
%define _localedir %{_datarootdir}/locale
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
@@ -1,178 +0,0 @@
|
|||||||
## $Id$
|
|
||||||
|
|
||||||
m4_define([RTEMS_API],[4.11])
|
|
||||||
|
|
||||||
AC_PREREQ([2.68])
|
|
||||||
AC_INIT([crossrpms],[0.20110310.0],[http://www.rtems.org/bugzilla])
|
|
||||||
AC_CONFIG_SRCDIR([binutils/binutils.add])
|
|
||||||
AC_CONFIG_AUX_DIR(.)
|
|
||||||
|
|
||||||
AC_CANONICAL_HOST
|
|
||||||
|
|
||||||
AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([1.11.1])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE([targets],
|
|
||||||
AS_HELP_STRING([--enable-targets=<targets>],[build for targets <targets>]),
|
|
||||||
[targets="$enable_targets"],
|
|
||||||
[targets=rtems]
|
|
||||||
)
|
|
||||||
|
|
||||||
case $targets in
|
|
||||||
rtems )
|
|
||||||
savdir=`pwd`
|
|
||||||
cd $srcdir
|
|
||||||
targets=
|
|
||||||
for d in rtems*/*/Makefile.am; do
|
|
||||||
o=`echo $d | sed -e 's,/.*,,'`
|
|
||||||
a=`echo $d | sed -e 's,/Makefile\.am,,;s,.*/,,'`
|
|
||||||
targets="$targets $a-$o"
|
|
||||||
done
|
|
||||||
cd $savdir
|
|
||||||
;;
|
|
||||||
all )
|
|
||||||
savdir=`pwd`
|
|
||||||
cd $srcdir
|
|
||||||
targets=
|
|
||||||
for d in rtems*/*/Makefile.am; do
|
|
||||||
o=`echo $d | sed -e 's,/.*,,'`
|
|
||||||
a=`echo $d | sed -e 's,/Makefile\.am,,;s,.*/,,'`
|
|
||||||
targets="$targets $a-$o"
|
|
||||||
done
|
|
||||||
for d in freebsd*/*/Makefile.am \
|
|
||||||
netbsd*/*/Makefile.am \
|
|
||||||
cygwin*/*/Makefile.am \
|
|
||||||
mingw*/*/Makefile.am; \
|
|
||||||
do
|
|
||||||
o=`echo $d | sed -e 's,/.*,,'`
|
|
||||||
a=`echo $d | sed -e 's,/Makefile\.am,,;s,.*/,,'`
|
|
||||||
targets="$targets $a-pc-$o"
|
|
||||||
done
|
|
||||||
for d in solaris*/*/Makefile.am; \
|
|
||||||
do
|
|
||||||
o=`echo $d | sed -e 's,/.*,,'`
|
|
||||||
a=`echo $d | sed -e 's,/Makefile\.am,,;s,.*/,,'`
|
|
||||||
targets="$targets $a-sun-$o"
|
|
||||||
done
|
|
||||||
cd $savdir
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case "$prefix" in
|
|
||||||
/usr)
|
|
||||||
sysdirpattern="/%sysdir/d"
|
|
||||||
rpmprefix=
|
|
||||||
host_subdirs=
|
|
||||||
;;
|
|
||||||
/usr/local)
|
|
||||||
sysdirpattern="/%sysdir/d"
|
|
||||||
rpmprefix="local-"
|
|
||||||
host_subdirs=autotools
|
|
||||||
;;
|
|
||||||
/opt/rtems)
|
|
||||||
sysdirpattern="s/^%sysdir/%dir/g"
|
|
||||||
rpmprefix="rtems-"
|
|
||||||
host_subdirs=autotools
|
|
||||||
;;
|
|
||||||
NONE|${ac_default_prefix}) # Default prefix
|
|
||||||
sysdirpattern="s/^%sysdir/%dir/g"
|
|
||||||
rpmprefix="[rtems-]RTEMS_API[-]"
|
|
||||||
host_subdirs=autotools
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
sysdirpattern="s/^%sysdir/%dir/g"
|
|
||||||
rpmprefix="custom-"
|
|
||||||
host_subdirs=autotools
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
AC_SUBST(sysdirpattern)
|
|
||||||
AC_SUBST(HOST_SUBDIRS,$host_subdirs)
|
|
||||||
|
|
||||||
AC_ARG_ENABLE([rpmprefix],
|
|
||||||
[ --enable-rpmprefix=<rpmprefix> prefix rpms],[
|
|
||||||
case "$enable_rpmprefix" in
|
|
||||||
yes) # ignore, use default
|
|
||||||
;;
|
|
||||||
no) rpmprefix=
|
|
||||||
;;
|
|
||||||
*) # presume user knows what he is doing
|
|
||||||
rpmprefix=$enable_rpmprefix;;
|
|
||||||
esac
|
|
||||||
])
|
|
||||||
AC_SUBST(rpmprefix)
|
|
||||||
|
|
||||||
SPECSTRIP_OPTS=
|
|
||||||
|
|
||||||
AC_ARG_ENABLE([infos],
|
|
||||||
[ --enable-infos enable building infos],[
|
|
||||||
case "$enable_infos" in
|
|
||||||
yes)
|
|
||||||
SPECSTRIP_OPTS="$SPECSTRIP_OPTS --enable-infos";;
|
|
||||||
no)
|
|
||||||
SPECSTRIP_OPTS="$SPECSTRIP_OPTS --disable-infos";;
|
|
||||||
*)
|
|
||||||
AC_MSG_ERROR([Invalid argument to --enable-infos])
|
|
||||||
esac
|
|
||||||
])
|
|
||||||
AC_SUBST(SPECSTRIP_OPTS)
|
|
||||||
|
|
||||||
for f in $targets; do
|
|
||||||
ac_cv_mytarget=`$SHELL "$ac_aux_dir/config.sub" $f` ||
|
|
||||||
AC_MSG_ERROR([$SHELL $ac_aux_dir/config.sub $f failed])
|
|
||||||
RTEMS_CANONICAL_SPLIT(mytarget)
|
|
||||||
|
|
||||||
AS_IF([test -d $srcdir/$mytarget_os/$mytarget_cpu],[
|
|
||||||
target_subdirs="$target_subdirs $mytarget_os/$mytarget_cpu"],[
|
|
||||||
AC_MSG_WARN([ignoring unsupported target $f])
|
|
||||||
])
|
|
||||||
done
|
|
||||||
AC_SUBST(TARGET_SUBDIRS,$target_subdirs)
|
|
||||||
AC_SUBST(rtems_api,RTEMS_API)
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([cygwin/Makefile])
|
|
||||||
AC_CONFIG_FILES([cygwin/i686/Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([mingw32/Makefile])
|
|
||||||
AC_CONFIG_FILES([mingw32/i686/Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([solaris2.7/Makefile])
|
|
||||||
AC_CONFIG_FILES([solaris2.7/sparc/Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([freebsd6.4/Makefile])
|
|
||||||
AC_CONFIG_FILES([freebsd6.4/i586/Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([freebsd7.3/Makefile])
|
|
||||||
AC_CONFIG_FILES([freebsd7.3/i586/Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([freebsd8.2/Makefile])
|
|
||||||
AC_CONFIG_FILES([freebsd8.2/i586/Makefile])
|
|
||||||
AC_CONFIG_FILES([freebsd8.2/x86_64/Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([netbsd5.1/Makefile])
|
|
||||||
AC_CONFIG_FILES([netbsd5.1/i386/Makefile])
|
|
||||||
AC_CONFIG_FILES([netbsd5.1/x86_64/Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([rtems4.11/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/arm/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/arm-eabi/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/avr/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/bfin/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/h8300/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/i386/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/lm32/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/m32c/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/m32r/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/m68k/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/mips/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/mipstx39/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/powerpc/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/sh/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/sparc/Makefile])
|
|
||||||
AC_CONFIG_FILES([rtems4.11/sparc64/Makefile])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([autotools/Makefile])
|
|
||||||
|
|
||||||
AC_OUTPUT
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
%build
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
export PATH="%{_bindir}:${PATH}"
|
|
||||||
%endif
|
|
||||||
mkdir -p build
|
|
||||||
|
|
||||||
cd build
|
|
||||||
../rtems-%{cpukit_version}/configure \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--target=@tool_target@ \
|
|
||||||
--enable-multilib \
|
|
||||||
--disable-rtemsbsp
|
|
||||||
|
|
||||||
make all RTEMS_BSP=
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
|
|
||||||
%define cpukit_pkgvers @CPUKIT_PKGVERS@
|
|
||||||
%define cpukit_version @CPUKIT_VERS@
|
|
||||||
%define cpukit_rpmvers %{expand:%(echo "@CPUKIT_PKGVERS@" | tr - . )}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-cpukit
|
|
||||||
Summary: @tool_target@ cpukit
|
|
||||||
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{cpukit_rpmvers}
|
|
||||||
Release: @CPUKIT_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
URL: http://cpukit.gnu.org
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%define debug_package %{nil}
|
|
||||||
|
|
||||||
BuildRequires: @rpmprefix@@tool_target@-gcc
|
|
||||||
|
|
||||||
@SOURCES@
|
|
||||||
|
|
||||||
%description
|
|
||||||
RTEMS cpukit for @tool_target@.
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
export PATH="%{_bindir}:${PATH}"
|
|
||||||
%endif
|
|
||||||
cd build
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/man
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/bin
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%prep
|
|
||||||
%setup -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a0
|
|
||||||
|
|
||||||
@PREP@
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
# Fix up brp-compress to handle %%_prefix != /usr
|
|
||||||
*/brp-compress*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
%endif
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
%if "%{_prefix}" != "/usr"
|
|
||||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
|
||||||
%endif
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{version}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/@tool_target@/(lib|include|sys-root)' \
|
|
||||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/@tool_target@/' | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{version}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{version}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{version}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/@tool_target@/(lib|include|sys-root)' \
|
|
||||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/@tool_target@/' | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{version}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{version}/find-requires
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
%description -n @rpmprefix@@tool_target@-cpukit
|
|
||||||
RTEMS cpukit for target @tool_target@.
|
|
||||||
|
|
||||||
%files -n @rpmprefix@@tool_target@-cpukit
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%sysdir %{_prefix}
|
|
||||||
%{_prefix}/@tool_target@
|
|
||||||
# Violates the FHS
|
|
||||||
%exclude %{_prefix}/make
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
SUBDIRS = i686
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
EXTRA_DIST += binutils-sources.add
|
|
||||||
|
|
||||||
BINUTILS_OPTS =
|
|
||||||
|
|
||||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
|
||||||
|
|
||||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add $(srcdir)/../binutils.am
|
|
||||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
| $(MKSPEC0) \
|
|
||||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
|
||||||
> $(TARGET)-binutils.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-cloog-ppl.add
|
|
||||||
EXTRA_DIST += cloog-ppl.add
|
|
||||||
|
|
||||||
CLOOG_PPL_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
CLOOG_PPL_SUBPACKAGES += $(srcdir)/cloog-ppl.add
|
|
||||||
CLOOG_PPL_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
CLOOG_PPL_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
CLOOG_PPL_SUBPACKAGES += $(srcdir)/target-cloog-ppl.add
|
|
||||||
|
|
||||||
$(TARGET)-cloog-ppl.spec.in: $(CLOOG_PPL_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(CLOOG_PPL_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]CLOOG_PPL_VERS[@]/$(CLOOG_PPL_VERS)/g" \
|
|
||||||
-e "s/[@]CLOOG_PPL_RPMREL[@]/$(CLOOG_PPL_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{cloog_ppl_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-cloog-ppl.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-cloog-ppl.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-cloog-ppl.spec: $(TARGET)-cloog-ppl.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-cloog-ppl.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-cloog-ppl.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-cloog-ppl.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += libs.add
|
|
||||||
EXTRA_DIST += target-libs.add
|
|
||||||
|
|
||||||
LIBS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/libs.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
LIBS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
LIBS_SUBPACKAGES += $(srcdir)/target-libs.add
|
|
||||||
|
|
||||||
$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(LIBS_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]CYGWIN_VERS[@]/$(CYGWIN_VERS)/g" \
|
|
||||||
-e "s/[@]CYGWIN_RPMREL[@]/$(CYGWIN_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{cygwin_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-libs.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-libs.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-libs.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-libs.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-expat.add
|
|
||||||
EXTRA_DIST += expat.add
|
|
||||||
|
|
||||||
EXPAT_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
EXPAT_SUBPACKAGES += $(srcdir)/expat.add
|
|
||||||
EXPAT_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
EXPAT_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
EXPAT_SUBPACKAGES += $(srcdir)/target-expat.add
|
|
||||||
|
|
||||||
$(TARGET)-expat.spec.in: $(EXPAT_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(EXPAT_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]EXPAT_VERS[@]/$(EXPAT_VERS)/g" \
|
|
||||||
-e "s/[@]EXPAT_RPMREL[@]/$(EXPAT_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{expat_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-expat.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-expat.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-expat.spec: $(TARGET)-expat.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-expat.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-expat.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-expat.spec
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# cygwin patches can't be directly applied through rpm
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%if "%{gcc_version}" < "4.0"
|
|
||||||
patch -p1 -t < %{PATCH70} || true
|
|
||||||
%else
|
|
||||||
patch -p2 -t < %{PATCH70} || true
|
|
||||||
%endif
|
|
||||||
%{?PATCH71:patch -p1 < %{PATCH71}}
|
|
||||||
cd ..
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
|
||||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
|
||||||
|
|
||||||
GCC_OPTS =
|
|
||||||
|
|
||||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
|
||||||
|
|
||||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
|
|
||||||
cat $(GCC_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
|
||||||
-e "/[@]PREP[@]/d" \
|
|
||||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
|
||||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
|
||||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
|
||||||
-e "/[@]tool_target[@]-newlib/d" \
|
|
||||||
-e "/^BuildRequ.*[@]tool_target[@]-w32api-sys-root/d" \
|
|
||||||
-e "s,[@]tool_target[@]-w32api-sys-root,@tool_target@-w32api," \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-gmp.add
|
|
||||||
EXTRA_DIST += gmp.add
|
|
||||||
|
|
||||||
GMP_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
GMP_SUBPACKAGES += $(srcdir)/gmp.add
|
|
||||||
GMP_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
GMP_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
GMP_SUBPACKAGES += $(srcdir)/target-gmp.add
|
|
||||||
|
|
||||||
$(TARGET)-gmp.spec.in: $(GMP_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(GMP_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]GMP_VERS[@]/$(GMP_VERS)/g" \
|
|
||||||
-e "s/[@]GMP_RPMREL[@]/$(GMP_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{gmp_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-gmp.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-gmp.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-gmp.spec: $(TARGET)-gmp.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-gmp.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-gmp.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-gmp.spec
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
TARGET = i686-pc-cygwin
|
|
||||||
|
|
||||||
include $(top_srcdir)/mkspec.am
|
|
||||||
|
|
||||||
CYGWIN_VERS = 1.7.9-1
|
|
||||||
CYGWIN_RPMREL = 0.20110427.0%{?dist}
|
|
||||||
include ../cygwin.am
|
|
||||||
|
|
||||||
CLOOG_PPL_VERS = 0.15.7-1
|
|
||||||
CLOOG_PPL_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../cloog_ppl.am
|
|
||||||
|
|
||||||
W32API_VERS = 3.17-2
|
|
||||||
W32API_RPMREL = 0.20110427.0%{?dist}
|
|
||||||
include ../w32api.am
|
|
||||||
|
|
||||||
NCURSES_VERS = 5.7-18
|
|
||||||
NCURSES_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../ncurses.am
|
|
||||||
|
|
||||||
EXPAT_VERS = 2.0.1-1
|
|
||||||
EXPAT_RPMREL = 0.20090903.0%{?dist}
|
|
||||||
include ../expat.am
|
|
||||||
|
|
||||||
READLINE_VERS = 6.1.2-2
|
|
||||||
READLINE_RPMREL = 0.20111214.0%{?dist}
|
|
||||||
include ../readline.am
|
|
||||||
|
|
||||||
TERMCAP_VERS = 20050421-1
|
|
||||||
TERMCAP_RPMREL = 0.20090827.0%{?dist}
|
|
||||||
include ../termcap.am
|
|
||||||
|
|
||||||
TERMINFO_VERS = 5.7_20091114-14
|
|
||||||
TERMINFO_RPMREL = 0.20100726.0%{?dist}
|
|
||||||
include ../terminfo.am
|
|
||||||
|
|
||||||
ZLIB_VERS = 1.2.5-1
|
|
||||||
ZLIB_RPMREL = 0.20110427.0%{?dist}
|
|
||||||
include ../zlib.am
|
|
||||||
|
|
||||||
GMP_VERS = 4.3.1-3
|
|
||||||
GMP_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../gmp.am
|
|
||||||
|
|
||||||
MPC_VERS = 0.8-1
|
|
||||||
MPC_RPMREL = 0.20100322.0%{?dist}
|
|
||||||
include ../mpc.am
|
|
||||||
|
|
||||||
MPFR_VERS = 2.4.1-4
|
|
||||||
MPFR_RPMREL = 0.20100204.0%{?dist}
|
|
||||||
include ../mpfr.am
|
|
||||||
|
|
||||||
# Cygwin's binutils' versioning is bizarre
|
|
||||||
# Check bfd/configure for the real version number
|
|
||||||
BINUTILS_VERS = 2.20.51-2
|
|
||||||
BINUTILS_PKGVERS = 2.20.51-2
|
|
||||||
BINUTILS_RPMREL = 0.20110427.0
|
|
||||||
include ../binutils.am
|
|
||||||
BINUTILS_OPTS += --disable-infos
|
|
||||||
|
|
||||||
GCC_VERS = 3.4.4
|
|
||||||
GCC_PKGVERS = $(GCC_VERS)
|
|
||||||
GCC_RPMREL = 0.20110310.0
|
|
||||||
include ../gcc.am
|
|
||||||
GCC_OPTS += --languages=c,cxx
|
|
||||||
GCC_OPTS += --disable-infos
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
Source0: ftp://cygwin.com/pub/cygwin/release/binutils/binutils-%{binutils_pkgvers}-src.tar.bz2
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
%define cloog_ppl_version @CLOOG_PPL_VERS@
|
|
||||||
%define cloog_ppl_rpmvers %{expand:%(echo @CLOOG_PPL_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-cloog-ppl
|
|
||||||
Release: @CLOOG_PPL_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %cloog_ppl_rpmvers
|
|
||||||
Summary: Cygwin cloog-ppl Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/cloog-ppl-%{cloog_ppl_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/libcloog0/libcloog0-%{cloog_ppl_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/libcloog-devel/libcloog-devel-%{cloog_ppl_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-cloog-ppl = %{version}-%{release}
|
|
||||||
Provides: @rpmprefix@@tool_target@-cloog-ppl-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin cloog-ppl libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
%define expat_version @EXPAT_VERS@
|
|
||||||
%define expat_rpmvers %{expand:%(echo @EXPAT_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-expat
|
|
||||||
Release: @EXPAT_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %expat_rpmvers
|
|
||||||
Summary: Cygwin expat Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/expat/expat-%{expat_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/expat/libexpat1/libexpat1-%{expat_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/expat/libexpat1-devel/libexpat1-devel-%{expat_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-expat-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin expat libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
(cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
(cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
(cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
|
|
||||||
%if %build_cxx
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH1@
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_fortran
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH2@
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gcj
|
|
||||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH3@
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gnat
|
|
||||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH4@
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_objc
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH5@
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" == "3.4.4"
|
|
||||||
# Cygwin patch extracted from
|
|
||||||
# ftp://sourceware.org/pub/cygwin/release/gcc/gcc-3.4.4-3-src.tar.bz2
|
|
||||||
Patch70: gcc-3.4.4-3.patch
|
|
||||||
|
|
||||||
Patch71: cygwin-gcc-3.4.4-3.diff
|
|
||||||
%endif
|
|
||||||
%if "%{gcc_version}" == "4.3.4"
|
|
||||||
# Cygwin patch extracted from
|
|
||||||
# ftp://sourceware.org/pub/cygwin/release/gcc4/gcc4-4.3.4-3-src.tar.bz2
|
|
||||||
Patch70: gcc4-4.3.4-3.src.patch
|
|
||||||
|
|
||||||
Patch71: cygwin-gcc4-4.3.4-3.diff
|
|
||||||
%endif
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
%define gmp_version @GMP_VERS@
|
|
||||||
%define gmp_rpmvers %{expand:%(echo @GMP_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-gmp
|
|
||||||
Release: @GMP_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %gmp_rpmvers
|
|
||||||
Summary: Cygwin gmp Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp3/libgmp3-%{gmp_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp-devel/libgmp-devel-%{gmp_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-gmp-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin gmp libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,171 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define binutils_pkgvers 2.20.51-2
|
|
||||||
%define binutils_version 2.20.51-2
|
|
||||||
%define binutils_rpmvers %{expand:%(echo "2.20.51-2" | tr - _ )}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-binutils
|
|
||||||
Summary: Binutils for target i686-pc-cygwin
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{binutils_rpmvers}
|
|
||||||
Release: 0.20110427.0%{?dist}
|
|
||||||
License: GPL/LGPL
|
|
||||||
URL: http://sources.redhat.com/binutils
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
%if "%{binutils_version}" >= "2.18"
|
|
||||||
# Bug in bfd: Doesn't build without texinfo installed
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%else
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
%endif
|
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: bison
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/binutils/binutils-%{binutils_pkgvers}-src.tar.bz2
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross binutils for target i686-pc-cygwin
|
|
||||||
%prep
|
|
||||||
%setup -q -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -D -T -n %{name}-%{version} -a0
|
|
||||||
cd binutils-%{binutils_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
%endif
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
../binutils-%{binutils_pkgvers}/configure \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i686-pc-cygwin \
|
|
||||||
--verbose --disable-nls \
|
|
||||||
--without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--disable-werror \
|
|
||||||
--with-sysroot=%{_prefix}/i686-pc-cygwin/sys-root \
|
|
||||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
|
||||||
--exec-prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
|
||||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native binutils' infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# We don't ship host files
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
|
||||||
|
|
||||||
# manpages without corresponding tools
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-dlltool%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-dlltool*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-nlmconv%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-nlmconv*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-windres%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-windres*
|
|
||||||
fi
|
|
||||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i686-pc-cygwin-windmc%{_exeext}; then
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i686-pc-cygwin-windmc*
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i686-pc-cygwin-binutils
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i686-pc-cygwin-binutils
|
|
||||||
# Summary: rtems binutils for i686-pc-cygwin
|
|
||||||
# Group: Development/Tools
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: binutils-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-binutils
|
|
||||||
GNU binutils targetting i686-pc-cygwin.
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-binutils
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-*.1*
|
|
||||||
|
|
||||||
%{_bindir}/i686-pc-cygwin-*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i686-pc-cygwin
|
|
||||||
%dir %{_exec_prefix}/i686-pc-cygwin/bin
|
|
||||||
%{_exec_prefix}/i686-pc-cygwin/bin/*
|
|
||||||
|
|
||||||
%dir %{_exec_prefix}/i686-pc-cygwin/lib
|
|
||||||
%{_exec_prefix}/i686-pc-cygwin/lib/ldscripts
|
|
||||||
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define cloog_ppl_version 0.15.7-1
|
|
||||||
%define cloog_ppl_rpmvers %{expand:%(echo 0.15.7-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-cloog-ppl
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %cloog_ppl_rpmvers
|
|
||||||
Summary: Cygwin cloog-ppl Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/cloog-ppl-%{cloog_ppl_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/libcloog0/libcloog0-%{cloog_ppl_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/cloog-ppl/libcloog-devel/libcloog-devel-%{cloog_ppl_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-cloog-ppl = %{version}-%{release}
|
|
||||||
Provides: i686-pc-cygwin-cloog-ppl-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin cloog-ppl libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{cloog_ppl_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,143 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define expat_version 2.0.1-1
|
|
||||||
%define expat_rpmvers %{expand:%(echo 2.0.1-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-expat
|
|
||||||
Release: 0.20090903.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %expat_rpmvers
|
|
||||||
Summary: Cygwin expat Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/expat/expat-%{expat_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/expat/libexpat1/libexpat1-%{expat_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/expat/libexpat1-devel/libexpat1-devel-%{expat_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-expat-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin expat libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
(cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
(cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
(cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{expat_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{expat_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,706 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%define gcc_pkgvers 3.4.4
|
|
||||||
%define gcc_version 3.4.4
|
|
||||||
%define gcc_rpmvers %{expand:%(echo "3.4.4" | tr - _ )}
|
|
||||||
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-gcc
|
|
||||||
Summary: i686-pc-cygwin gcc
|
|
||||||
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
Release: 0.20110310.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
URL: http://gcc.gnu.org
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
|
|
||||||
BuildRequires: %{_host_rpmprefix}gcc
|
|
||||||
|
|
||||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
|
||||||
%bcond_with lto
|
|
||||||
|
|
||||||
# FIXME: Disable python gdb scripts
|
|
||||||
# ATM, no idea how to package them
|
|
||||||
%bcond_with pygdb
|
|
||||||
|
|
||||||
# FIXME: Disable GCC-plugin
|
|
||||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
|
||||||
%bcond_with plugin
|
|
||||||
|
|
||||||
# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
|
|
||||||
# Should be applicable to gcc >= 4.5.0
|
|
||||||
%bcond_with gcc_stdint
|
|
||||||
|
|
||||||
# versions of libraries, we conditionally bundle if necessary
|
|
||||||
%global mpc_version 0.8.1
|
|
||||||
%global mpfr_version 2.4.2
|
|
||||||
%global gmp_version 4.3.2
|
|
||||||
%global libelf_version 0.8.13
|
|
||||||
|
|
||||||
# versions of libraries these distros are known to ship
|
|
||||||
%if 0%{?fc15}
|
|
||||||
%global mpc_provided 0.8.3
|
|
||||||
%global mpfr_provided 3.0.0
|
|
||||||
%global gmp_provided 4.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc14}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.2
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fc13}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.2
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el6}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?el5}
|
|
||||||
%global mpc_provided %{nil}
|
|
||||||
%global mpfr_provided %{nil}
|
|
||||||
%global gmp_provided 4.1.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_2}
|
|
||||||
%global mpc_provided 0.7
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_3}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.2
|
|
||||||
%global gmp_provided 4.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse11_4}
|
|
||||||
%global mpc_provided 0.8.2
|
|
||||||
%global mpfr_provided 3.0.0
|
|
||||||
%global gmp_provided 5.0.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?cygwin}
|
|
||||||
%global mpc_provided 0.8
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?mingw32}
|
|
||||||
%global mpc_provided 0.8.1
|
|
||||||
%global mpfr_provided 2.4.1
|
|
||||||
%global gmp_provided 4.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%define gmp_required 4.1
|
|
||||||
%define mpfr_required 2.3.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.3"
|
|
||||||
%define cloog_required 0.15
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.4.0"
|
|
||||||
%define mpfr_required 2.3.2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%define mpc_required 0.8
|
|
||||||
%if %{with lto}
|
|
||||||
%define libelf_required 0.8.12
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined mpc_required}
|
|
||||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
|
||||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
|
||||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpc 1
|
|
||||||
%define gmp_required 4.2
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined gmp_required}
|
|
||||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
|
||||||
BuildRequires: gmp-devel >= %{gmp_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_gmp 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined libelf_required}
|
|
||||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
|
||||||
BuildRequires: libelf-devel >= %{libelf_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_libelf 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined cloog_required}
|
|
||||||
%{?fc13:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
|
||||||
%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%{?suse11_3:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%{?suse11_2:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{defined mpfr_required}
|
|
||||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
|
||||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%define _build_mpfr 1
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i686-pc-cygwin-gcc = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
BuildRequires: flex bison
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: texinfo >= 4.2
|
|
||||||
BuildRequires: i686-pc-cygwin-binutils
|
|
||||||
BuildRequires: i686-pc-cygwin-sys-root
|
|
||||||
|
|
||||||
Requires: i686-pc-cygwin-binutils
|
|
||||||
Requires: i686-pc-cygwin-sys-root
|
|
||||||
Requires: i686-pc-cygwin-w32api
|
|
||||||
Requires: i686-pc-cygwin-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global _gcclibdir %{_prefix}/lib
|
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
|
|
||||||
%if "%{gcc_version}" == "3.4.4"
|
|
||||||
# Cygwin patch extracted from
|
|
||||||
# ftp://sourceware.org/pub/cygwin/release/gcc/gcc-3.4.4-3-src.tar.bz2
|
|
||||||
Patch70: gcc-3.4.4-3.patch
|
|
||||||
|
|
||||||
Patch71: cygwin-gcc-3.4.4-3.diff
|
|
||||||
%endif
|
|
||||||
%if "%{gcc_version}" == "4.3.4"
|
|
||||||
# Cygwin patch extracted from
|
|
||||||
# ftp://sourceware.org/pub/cygwin/release/gcc4/gcc4-4.3.4-3-src.tar.bz2
|
|
||||||
Patch70: gcc4-4.3.4-3.src.patch
|
|
||||||
|
|
||||||
Patch71: cygwin-gcc4-4.3.4-3.diff
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cross gcc for i686-pc-cygwin.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -T -n %{name}-%{version}
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a0
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH0:%patch0 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a1
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%{?PATCH1:%patch1 -p1}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with gcc_stdint}
|
|
||||||
sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?_build_mpfr}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a60
|
|
||||||
%{?PATCH60:%patch60 -p1}
|
|
||||||
# Build mpfr one-tree style
|
|
||||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_mpc}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a61
|
|
||||||
%{?PATCH61:%patch61 -p1}
|
|
||||||
# Build mpc one-tree style
|
|
||||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_gmp}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a62
|
|
||||||
%{?PATCH62:%patch62 -p1}
|
|
||||||
# Build gmp one-tree style
|
|
||||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?_build_libelf}
|
|
||||||
%setup -q -T -D -n %{name}-%{version} -a63
|
|
||||||
%{?PATCH63:%patch63 -p1}
|
|
||||||
# Build libelf one-tree style
|
|
||||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# cygwin patches can't be directly applied through rpm
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
%if "%{gcc_version}" < "4.0"
|
|
||||||
patch -p1 -t < %{PATCH70} || true
|
|
||||||
%else
|
|
||||||
patch -p2 -t < %{PATCH70} || true
|
|
||||||
%endif
|
|
||||||
%{?PATCH71:patch -p1 < %{PATCH71}}
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Fix timestamps
|
|
||||||
cd gcc-%{gcc_pkgvers}
|
|
||||||
contrib/gcc_update --touch
|
|
||||||
cd ..
|
|
||||||
%build
|
|
||||||
mkdir -p build
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
languages="c"
|
|
||||||
languages="$languages,c++"
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
|
||||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
|
||||||
%else
|
|
||||||
# gcc is not ready to be compiled with -std=gnu99
|
|
||||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
|
||||||
%endif
|
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--bindir=%{_bindir} \
|
|
||||||
--exec_prefix=%{_exec_prefix} \
|
|
||||||
--includedir=%{_includedir} \
|
|
||||||
--libdir=%{_gcclibdir} \
|
|
||||||
--libexecdir=%{_libexecdir} \
|
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--infodir=%{_infodir} \
|
|
||||||
--datadir=%{_datadir} \
|
|
||||||
--build=%_build --host=%_host \
|
|
||||||
--target=i686-pc-cygwin \
|
|
||||||
--disable-libstdcxx-pch \
|
|
||||||
--with-gnu-as --with-gnu-ld --verbose \
|
|
||||||
--with-newlib \
|
|
||||||
--with-system-zlib \
|
|
||||||
--disable-nls --without-included-gettext \
|
|
||||||
--disable-win32-registry \
|
|
||||||
--enable-version-specific-runtime-libs \
|
|
||||||
--enable-threads \
|
|
||||||
--with-sysroot=%{_exec_prefix}/i686-pc-cygwin/sys-root \
|
|
||||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
|
||||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
|
||||||
--enable-languages="$languages" $optargs
|
|
||||||
|
|
||||||
%if "%_host" != "%_build"
|
|
||||||
# Bug in gcc-3.2.1:
|
|
||||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
|
||||||
mkdir -p gcc/include
|
|
||||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
%if "%{gcc_version}" <= "4.1.2"
|
|
||||||
# Misplaced header file
|
|
||||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
|
||||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
|
||||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include/
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# host library
|
|
||||||
%if "%{gcc_version}" >= "4.2.0"
|
|
||||||
# libiberty doesn't honor --libdir, but always installs to a
|
|
||||||
# magically guessed _libdir
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
|
||||||
%else
|
|
||||||
# libiberty installs to --libdir=...
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# We use the version from binutils
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i686-pc-cygwin-c++filt%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
# Conflict with a native GCC's infos
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
|
||||||
|
|
||||||
# Conflict with a native GCC's man pages
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
|
||||||
|
|
||||||
# Bug in gcc-3.4.0pre
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/i686-pc-cygwin-i686-pc-cygwin-gcjh%{_exeext}
|
|
||||||
|
|
||||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
|
||||||
# the fixinclude-install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/install-tools
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/install-tools
|
|
||||||
|
|
||||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/i686-pc-cygwin/include/bits; then
|
|
||||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/i686-pc-cygwin/include/bits
|
|
||||||
fi
|
|
||||||
|
|
||||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
|
||||||
%if ! %{with pygdb}
|
|
||||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Collect multilib subdirectories
|
|
||||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
|
||||||
|
|
||||||
|
|
||||||
rm -f dirs ;
|
|
||||||
echo "%defattr(-,root,root,-)" >> dirs
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}"
|
|
||||||
for i in $multilibs; do
|
|
||||||
case $i in
|
|
||||||
\.) ;; # ignore, handled elsewhere
|
|
||||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Collect files to go into different packages
|
|
||||||
cp dirs build/files.gcc
|
|
||||||
cp dirs build/files.gfortran
|
|
||||||
cp dirs build/files.objc
|
|
||||||
cp dirs build/files.gcj
|
|
||||||
cp dirs build/files.g++
|
|
||||||
|
|
||||||
TGTDIR="%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
|
||||||
*f771) ;;
|
|
||||||
*f951) ;;
|
|
||||||
*cc1) ;;
|
|
||||||
*cc1obj) ;;
|
|
||||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
|
||||||
*collect2) ;;
|
|
||||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
|
||||||
*include/objc*) ;;
|
|
||||||
*include/g++*);;
|
|
||||||
*include/c++*);;
|
|
||||||
*include-fixed/*);;
|
|
||||||
*finclude/*);;
|
|
||||||
*adainclude*);;
|
|
||||||
*adalib*);;
|
|
||||||
*gnat1);;
|
|
||||||
*jc1) ;;
|
|
||||||
*jvgenmain) ;;
|
|
||||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
|
||||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
|
||||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
|
||||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
|
||||||
*) echo "$i" >> build/files.gcc ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
TGTDIR="%{_exec_prefix}/i686-pc-cygwin/lib"
|
|
||||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
|
||||||
for i in $f; do
|
|
||||||
case $i in
|
|
||||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
|
||||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
|
||||||
# all other files belong to newlib
|
|
||||||
*) echo "$i" >> build/files.newlib ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i686-pc-cygwin-gcc
|
|
||||||
# ==============================================================
|
|
||||||
# %package -n i686-pc-cygwin-gcc
|
|
||||||
# Summary: GNU cc compiler for i686-pc-cygwin
|
|
||||||
# Group: Development/Tools
|
|
||||||
# Version: %{gcc_rpmvers}
|
|
||||||
# Requires: i686-pc-cygwin-binutils
|
|
||||||
# License: GPL
|
|
||||||
|
|
||||||
# %if %build_infos
|
|
||||||
# Requires: gcc-common
|
|
||||||
# %endif
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-gcc
|
|
||||||
GNU cc compiler for i686-pc-cygwin.
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i686-pc-cygwin-gcc-libgcc
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i686-pc-cygwin-gcc-libgcc
|
|
||||||
Summary: libgcc for i686-pc-cygwin-gcc
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-gcc-libgcc
|
|
||||||
libgcc i686-pc-cygwin-gcc.
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-gcc.1*
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-cpp.1*
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-gcov.1*
|
|
||||||
|
|
||||||
%{_bindir}/i686-pc-cygwin-cpp%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-gcc%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-gcc-%{gcc_version}%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-gcov%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-gccbug
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i686-pc-cygwin
|
|
||||||
%dir %{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/cc1%{_exeext}
|
|
||||||
%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/collect2%{_exeext}
|
|
||||||
%if "%{gcc_version}" >= "4.5.0"
|
|
||||||
%{?with_lto:%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/lto%{_exeext}}
|
|
||||||
%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/lto-wrapper%{_exeext}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-gcc-libgcc -f build/files.gcc
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include
|
|
||||||
|
|
||||||
%if "%{gcc_version}" > "4.0.3"
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include/ssp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{gcc_version}" >= "4.3.0"
|
|
||||||
%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include-fixed
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# ==============================================================
|
|
||||||
# i686-pc-cygwin-gcc-c++
|
|
||||||
# ==============================================================
|
|
||||||
%package -n i686-pc-cygwin-gcc-c++
|
|
||||||
Summary: GCC c++ compiler for i686-pc-cygwin
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
License: GPL
|
|
||||||
Requires: i686-pc-cygwin-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
BuildRequires: i686-pc-cygwin-gcc-c++ = %{gcc_rpmvers}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires: i686-pc-cygwin-gcc = %{gcc_rpmvers}-%{release}
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-gcc-c++
|
|
||||||
GCC c++ compiler for i686-pc-cygwin.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n i686-pc-cygwin-gcc-libstdc++
|
|
||||||
Summary: libstdc++ for i686-pc-cygwin
|
|
||||||
Group: Development/Tools
|
|
||||||
Version: %{gcc_rpmvers}
|
|
||||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
|
||||||
License: GPL
|
|
||||||
|
|
||||||
%description -n i686-pc-cygwin-gcc-libstdc++
|
|
||||||
%{summary}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-gcc-c++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_mandir}/man1/i686-pc-cygwin-g++.1*
|
|
||||||
|
|
||||||
%{_bindir}/i686-pc-cygwin-c++%{_exeext}
|
|
||||||
%{_bindir}/i686-pc-cygwin-g++%{_exeext}
|
|
||||||
|
|
||||||
%dir %{_libexecdir}/gcc
|
|
||||||
%dir %{_libexecdir}/gcc/i686-pc-cygwin
|
|
||||||
%dir %{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}
|
|
||||||
%{_libexecdir}/gcc/i686-pc-cygwin/%{gcc_version}/cc1plus%{_exeext}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n i686-pc-cygwin-gcc-libstdc++ -f build/files.g++
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_gcclibdir}/gcc
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}
|
|
||||||
%dir %{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include
|
|
||||||
%{_gcclibdir}/gcc/i686-pc-cygwin/%{gcc_version}/include/c++
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define gmp_version 4.3.1-3
|
|
||||||
%define gmp_rpmvers %{expand:%(echo 4.3.1-3 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-gmp
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %gmp_rpmvers
|
|
||||||
Summary: Cygwin gmp Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/gmp/gmp-%{gmp_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp3/libgmp3-%{gmp_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/gmp/libgmp-devel/libgmp-devel-%{gmp_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-gmp-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin gmp libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define cygwin_version 1.7.9-1
|
|
||||||
%define cygwin_rpmvers %{expand:%(echo 1.7.9-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin
|
|
||||||
Release: 0.20110427.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %cygwin_rpmvers
|
|
||||||
Summary: i686-pc-cygwin libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/cygwin/cygwin-%{cygwin_version}.tar.bz2
|
|
||||||
|
|
||||||
%description
|
|
||||||
i686-pc-cygwin libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
%{__tar} cf - usr/lib usr/include | ( cd i686-pc-cygwin/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{cygwin_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{cygwin_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: i686-pc-cygwin target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
i686-pc-cygwin target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
@@ -1,145 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define mpc_version 0.8-1
|
|
||||||
%define mpc_rpmvers %{expand:%(echo 0.8-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-mpc
|
|
||||||
Release: 0.20100322.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %mpc_rpmvers
|
|
||||||
Summary: Cygwin mpc Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpclib/mpclib-%{mpc_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpclib/libmpc1/libmpc1-%{mpc_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpclib/libmpc-devel/libmpc-devel-%{mpc_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-mpc-devel = %{version}-%{release}
|
|
||||||
Provides: i686-pc-cygwin-libmpc = %{version}-%{release}
|
|
||||||
Provides: i686-pc-cygwin-libmpc-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin cloog-ppl libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{mpc_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{mpc_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{mpc_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{mpc_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{mpc_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{mpc_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define mpfr_version 2.4.1-4
|
|
||||||
%define mpfr_rpmvers %{expand:%(echo 2.4.1-4 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-mpfr
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %mpfr_rpmvers
|
|
||||||
Summary: Cygwin mpfr Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpfr/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr1/libmpfr1-%{mpfr_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr-devel/libmpfr-devel-%{mpfr_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-mpfr-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin mpfr libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define ncurses_version 5.7-18
|
|
||||||
%define ncurses_rpmvers %{expand:%(echo 5.7-18 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-ncurses
|
|
||||||
Release: 0.20100204.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %ncurses_rpmvers
|
|
||||||
Summary: Cygwin ncurses Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/ncurses/ncurses-%{ncurses_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses10/libncurses10-%{ncurses_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses-devel/libncurses-devel-%{ncurses_version}.tar.bz2
|
|
||||||
|
|
||||||
BuildRequires: i686-pc-cygwin-terminfo
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-libncurses-devel = %{version}-%{release}
|
|
||||||
Provides: i686-pc-cygwin-ncurses-devel = %{version}-%{release}
|
|
||||||
Requires: i686-pc-cygwin-terminfo
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin ncurses libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e "s,^prefix=.*$,prefix=$RPM_BUILD_ROOT%{_prefix}/i686-pc-cygwin/sys-root/usr," \
|
|
||||||
< i686-pc-cygwin/sys-root/etc/postinstall/libncurses-devel.sh \
|
|
||||||
> postinst.sh
|
|
||||||
|
|
||||||
/bin/sh -x ./postinst.sh
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{ncurses_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{ncurses_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define readline_version 6.1.2-2
|
|
||||||
%define readline_rpmvers %{expand:%(echo 6.1.2-2 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-readline
|
|
||||||
Release: 0.20111214.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %readline_rpmvers
|
|
||||||
Summary: Cygwin readline Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/readline/readline-%{readline_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/readline/libreadline7/libreadline7-%{readline_version}.tar.bz2
|
|
||||||
|
|
||||||
Requires: i686-pc-cygwin-libncurses-devel
|
|
||||||
Provides: i686-pc-cygwin-readline-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin readline libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{readline_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{readline_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define termcap_version 20050421-1
|
|
||||||
%define termcap_rpmvers %{expand:%(echo 20050421-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-termcap
|
|
||||||
Release: 0.20090827.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %termcap_rpmvers
|
|
||||||
Summary: Cygwin termcap Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/termcap/termcap-%{termcap_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-termcap-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin termcap libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{termcap_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{termcap_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define terminfo_version 5.7_20091114-14
|
|
||||||
%define terminfo_rpmvers %{expand:%(echo 5.7_20091114-14 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-terminfo
|
|
||||||
Release: 0.20100726.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %terminfo_rpmvers
|
|
||||||
Summary: Cygwin terminfo Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/terminfo/terminfo-%{terminfo_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-terminfo-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin terminfo libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{terminfo_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{terminfo_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define w32api_version 3.17-2
|
|
||||||
%define w32api_rpmvers %{expand:%(echo 3.17-2 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-w32api
|
|
||||||
Release: 0.20110427.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %w32api_rpmvers
|
|
||||||
Summary: Cygwin w32api Libraries
|
|
||||||
|
|
||||||
Source0: ftp://sources.redhat.com/pub/cygwin/release/w32api/w32api-%{w32api_version}.tar.bz2
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin w32api libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
mkdir -p i686-pc-cygwin
|
|
||||||
cp -a usr/lib usr/include i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
%{__tar} cf - usr/lib usr/include | ( cd i686-pc-cygwin/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{w32api_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{w32api_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/lib
|
|
||||||
%{_prefix}/i686-pc-cygwin/include
|
|
||||||
|
|
||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: i686-pc-cygwin target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
i686-pc-cygwin target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
#
|
|
||||||
# Please send bugfixes or comments to
|
|
||||||
# http://www.rtems.org/bugzilla
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32 mingw mingw32
|
|
||||||
%define _exeext .exe
|
|
||||||
%define debug_package %{nil}
|
|
||||||
%define _libdir %{_exec_prefix}/lib
|
|
||||||
%else
|
|
||||||
%define _exeext %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos cygwin cygwin32
|
|
||||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifos mingw mingw32
|
|
||||||
%if %{defined _mingw32_cflags}
|
|
||||||
%define optflags %{_mingw32_cflags}
|
|
||||||
%else
|
|
||||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
%define _host_rpmprefix %{_host}-
|
|
||||||
%else
|
|
||||||
%define _host_rpmprefix %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define zlib_version 1.2.5-1
|
|
||||||
%define zlib_rpmvers %{expand:%(echo 1.2.5-1 | tr - _)}
|
|
||||||
|
|
||||||
Name: i686-pc-cygwin-zlib
|
|
||||||
Release: 0.20110427.0%{?dist}
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %zlib_rpmvers
|
|
||||||
Summary: Cygwin zlib Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-%{zlib_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-devel/zlib-devel-%{zlib_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/zlib/zlib0/zlib0-%{zlib_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: i686-pc-cygwin-zlib-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin zlib libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf i686-pc-cygwin
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p i686-pc-cygwin/sys-root
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd i686-pc-cygwin/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a i686-pc-cygwin $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
# Extract %%__os_install_post into os_install_post~
|
|
||||||
cat << \EOF > os_install_post~
|
|
||||||
%__os_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized brp-*scripts
|
|
||||||
cat os_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent brp-strip* from trying to handle foreign binaries
|
|
||||||
*/brp-strip*)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
|
||||||
< os_install_post~ > os_install_post
|
|
||||||
%define __os_install_post . ./os_install_post
|
|
||||||
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_provides
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
|
||||||
%define __find_provides %{_builddir}/%{name}-%{zlib_rpmvers}/find-provides
|
|
||||||
|
|
||||||
cat << EOF > %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
|
||||||
#!/bin/sh
|
|
||||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-cygwin/(lib|include|sys-root)' \
|
|
||||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/i686-pc-cygwin/'} | %__find_requires
|
|
||||||
EOF
|
|
||||||
chmod +x %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{zlib_rpmvers}/find-requires
|
|
||||||
|
|
||||||
%ifnarch noarch
|
|
||||||
# Extract %%__debug_install_post into debug_install_post~
|
|
||||||
cat << \EOF > debug_install_post~
|
|
||||||
%__debug_install_post
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Generate customized debug_install_post script
|
|
||||||
cat debug_install_post~ | while read a x y; do
|
|
||||||
case $a in
|
|
||||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
|
||||||
*/find-debuginfo.sh)
|
|
||||||
b=$(basename $a)
|
|
||||||
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
|
||||||
chmod a+x $b
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
|
||||||
< debug_install_post~ > debug_install_post
|
|
||||||
%define __debug_install_post . ./debug_install_post
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/i686-pc-cygwin
|
|
||||||
%{_prefix}/i686-pc-cygwin/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
%define cygwin_version @CYGWIN_VERS@
|
|
||||||
%define cygwin_rpmvers %{expand:%(echo @CYGWIN_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@
|
|
||||||
Release: @CYGWIN_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %cygwin_rpmvers
|
|
||||||
Summary: @tool_target@ libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/cygwin/cygwin-%{cygwin_version}.tar.bz2
|
|
||||||
|
|
||||||
%description
|
|
||||||
@tool_target@ libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
%{__tar} cf - usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
%define mpc_version @MPC_VERS@
|
|
||||||
%define mpc_rpmvers %{expand:%(echo @MPC_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-mpc
|
|
||||||
Release: @MPC_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %mpc_rpmvers
|
|
||||||
Summary: Cygwin mpc Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpclib/mpclib-%{mpc_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpclib/libmpc1/libmpc1-%{mpc_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpclib/libmpc-devel/libmpc-devel-%{mpc_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-mpc-devel = %{version}-%{release}
|
|
||||||
Provides: @rpmprefix@@tool_target@-libmpc = %{version}-%{release}
|
|
||||||
Provides: @rpmprefix@@tool_target@-libmpc-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin cloog-ppl libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
%define mpfr_version @MPFR_VERS@
|
|
||||||
%define mpfr_rpmvers %{expand:%(echo @MPFR_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-mpfr
|
|
||||||
Release: @MPFR_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %mpfr_rpmvers
|
|
||||||
Summary: Cygwin mpfr Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/mpfr/mpfr-%{mpfr_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr1/libmpfr1-%{mpfr_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/mpfr/libmpfr-devel/libmpfr-devel-%{mpfr_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-mpfr-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin mpfr libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
%define ncurses_version @NCURSES_VERS@
|
|
||||||
%define ncurses_rpmvers %{expand:%(echo @NCURSES_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-ncurses
|
|
||||||
Release: @NCURSES_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %ncurses_rpmvers
|
|
||||||
Summary: Cygwin ncurses Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/ncurses/ncurses-%{ncurses_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses10/libncurses10-%{ncurses_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses-devel/libncurses-devel-%{ncurses_version}.tar.bz2
|
|
||||||
|
|
||||||
BuildRequires: @rpmprefix@@tool_target@-terminfo
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-libncurses-devel = %{version}-%{release}
|
|
||||||
Provides: @rpmprefix@@tool_target@-ncurses-devel = %{version}-%{release}
|
|
||||||
Requires: @rpmprefix@@tool_target@-terminfo
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin ncurses libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e "s,^prefix=.*$,prefix=$RPM_BUILD_ROOT%{_prefix}/@tool_target@/sys-root/usr," \
|
|
||||||
< @tool_target@/sys-root/etc/postinstall/libncurses-devel.sh \
|
|
||||||
> postinst.sh
|
|
||||||
|
|
||||||
/bin/sh -x ./postinst.sh
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
%define readline_version @READLINE_VERS@
|
|
||||||
%define readline_rpmvers %{expand:%(echo @READLINE_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-readline
|
|
||||||
Release: @READLINE_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %readline_rpmvers
|
|
||||||
Summary: Cygwin readline Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/readline/readline-%{readline_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/readline/libreadline7/libreadline7-%{readline_version}.tar.bz2
|
|
||||||
|
|
||||||
Requires: @rpmprefix@@tool_target@-libncurses-devel
|
|
||||||
Provides: @rpmprefix@@tool_target@-readline-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin readline libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: @tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
@tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/lib
|
|
||||||
%{_prefix}/@tool_target@/include
|
|
||||||
|
|
||||||
%package sys-root
|
|
||||||
Group: Development/Tools
|
|
||||||
Summary: @tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%description sys-root
|
|
||||||
@tool_target@ target files for gcc >= 3.4
|
|
||||||
|
|
||||||
%files sys-root
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_prefix}/@tool_target@
|
|
||||||
%{_prefix}/@tool_target@/sys-root
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
%define termcap_version @TERMCAP_VERS@
|
|
||||||
%define termcap_rpmvers %{expand:%(echo @TERMCAP_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-termcap
|
|
||||||
Release: @TERMCAP_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %termcap_rpmvers
|
|
||||||
Summary: Cygwin termcap Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/termcap/termcap-%{termcap_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-termcap-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin termcap libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
%define terminfo_version @TERMINFO_VERS@
|
|
||||||
%define terminfo_rpmvers %{expand:%(echo @TERMINFO_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-terminfo
|
|
||||||
Release: @TERMINFO_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %terminfo_rpmvers
|
|
||||||
Summary: Cygwin terminfo Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/terminfo/terminfo-%{terminfo_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-terminfo-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin terminfo libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
%define w32api_version @W32API_VERS@
|
|
||||||
%define w32api_rpmvers %{expand:%(echo @W32API_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-w32api
|
|
||||||
Release: @W32API_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %w32api_rpmvers
|
|
||||||
Summary: Cygwin w32api Libraries
|
|
||||||
|
|
||||||
Source0: ftp://sources.redhat.com/pub/cygwin/release/w32api/w32api-%{w32api_version}.tar.bz2
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin w32api libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
mkdir -p @tool_target@
|
|
||||||
cp -a usr/lib usr/include @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
%{__tar} cf - usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
%define zlib_version @ZLIB_VERS@
|
|
||||||
%define zlib_rpmvers %{expand:%(echo @ZLIB_VERS@ | tr - _)}
|
|
||||||
|
|
||||||
Name: @rpmprefix@@tool_target@-zlib
|
|
||||||
Release: @ZLIB_RPMREL@
|
|
||||||
License: GPL
|
|
||||||
Group: Development/Tools
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
Version: %zlib_rpmvers
|
|
||||||
Summary: Cygwin zlib Libraries
|
|
||||||
|
|
||||||
Source0: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-%{zlib_version}.tar.bz2
|
|
||||||
Source1: ftp://cygwin.com/pub/cygwin/release/zlib/zlib-devel/zlib-devel-%{zlib_version}.tar.bz2
|
|
||||||
Source2: ftp://cygwin.com/pub/cygwin/release/zlib/zlib0/zlib0-%{zlib_version}.tar.bz2
|
|
||||||
|
|
||||||
Provides: @rpmprefix@@tool_target@-zlib-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
|
||||||
Cygwin zlib libraries.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
rm -rf @tool_target@
|
|
||||||
|
|
||||||
# Setup sys-root (Usable for gcc >= 3.4)
|
|
||||||
mkdir -p @tool_target@/sys-root
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
|
|
||||||
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
EXTRA_DIST += target-mpc.add
|
|
||||||
EXTRA_DIST += mpc.add
|
|
||||||
|
|
||||||
MPC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
MPC_SUBPACKAGES += $(srcdir)/mpc.add
|
|
||||||
MPC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
MPC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
MPC_SUBPACKAGES += $(srcdir)/target-mpc.add
|
|
||||||
|
|
||||||
$(TARGET)-mpc.spec.in: $(MPC_SUBPACKAGES) Makefile.am $(srcdir)/../mpc.am
|
|
||||||
cat $(MPC_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]MPC_VERS[@]/$(MPC_VERS)/g" \
|
|
||||||
-e "s/[@]MPC_RPMREL[@]/$(MPC_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{mpc_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-mpc.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-mpc.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-mpc.spec: $(TARGET)-mpc.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-mpc.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-mpc.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-mpc.spec
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
EXTRA_DIST += target-mpfr.add
|
|
||||||
EXTRA_DIST += mpfr.add
|
|
||||||
|
|
||||||
MPFR_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
MPFR_SUBPACKAGES += $(srcdir)/mpfr.add
|
|
||||||
MPFR_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
MPFR_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
MPFR_SUBPACKAGES += $(srcdir)/target-mpfr.add
|
|
||||||
|
|
||||||
$(TARGET)-mpfr.spec.in: $(MPFR_SUBPACKAGES) Makefile.am $(srcdir)/../mpfr.am
|
|
||||||
cat $(MPFR_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]MPFR_VERS[@]/$(MPFR_VERS)/g" \
|
|
||||||
-e "s/[@]MPFR_RPMREL[@]/$(MPFR_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{mpfr_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-mpfr.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-mpfr.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-mpfr.spec: $(TARGET)-mpfr.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-mpfr.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-mpfr.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-mpfr.spec
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-ncurses.add
|
|
||||||
EXTRA_DIST += ncurses.add
|
|
||||||
|
|
||||||
NCURSES_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
NCURSES_SUBPACKAGES += $(srcdir)/ncurses.add
|
|
||||||
NCURSES_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
NCURSES_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
NCURSES_SUBPACKAGES += $(srcdir)/target-ncurses.add
|
|
||||||
|
|
||||||
$(TARGET)-ncurses.spec.in: $(NCURSES_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(NCURSES_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]NCURSES_VERS[@]/$(NCURSES_VERS)/g" \
|
|
||||||
-e "s/[@]NCURSES_RPMREL[@]/$(NCURSES_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{ncurses_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-ncurses.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-ncurses.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-ncurses.spec: $(TARGET)-ncurses.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-ncurses.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-ncurses.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-ncurses.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-readline.add
|
|
||||||
EXTRA_DIST += readline.add
|
|
||||||
|
|
||||||
READLINE_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
READLINE_SUBPACKAGES += $(srcdir)/readline.add
|
|
||||||
READLINE_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
READLINE_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
READLINE_SUBPACKAGES += $(srcdir)/target-readline.add
|
|
||||||
|
|
||||||
$(TARGET)-readline.spec.in: $(READLINE_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(READLINE_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]READLINE_VERS[@]/$(READLINE_VERS)/g" \
|
|
||||||
-e "s/[@]READLINE_RPMREL[@]/$(READLINE_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{readline_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-readline.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-readline.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-readline.spec: $(TARGET)-readline.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-readline.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-readline.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-readline.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-termcap.add
|
|
||||||
EXTRA_DIST += termcap.add
|
|
||||||
|
|
||||||
TERMCAP_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
TERMCAP_SUBPACKAGES += $(srcdir)/termcap.add
|
|
||||||
TERMCAP_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
TERMCAP_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
TERMCAP_SUBPACKAGES += $(srcdir)/target-termcap.add
|
|
||||||
|
|
||||||
$(TARGET)-termcap.spec.in: $(TERMCAP_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(TERMCAP_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]TERMCAP_VERS[@]/$(TERMCAP_VERS)/g" \
|
|
||||||
-e "s/[@]TERMCAP_RPMREL[@]/$(TERMCAP_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{termcap_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-termcap.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-termcap.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-termcap.spec: $(TARGET)-termcap.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-termcap.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-termcap.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-termcap.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-terminfo.add
|
|
||||||
EXTRA_DIST += terminfo.add
|
|
||||||
|
|
||||||
TERMINFO_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
TERMINFO_SUBPACKAGES += $(srcdir)/terminfo.add
|
|
||||||
TERMINFO_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
TERMINFO_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
TERMINFO_SUBPACKAGES += $(srcdir)/target-terminfo.add
|
|
||||||
|
|
||||||
$(TARGET)-terminfo.spec.in: $(TERMINFO_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(TERMINFO_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]TERMINFO_VERS[@]/$(TERMINFO_VERS)/g" \
|
|
||||||
-e "s/[@]TERMINFO_RPMREL[@]/$(TERMINFO_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{terminfo_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-terminfo.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-terminfo.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-terminfo.spec: $(TARGET)-terminfo.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-terminfo.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-terminfo.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-terminfo.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-w32api.add
|
|
||||||
EXTRA_DIST += w32api.add
|
|
||||||
|
|
||||||
W32API_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
W32API_SUBPACKAGES += $(srcdir)/w32api.add
|
|
||||||
W32API_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
W32API_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
W32API_SUBPACKAGES += $(srcdir)/target-w32api.add
|
|
||||||
|
|
||||||
$(TARGET)-w32api.spec.in: $(W32API_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(W32API_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]W32API_VERS[@]/$(W32API_VERS)/g" \
|
|
||||||
-e "s/[@]W32API_RPMREL[@]/$(W32API_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{w32api_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-w32api.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-w32api.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-w32api.spec: $(TARGET)-w32api.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-w32api.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-w32api.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-w32api.spec
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
EXTRA_DIST += target-zlib.add
|
|
||||||
EXTRA_DIST += zlib.add
|
|
||||||
|
|
||||||
ZLIB_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
ZLIB_SUBPACKAGES += $(srcdir)/zlib.add
|
|
||||||
ZLIB_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
ZLIB_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
ZLIB_SUBPACKAGES += $(srcdir)/target-zlib.add
|
|
||||||
|
|
||||||
$(TARGET)-zlib.spec.in: $(ZLIB_SUBPACKAGES) Makefile.am
|
|
||||||
cat $(ZLIB_SUBPACKAGES) | sed \
|
|
||||||
-e "s/[@]ZLIB_VERS[@]/$(ZLIB_VERS)/g" \
|
|
||||||
-e "s/[@]ZLIB_RPMREL[@]/$(ZLIB_RPMREL)/g" \
|
|
||||||
-e "s,%{gcc_rpmvers},%{zlib_rpmvers},g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-zlib.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-zlib.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-zlib.spec: $(TARGET)-zlib.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-zlib.spec.in | $(SPECSTRIP) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-zlib.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-zlib.spec
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
SUBDIRS = i586
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
EXTRA_DIST += binutils-sources.add
|
|
||||||
|
|
||||||
BINUTILS_OPTS =
|
|
||||||
|
|
||||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
|
||||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
|
||||||
|
|
||||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add
|
|
||||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
|
||||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
|
||||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
|
||||||
|
|
||||||
GCC_OPTS =
|
|
||||||
|
|
||||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
|
||||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
|
||||||
|
|
||||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
|
|
||||||
cat $(GCC_SUBPACKAGES) \
|
|
||||||
| sed \
|
|
||||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
|
||||||
-e "/[@]SOURCES[@]/d" \
|
|
||||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
|
||||||
-e "/[@]PREP[@]/d" \
|
|
||||||
| sed \
|
|
||||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
|
||||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
|
||||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
|
||||||
-e "/[@]tool_target[@]-newlib/d" \
|
|
||||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
|
||||||
-e "/--with-newlib/d" \
|
|
||||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
|
||||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
|
||||||
|
|
||||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
|
||||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
|
||||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
|
||||||
|
|
||||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# $Id$
|
|
||||||
|
|
||||||
TARGET = i586-pc-freebsd6.4
|
|
||||||
|
|
||||||
include $(top_srcdir)/mkspec.am
|
|
||||||
|
|
||||||
FREEBSD_VERS = 6.4
|
|
||||||
FREEBSD_RPMREL = 0.20090827.1
|
|
||||||
EXTRA_DIST += libs.add
|
|
||||||
EXTRA_DIST += target-libs.add
|
|
||||||
include ../libs.am
|
|
||||||
|
|
||||||
BINUTILS_VERS = 2.22
|
|
||||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
|
||||||
BINUTILS_RPMREL = 0.20111122.0
|
|
||||||
include ../binutils.am
|
|
||||||
BINUTILS_OPTS +=
|
|
||||||
|
|
||||||
GCC_VERS = 4.5.2
|
|
||||||
GCC_PKGVERS = $(GCC_VERS)
|
|
||||||
GCC_RPMREL = 0.20111116.0
|
|
||||||
include ../gcc.am
|
|
||||||
GCC_OPTS += --languages=cxx,fortran,objc
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
|
||||||
@PATCH0@
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%if "%{gcc_version}" == "4.5.2"
|
|
||||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-core-4.5.2-rtems4.11-20110220.diff
|
|
||||||
%endif
|
|
||||||
%{?_without_sources:NoSource: 0}
|
|
||||||
|
|
||||||
%if %build_cxx
|
|
||||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
|
||||||
%if "%{gcc_version}" == "4.5.2"
|
|
||||||
Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-g++-4.5.2-rtems4.11-20110131.diff
|
|
||||||
%endif
|
|
||||||
%{?_without_sources:NoSource: 1}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_fortran
|
|
||||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH2@
|
|
||||||
%{?_without_sources:NoSource: 2}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gcj
|
|
||||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH3@
|
|
||||||
%{?_without_sources:NoSource: 3}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_gnat
|
|
||||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH4@
|
|
||||||
%{?_without_sources:NoSource: 4}
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if %build_objc
|
|
||||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
|
||||||
@PATCH5@
|
|
||||||
%{?_without_sources:NoSource: 5}
|
|
||||||
%endif
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user