Merge pull request #1561 from vmware/revert-1536-photon-hugo
Revert "Changing multiple files related to documentation"
This commit is contained in:
commit
c9d8953e3b
|
@ -1,3 +0,0 @@
|
|||
*
|
||||
!stage/photon-rootfs.tar.bz2
|
||||
|
38
AUTHORS.md
38
AUTHORS.md
|
@ -1,38 +0,0 @@
|
|||
### Project Manager
|
||||
* [Vasavi Sirnapalli, @Vasavisirnapalli](https://github.com/Vasavisirnapalli)
|
||||
|
||||
### Project Architect
|
||||
* [Alexey Makhalov, @YustasSwamp](https://github.com/YustasSwamp)
|
||||
|
||||
### Developers
|
||||
* [Ajay Kaher, @akaher](https://github.com/akaher)
|
||||
* [Alexey Makhalov, @YustasSwamp](https://github.com/YustasSwamp)
|
||||
* [Anish Swaminathan, @suezzelur](https://github.com/suezzelur)
|
||||
* [Ankit Jain, @jaankit](https://github.com/jaankit)
|
||||
* [Anmol Jain, @anmolja](https://github.com/anmolja)
|
||||
* [Ashwin Dayanand Kamat, @kashwindayan](https://github.com/kashwindayan)
|
||||
* [Bo Gan, @ganboing](https://github.com/ganboing)
|
||||
* [Brennan Lamoreaux, @bhllamoreaux](https://github.com/bhllamoreaux)
|
||||
* [Dheeraj Shetty, @DheerajSShetty](https://github.com/DheerajSShetty)
|
||||
* [Dweep Advani, @dweepadvani](https://github.com/dweepadvani)
|
||||
* [Harinadh Dommaraju, @HarinadhD](https://github.com/HarinadhD)
|
||||
* [Him Bordoloi, @bordoloih](https://github.com/bordoloih)
|
||||
* [Keerthana K, @keerthanakalyan](https://github.com/keerthanakalyan)
|
||||
* [Michelle Wang, @michellew-vmware](https://github.com/michellew-vmware)
|
||||
* [Mukul Sikka, @sikkamukul](https://github.com/sikkamukul)
|
||||
* [Nitesh Kumar, @ntsbtz](https://github.com/ntsbtz)
|
||||
* [Oliver Kurth, @oliverkurth](https://github.com/oliverkurth)
|
||||
* [Piyush Gupta, @gpiyush-dev](https://github.com/gpiyush-dev)
|
||||
* [Prashant Singh Chauhan, @prashant1221](https://github.com/prashant1221)
|
||||
* [Roye Eshed, @reshed](https://github.com/reshed)
|
||||
* [Sharath George, @sharathjg](https://github.com/sharathjg)
|
||||
* [Shivani Agarwal, @shivania2](https://github.com/shivania2)
|
||||
* [Shreenidhi Shedi, @sshedi](https://github.com/sshedi)
|
||||
* [Siju Maliakkal, @smaliakkal](https://github.com/smaliakkal)
|
||||
* [Srinidhi Rao, @srinidhira0](https://github.com/srinidhira0)
|
||||
* [Sriram Nambakam, @snambakam](https://github.com/snambakam)
|
||||
* [Srish Srinivasan, @ssrish17](https://github.com/ssrish17)
|
||||
* [Srivatsa Bhat, @srivatsabhat](https://github.com/srivatsabhat)
|
||||
* [Susant Sahani, @ssahani](https://github.com/ssahani)
|
||||
* [Tapas Kundu, @tapakund](https://github.com/tapakund)
|
||||
* [Vamsi Krishna Brahmajosyula, @vbrahmajosyula1](https://github.com/vbrahmajosyula1)
|
78
CHANGELOG.md
78
CHANGELOG.md
|
@ -1,78 +0,0 @@
|
|||
- [Updated OVAs for CVE-2016-5333](#updated-ovas-for-CVE20165333)
|
||||
|
||||
- [v3.0rev2](#v3.0rev2)
|
||||
- [Downloads](#downloads)
|
||||
- [Highlights](#highlights)
|
||||
- [Known Issues](#known-issues)
|
||||
|
||||
## Updated OVAs for CVE-2016-5333
|
||||
|
||||
A public ssh key used in the Photon OS build environment was inadvertently left in the original Photon OS 3.0 OVAs.
|
||||
This issue would have allowed the corresponding private key to access any Photon OS system built from the original 3.0 OVAs.
|
||||
|
||||
The issue was discovered internally and the original OVAs have been replaced by updated OVAs. All instances of this private key have been deleted within VMware.
|
||||
|
||||
Customers that have downloaded the PhotonOS 3.0 OVAs before August 14, 2016 should take either of the following procedures to ensure the security of their systems:
|
||||
|
||||
- Remove the left-over public key from all Photon OS 3.0 systems built from the original PhotonOS 3.0 OVAs by executing the following command:
|
||||
- On a freshly installed Photon OS system:
|
||||
|
||||
```rm –f /root/.ssh/authorized_keys```
|
||||
- On a Photon OS system which contains user-installed ssh keys:
|
||||
|
||||
```sed –i '/photon-jenkins/d' /root/.ssh/authorized_keys```
|
||||
- Alternatively, download the new OVA and replace all existing instances with new instances built from the updated Photon OS 3.0 OVAs.
|
||||
|
||||
To confirm that the left-over public key is not present and that the issue is resolved, the following command should not produce any output:
|
||||
|
||||
```cat /root/.ssh/authorized_keys | grep photon-jenkins```
|
||||
|
||||
This issue is only present in the original Photon OS 3.0 OVAs and is not present in other Photon OS deliverables.
|
||||
|
||||
The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the identifier CVE-2016-5333 to this issue.
|
||||
|
||||
# v 3.0rev2
|
||||
|
||||
## Downloads
|
||||
| Download | Size | sha1 checksum | md5 checksum |
|
||||
| --- | --- | --- | --- |
|
||||
| [Full ISO x86_64](https://packages.vmware.com/photon/3.0/Rev2/iso/photon-3.0-58f9c74.iso) | 5.2G | 545a9d0d53cb2109381bd9ae9eb837579f2ef1ee | 2ece2dfcdcdf098e36100a2085937dca |
|
||||
| [Minimal ISO x86_64](https://packages.vmware.com/photon/3.0/Rev2/iso/photon-minimal-3.0-58f9c74.iso) | 280M | ae28558e57f5d8aefb8b479c9fac7473079156e1 | 187dfb1e6bc5e47606c667e9042f86a4 |
|
||||
| [Full ISO arm64](https://packages.vmware.com/photon/3.0/Rev2/iso/photon-3.0-58f9c743-aarch64.iso) | 3.5G | 16848687d4d7cf393a413f3a24728b2cf042191d | 46d929c644debd27ee9fd37d35046921 |
|
||||
| [OVA with virtual hardware v11](https://packages.vmware.com/photon/3.0/Rev2/ova/photon-hw11-3.0-9355405.ova) | 169M | f4c22463e4567e6cd9becdbb2a178b4b916ffff9 | 514e9d9597eea5f1694df9717cffb80b |
|
||||
| [OVA with virtual hardware v13 (UEFI Secure Boot)](https://packages.vmware.com/photon/3.0/Rev2/ova/photon-hw13_uefi-3.0-9355405.ova) | 165M | 7cea6b552c66a6ceb6e8023938f9788179d8f697 | 6a24a68b1e56ee35c4a20$
|
||||
| [Amazon AMI](https://packages.vmware.com/photon/3.0/Rev2/ami/photon-ami-3.0-9355405.tar.gz ) | 172M | 85949657c857fee6a4417ca72ec010da81ed09e9 | e80bd2f0991a5091d83b3b3ae6e100df |
|
||||
| [Google GCE](https://packages.vmware.com/photon/3.0/Rev2/gce/photon-gce-3.0-9355405.tar.gz) | 456M | a97425523518a54a6e20114419cb6fb0e5900039 | c5cffb418372b72bb48a66549ee25fbf |
|
||||
| [Azure VHD](https://packages.vmware.com/photon/3.0/Rev2/azure/photon-azure-3.0-9355405.vhd.tar.gz) | 180M | c2a5438574f0b8b62d792042c7edfb655f61acdf | 24b70b81f7e3cb026e4e43bcb0650a5f |
|
||||
| [Raspberry Pi3 Image](https://packages.vmware.com/photon/3.0/Rev2/rpi3/photon-rpi3-3.0-9355405.tar.xz) | 61M | 9f44bde819862eeb0c6cbfcd06fab6a48ba36594| 2ca56e575e37fc7b911dd934e5089432 |
|
||||
|
||||
## Highlights
|
||||
- tdnf adds support for "distro-sync" - giving a single operation to apply updates to all installed packages that have updates in the Photon OS repos.
|
||||
- Many new packages available for Photon OS!
|
||||
- Photon OS 3.0 contains the 4.4 LTS kernel
|
||||
|
||||
## Known Issues
|
||||
|
||||
- Photon OS 3.0 does not respond immediately to the new FQDN after changing the hostname. This issue will occur when there is no valid DNS system configured. This is being investigated.
|
||||
- Workaround: To resolve this issue, restart systemd-resolved.
|
||||
|
||||
- Photon OS 3.0 requires at least 512MB of RAM when installing from ISO on ESXi.
|
||||
- Workaround: While on VMware Workstation and VMware Fusion, Photon OS 3.0 can install ISO and run in as little as 384MB of RAM (default). assign at least 512MB of RAM when installing from ISO on ESXi, as installer may fail in less memory. The default for ESXi is 2GB and most users will not be affected by this issue. The root cause is being investigated.
|
||||
|
||||
- When using a combination of different network cards in Photon OS 3.0, the interfaces may be swapped after a reboot.
|
||||
- Workaround: Use the same type of virtual NIC for all interfaces. This happens because the devices are probed in increasing PCI slot address order upon boot. E1000 devices reside in 02:00.0 and above, while VMXNET3 devices will be placed into 03:00.0 and above. Upon reboot, the E1000 device(s) will always be assigned eth numbers than VMXNET3, regardless of configuration. Users might encounter this issue because VMXNET3 is the default adapter type within Photon OS, but older versions of VMware products might offer only E1000 devices when adding a secondary interface.
|
||||
|
||||
- When using multiple network cards without a valid DNS configuration and functional DNS server, initiating a ping might take 7-8 seconds to start. This happens because of multiple DNS timeouts on the interfaces.
|
||||
- Workaround: To avoid this issue, ensure that you've got a valid DNS configuration and a functioning DNS server that is capable of resolving the hostname(s) that are being pinged.
|
||||
|
||||
- When using vSphere Guest Customization to set the hostname of a Photon OS 3.0 instance, the hostname may revert to the randomly-generated hostname after a reboot.
|
||||
- Workaround: We are testing an update to our open-vm-tools rpm to resolve this issue. In the meantime, you can manually resolve this issue by deleting /var/lib/cloud/seed folder after applying guest customization.
|
||||
|
||||
- Ordering within /etc/hosts makes IPv6 preferred, which impacts connectivity for applications that are not configured for IPv6.
|
||||
- Workaround: To make IPv4 the preferred connection, edit /etc/hosts and ensure that an IPv4 address is first on the list. Alternatively, configuring the application within Photon OS to use IPv6 will work.
|
||||
|
||||
- The default umask permissions are 0027 and may cause some permissions issues with operations executed as root or through sudo.
|
||||
- Workaround: Change the umask settings to 022 by entering, "umask 022" within a Photon OS instance. To make the umask change persistent across reboots, edit /etc/profile and change the umask setting to 0022.
|
||||
|
||||
- In the 3.0 release, Photon OS firewall settings have been changed to a default of DROP, which might cause services installed in Photon OS to be unreachable externally.
|
||||
- Workaround: To address this, administrators must configure their firewall rules appropriately to expose service ports as required for installed applications or containers.
|
674
COPYING
674
COPYING
|
@ -1,674 +0,0 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. 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
|
||||
them 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 prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. 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.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey 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;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If 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 convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU 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 that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
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.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
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.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
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
|
||||
state 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 3 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, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program 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, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU 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 Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
29
CREDITS
29
CREDITS
|
@ -1,29 +0,0 @@
|
|||
CREDITS
|
||||
|
||||
VMware Photon Linux materialized in an instant and is moving at light speed. Any Linux distribution (including Photon) benefits from the thousands of contributions from the free software and open software community. A full listing of the third party components in the Photon distribution can be found at the third party licenses file.
|
||||
|
||||
The Photon Project gratefully acknowledge these contributions. This file calls out specific contributions from the community that deserve special mention.
|
||||
|
||||
1) GNU and the Free Software Foundation
|
||||
|
||||
Free software as we know it today would probably not exist but for the pioneering work of the FSF. Keeping with the tradition of GNU/Linux, VMware’s Photon distribution and build system will be released under the GPL 2.0 License.
|
||||
|
||||
2) Linux from Scratch - http://www.linuxfromscratch.org
|
||||
|
||||
Photon is built from scratch – it’s not a fork of any existing Linux distribution. In building Photon, the team has benefited greatly from the Linux From Scratch (LFS) approach. We acknowledge the simplicity, elegance and clarity of Linux From Scratch.
|
||||
|
||||
3) LFS-RPM - Baho Utot https://github.com/baho-utot/LFS-RPM
|
||||
|
||||
Photon automates the LFS model of constructing a Linux system through the RPM build process.
|
||||
|
||||
When we began Photon, we found Baho Utot's LFS-RPM project and we considered using it as the
|
||||
|
||||
basis of bootstrapping our build system. We requested Baho to clarify the license terms of
|
||||
|
||||
LFS-RPM and Baho very graciously released all of LFS-RPM into the public domain. Thank you!
|
||||
|
||||
As a result, Photon was bootstrapped with Baho's LFS-RPM project.
|
||||
|
||||
4) RPM Spec files
|
||||
|
||||
Photon maintains its own spec files. The initial release of Photon comprises over 200 Linux packages. Of these, around 30 spec files come from the Fedora project. We gratefully acknowledge this. As we evolve our spec files moving forward, we will document their lineage.
|
13
Dockerfile
13
Dockerfile
|
@ -1,13 +0,0 @@
|
|||
#
|
||||
# Photon Linux Dockerfile
|
||||
#
|
||||
|
||||
FROM scratch
|
||||
LABEL maintainer tliaqat@vmware.com
|
||||
|
||||
ADD stage/photon-rootfs-$PHOTON_RELEASE_VERSION-$PHOTON_BUILD_NUMBER.tar.bz2 /
|
||||
|
||||
VOLUME /var/lib/docker
|
||||
|
||||
CMD ["bash", "--login"]
|
||||
|
109
EULA.txt
109
EULA.txt
|
@ -1,109 +0,0 @@
|
|||
VMWARE GENERAL TERMS
|
||||
Last updated:16 June 2022
|
||||
By downloading or using an Offering, Customer agrees to be bound by the terms of the Agreement.
|
||||
1. OFFERINGS.
|
||||
1.1. Applicable Terms. The terms of the Order and these General Terms, including applicable Exhibits and Offering-specific Notes (collectively, the "Agreement") govern Customer's use of the Offerings. The following descending order of precedence applies: (a) the Order; (b) the General Terms; (c) the Exhibits; and (d) the Offering-specific Notes.
|
||||
1.2. Users. Customer is responsible for its Users' compliance with the Agreement.
|
||||
1.3. Restrictions. Customer may use the Offerings only for its internal use and for the benefit of its Affiliates. Affiliates may not use the Offerings. Customer may not resell or sublicense its rights to the Offerings. Customer may not use the Offerings in an application service provider, service bureau, hosted IT service, or similar capacity for third parties.
|
||||
1.4. Benchmarking. Customer may use the Offerings to conduct internal performance testing and benchmarking studies. Customer may only publish or distribute study results with VMware's approval. Customer may submit requests to VMware by emailing benchmark@vmware.com.
|
||||
1.5. Evaluations. Evaluations are for 30 days (unless VMware specifies otherwise in writing). Customer may not have access to data in the Evaluation after it ends. Evaluations are provided "AS IS" without indemnification, support, service level commitment, or warranty of any kind, express or implied.
|
||||
2. ORDERS AND PAYMENTS.
|
||||
2.1. Orders. Orders are binding when VMware accepts them, which is deemed to occur on Delivery.
|
||||
2.2. Purchase Orders. Purchase orders do not have to be signed to be valid. Terms contained in any purchase order or other business form do not apply.
|
||||
2.3. No Refunds. All Orders are non-refundable and non-cancellable except as expressly provided in the Agreement.
|
||||
2.4. Overages. Customer must pay all fees for use of the Offerings, including amounts for add-on features and fees incurred based on usage. VMware may bill Customer directly for metered or overage fees, even if Customer originally purchased the Offerings through a VMware authorized reseller.
|
||||
2.5. Direct Orders. This section 2.5 (Direct Orders) applies only to Orders placed directly with VMware. If Customer purchases entitlements to the Offerings through a VMware authorized reseller, different terms regarding invoicing, payment, and taxes may apply.
|
||||
2.5.1. Payments. Except as listed in an Order, fees for the Offerings will be governed by the applicable price list at the time of invoicing. Customer must pay all undisputed fees and approved expenses within 30 days from the date of invoice. After 30 days, interest will accrue at the lesser of 1.5% per month or the highest lawful rate.
|
||||
2.5.2. Disputes. To dispute any fees in good faith, Customer must notify VMware in writing of the reasons for the dispute before the payment due date. The parties must negotiate in good faith to resolve the dispute as soon as reasonably practicable. VMware will not suspend or terminate Customer's access to any Offering because of any unpaid, disputed fees while Customer and VMware are negotiating to resolve the dispute.
|
||||
2.5.3. Taxes. Fees are exclusive of Taxes. Customer must pay or reimburse VMware for all Taxes. If Customer is required to withhold any Tax, Customer must gross up its payments so that VMware receives all sums due in full. If Customer's address is outside of the United States, VMware will treat the Customer's "bill to" address as the place of supply for VAT purposes.
|
||||
3. TERM.
|
||||
3.1. Term. The Agreement applies to the Offerings from the effective date of the Order until the expiration or termination of Customer's entitlement to the Offerings as set forth in this Agreement.
|
||||
3.2. Temporary Suspension. In the event of a security risk to a Service or its users, VMware may suspend Customer's use of that Service.
|
||||
3.3. Termination for Cause. Either party may terminate the Agreement (in whole or in part) or Customer's entitlement to an Offering under the Agreement effective immediately upon written notice if the other party: (a) materially breaches any provision of the Agreement and fails to cure within 30 days after receiving written notice; or (b) becomes insolvent or subject to any form of bankruptcy proceeding.
|
||||
3.4. Effect of Termination. Upon termination of the Agreement or part of it: (a) all entitlements to the applicable Offerings immediately end; (b) Customer must stop using, and destroy any copies of, those Offerings; and (c) each party must return or destroy any Confidential Information of the other party in its control (other than information that must be retained by law). Any provision that is intended by the parties to survive termination of the Agreement will survive.
|
||||
4. CONFIDENTIAL INFORMATION.
|
||||
4.1. Protection. Recipient must protect Discloser's Confidential Information with at least the same care as it protects its own Confidential Information but not less than reasonable care. Recipient may not use Discloser's Confidential Information except to exercise its rights and perform its obligations under the Agreement. Recipient may disclose Confidential Information only to Recipient's Affiliates, employees and contractors who need to know the Confidential Information for purposes of the Agreement and who have a duty of confidentiality no less restrictive than this section 4 (Confidential Information).
|
||||
4.2. Exceptions. Recipient's obligations under section 4.1 (Protection) do not apply if the information: (a) is rightfully known by Recipient at the time of disclosure without any obligation of confidentiality; (b) is lawfully disclosed to Recipient by a third party without confidentiality restrictions; (c) becomes publicly available through no fault of Recipient; or (d) is independently developed by Recipient without access to or use of Discloser's Confidential Information.
|
||||
4.3. Injunctive Relief. Nothing in the Agreement limits a party's right to seek equitable relief for breach of this section 4 (Confidential Information).
|
||||
5. OWNERSHIP.
|
||||
5.1. Customer Content. Customer retains all Intellectual Property Rights in and to Customer Content.
|
||||
5.2. VMware IP. VMware retains all Intellectual Property Rights in and to the Offerings, including any improvements, enhancements, modifications, and derivative works. If Customer provides any feedback about the Offerings, VMware may use that feedback without restriction.
|
||||
5.3. Reservation of Rights. Except as expressly stated in the Agreement, the Agreement does not grant either party any rights, implied or otherwise, to the other party's content or intellectual property.
|
||||
6. LIMITED WARRANTIES.
|
||||
6.1. Software and Cloud Services. VMware warrants that Software and Cloud Services will substantially conform with the Documentation: (a) for Software, for 90 days following Delivery; or (b) for Cloud Services, for the Subscription Term. Customer must properly install and use the Offerings without modification and in accordance with the Documentation. Customer must notify VMware of an alleged breach of this warranty within the applicable warranty period. As Customer's sole remedy for a breach of this warranty, VMware must either: (1) correct any reproducible error in the Software or Cloud Service; or (2) terminate the Software or Cloud Service and refund applicable license fees (for Software) or unused, prepaid fees (for Cloud Services).
|
||||
6.2. Professional Services and Support Services. VMware warrants that Professional Services and Support Services will be performed in a professional manner following industry standards. Customer must notify VMware within 30 days of an alleged breach of this warranty. As Customer's sole remedy for a breach of this warranty, VMware must either: (a) rectify the breach; or (b) terminate the applicable Service and refund any unused, prepaid fees for that Service.
|
||||
6.3. Disclaimer of Warranties. Except for the limited warranties in this section 6 (Limited Warranties), to the maximum extent permitted by law, VMware, for itself and on behalf of its suppliers, disclaims all warranties and conditions whether express, implied, or statutory, including any warranties of merchantability, satisfactory quality, fitness for a particular purpose, title, non-infringement, and any warranty arising from course of dealing or course of performance, relating to the Offerings. Neither VMware nor its suppliers warrant that the Offerings will operate uninterrupted, that Offerings will be free from defects or errors, or that the Offerings will meet (or are designed to meet) Customer's requirements.
|
||||
7. INDEMNIFICATION.
|
||||
7.1. Defense and Indemnification. Subject to the remainder of this section 7 (Indemnification), VMware will: (a) defend Customer against any Infringement Claim; and (b) indemnify Customer from amounts finally awarded against Customer by a court of competent jurisdiction or a government agency, or agreed to in a settlement, for the Infringement Claim.
|
||||
7.2. Requirements. Customer must provide VMware with prompt notice of any Infringement Claim and reasonably cooperate with VMware's requests for assistance. VMware will have sole control of the defense and settlement of the Infringement Claim.
|
||||
7.3. Exclusions. VMware has no obligation under this section 7 (Indemnification) with respect to an Infringement Claim based on: (a) combination of Indemnified Materials with non-VMware materials; (b) use of an older version of Indemnified Materials when use of a newer version would have avoided the infringement; (c) any modification to Indemnified Materials other than those made by VMware; (d) any Deliverable provided by VMware in accordance with Customer's specifications; (e) any claim relating to open source software or freeware technology that is not embedded by VMware into the Offerings; or (f) any Indemnified Material provided on a no-charge, beta, or evaluation basis.
|
||||
7.4. Remedies. If Indemnified Materials become, or in VMware's reasonable opinion are likely to become, the subject of an Infringement Claim, VMware must, at its option and expense, either: (a) procure the necessary rights for Customer to keep using the Indemnified Materials; or (b) modify or replace the Indemnified Materials to make them non-infringing. If those remedies are not commercially feasible, VMware may terminate Customer's entitlement to the Indemnified Materials and refund any applicable:
|
||||
(1) prepaid fees for Cloud Services or Subscription Software, prorated for the remaining portion of the then-current Subscription Term;
|
||||
(2) fees paid for Perpetual Licenses or Deliverables, less straight-line depreciation over a three-year useful life; and
|
||||
(3) unused, prepaid fees for discontinued Support Services.
|
||||
7.5. Sole Remedy. This section 7 (Indemnification) states Customer's sole remedy and VMware's entire liability for Infringement Claims.
|
||||
8. LIMITATION OF LIABILITY.
|
||||
8.1. Disclaimer. To the maximum extent permitted by law, neither party will be liable for lost profits or business opportunities, loss of use, loss of data, loss of goodwill, business interruption, or any indirect, special, incidental, or consequential damages under any theory of liability. This limitation will apply regardless of whether a party has been advised of the possibility of those damages and regardless of whether any remedy fails of its essential purpose.
|
||||
8.2. Cap on Monetary Liability. Each party's aggregate liability under this Agreement will not exceed amounts paid or payable by Customer for the Offering giving rise to the claim in the 12 months prior to the event giving rise to the claim, except for Perpetual Licenses, where each party's aggregate liability will not exceed the license fees paid for the Software giving rise to the claim. VMware's aggregate liability for an Evaluation will not exceed $5,000 USD.
|
||||
8.3. Exclusions. The limitations of liability in sections 8.1 (Disclaimer) and 8.2 (Cap on Monetary Liability) will not apply to: (a) VMware's indemnification obligations under section 7 (Indemnification); (b) either party's infringement of the other party's Intellectual Property Rights; (c) Customer's violation of section 2 of the Cloud Services Exhibit (Acceptable Use); or (d) any liability that may not be limited by law.
|
||||
8.4. Further Limitations.VMware's liability for any third-party software embedded into the Software or Cloud Services is subject to this section 8 (Limitation of Liability). VMware's suppliers have no liability under the Agreement, and Customer may not bring claims directly against them. VMware has no liability with respect to any Third-Party Content.
|
||||
9. DATA USE AND PRIVACY.
|
||||
9.1. Personal Data. If VMware acts as a processor of Personal Data, VMware will process Personal Data in accordance with the Data Processing Addendum.
|
||||
9.2. Account, Operations, and Usage Data. VMware collects Customer contact and purchase information to manage Customer's account and to fulfill Orders. VMware also processes: (a) information necessary to facilitate delivery and operation of the Offerings, verify compliance with the terms of the Agreement, invoice, and provide Support Services; and (b) configuration, performance, and usage data to improve VMware products and services, and other analytics purposes as detailed in the Offering-specific Notes. To the extent any of that data includes information that identifies an individual, VMware will process that information in accordance with VMware's Products & Services Privacy Notice available at www.vmware.com/help/privacy.html.
|
||||
9.3. Support Requests and Professional Services. Customer is responsible for taking steps necessary to protect any sensitive information or Personal Data that it provides to VMware while receiving Support Services or Professional Services. Those steps may include obfuscating or removing such information or working with VMware at the time of submission to limit disclosure.
|
||||
9.4. Required Disclosures. VMware may disclose Customer Content or Confidential Information if VMware is required by law or by order of a judicial or administrative body of competent jurisdiction (a "Demand"). Unless legally prohibited from doing so, VMware must provide Customer with notice and a copy of the Demand. If the Demand relates to Cloud Services, VMware must (i) inform the relevant authority that VMware is a service provider acting on Customer's behalf and all requests for access to Customer Content should be directed in writing to the contact Customer identifies (or if no contact is timely provided, to Customer's legal department) and (ii) only provide access to Customer Content with Customer's authorization. If Customer requests and at Customer's expense, VMware must take reasonable steps to contest the Demand. If VMware is legally prohibited from notifying Customer of the Demand, VMware must evaluate the validity of the Demand, and, if VMware does not believe the Demand is legal, VMware must challenge the Demand. VMware must limit the scope of any disclosure to the minimum information required to comply with the Demand.
|
||||
10. OPEN SOURCE SOFTWARE. Open source software is licensed to Customer under the open source software's own applicable license terms, which can be found in either the open source_licenses.txt file accompanying the Offerings, the Documentation, or at www.vmware.com/download/open_source.html. These license terms are consistent with the license granted in the Agreement and may contain additional rights benefiting Customer. The open source license terms take precedence over the Agreement to the extent that the Agreement imposes greater restrictions on Customer than the applicable open source license terms. To the extent the license for any open source software requires VMware to make the corresponding source code and/or modifications (the "Source Files") available to Customer, Customer may obtain a copy of the applicable Source Files at www.vmware.com/download/open_source.html or by sending a written request, with name and address, to: VMware, Inc., 3401 Hillview Avenue, Palo Alto, CA 94304, United States of America. All requests should clearly specify: Open Source Files Request, Attention: General Counsel. This offer to obtain a copy of the Source Files is valid for three years from the date Customer acquires its entitlement to the Offering.
|
||||
11. MISCELLANEOUS.
|
||||
11.1. Transfer and Assignment. Customer may not assign the Agreement or any Order without VMware's consent. Once validly assigned, the Agreement will bind and inure to the benefit of the parties and their respective successors and assigns.
|
||||
11.2. Notice. All notices must be in writing. Notices to Customer will be given: (a) by email to the email address associated with Customer's account, if Customer has subscribed to email notices; or (b) by posting in the VMware customer portal. Legal notices to VMware will be given to VMware, Inc., 3401 Hillview Avenue, Palo Alto, California 94304, United States of America, Attention: Legal Department.
|
||||
11.3. Waiver. Waiver of a breach of the Agreement will not constitute a waiver of any later breach.
|
||||
11.4. Severability. If any part of the Agreement is held to be invalid or unenforceable, all remaining provisions will remain in force to the extent feasible to effectuate the intent of the parties.
|
||||
11.5. Insurance. VMware will carry insurance for the term of the Agreement. VMware's Memorandum of Insurance may be viewed at www.vmware.com/agreements.
|
||||
11.6. Compliance with Laws. Each party must comply with all applicable laws.
|
||||
11.7. Export Control. The Offerings are subject to the U.S. Export Administration Regulations (including "deemed export" and "deemed re-export" regulations), and may be subject to the export control laws of other countries. Customer represents and warrants that: (a) Customer and any User, are not, and are not acting on behalf of: (1) any person who is a citizen, national, or resident of, or who is controlled by, the government of any country to which the United States has prohibited export transactions; or (2) any person or entity listed on the U.S. Treasury Department list of Specially Designated Nationals and Blocked Persons, or the U.S. Commerce Department Denied Persons List or Entity List, or any similar applicable designated persons list; (b) Customer, and any User, will not permit the Offerings to be used for any purposes prohibited by law, including any prohibited development, design, manufacture, or production of missiles or nuclear, chemical, or biological weapons; and (c) Customer, and any User, are not subject, either directly or indirectly, to any order issued by any agency of the United States government revoking or denying, in whole or in part, Customer's United States export privileges. Customer must notify VMware promptly if Customer or any User becomes subject to any order of that type.
|
||||
11.8. Governing Law. The Agreement is governed by the laws of the State of California and U.S. federal laws, if the billing address for Customer's Order is in the United States, and by the laws of Ireland if the billing address for Customer's Order is outside the United States. Conflict of law rules are expressly disclaimed. The United Nations Convention on Contracts for the International Sale of Goods does not apply.
|
||||
11.9. U.S. Public Sector End User. If Customer is a U.S. Public Sector End User, the U.S. Public Sector Exhibit available at www.vmware.com/agreements supersedes or modifies the referenced provisions of the Agreement.
|
||||
11.10. Third Party Rights. Other than as expressly stated, the Agreement does not create any rights for any person who is not a party to it. Only persons who are parties to the Agreement may enforce or rely on any of its terms.
|
||||
11.11. Force Majeure. Except for Customer's payment obligations, neither party will be liable for any delay or failure to perform due to any cause beyond the party's reasonable control, including labor disputes, industrial disturbances, systemic utility failures, acts of nature, pandemics, embargoes, riots, government orders, acts of terrorism, or war.
|
||||
11.12. No Agency. Nothing in the Agreement is intended to constitute a fiduciary relationship, agency, joint venture, partnership, or trust between the parties. No party has authority to bind the other party.
|
||||
11.13. Translation. This non-English version of these General Terms is provided only as a courtesy, and Customer's use of the Offerings is governed by the English version of these General Terms, published at www.vmware.com/agreements.
|
||||
11.14. Counterparts. The Agreement may be signed electronically or in counterparts, in which case each signed copy will be deemed an original as though both signatures appeared on the same document.
|
||||
11.15. Entire Agreement. The Agreement contains the entire agreement of the parties and supersedes all previous or contemporaneous communications, representations, proposals, commitments, understandings, and agreements, whether written or oral, between the parties regarding its subject matter. The Agreement may be amended only in writing and signed by both parties.
|
||||
12. DEFINITIONS.
|
||||
Affiliate means an entity that is directly or indirectly controlled by, is under common control with, or controls that party, where "control" means an ownership, voting, or similar interest representing more than 50% of the total interests outstanding of that entity at that time.
|
||||
Cloud Service means the VMware cloud service specified in Customer's Order.
|
||||
Cloud Services Guide means the then-current VMware Cloud Services Guide, available at www.vmware.com/agreements.
|
||||
Confidential Information means information or materials provided by a party ("Discloser") to the other party ("Recipient") that: (a) is in tangible form and labelled "confidential" or similar; or (b) information which a reasonable person knew or should have known to be confidential. Confidential Information includes: (1) license keys; (2) VMware pricing, product roadmaps or strategic marketing plans; (3) non-public materials relating to the Offerings; and (4) Customer Login Credentials.
|
||||
Customer means the entity identified in the Order as "Customer".
|
||||
Customer Content means content uploaded by Customer or any User into the Cloud Service or provided to VMware as a part of Support Services, but does not include Third-Party Content or account information. For purposes of this definition, "content" means any data, including all text, sound, video, or image files, and software (including machine images).
|
||||
Data Processing Addendum means the then-current VMware Data Processing Addendum, available at www.vmware.com/agreements.
|
||||
Deliverables means any reports, analyses, scripts, templates, code, or other work results delivered by VMware as specified in the applicable SOW for Professional Services.
|
||||
Delivery means: (a) for Cloud Services, when VMware emails the Login Credentials to the email address associated with Customer's account; (b) for Software, when VMware notifies Customer of availability of Software for download; (c) for Support Services, upon VMware's issuance of an invoice for those Support Services; (d) for Professional Services, as specified in the applicable SOW; (e) for purchasing program credits, when VMware makes the fund balance available in the applicable portal; and (f) for shipping and delivery of physical objects, Ex Works VMware's regional fulfillment facility (INCOTERMS 2020(TM)).
|
||||
Documentation means the product documentation describing the features, functionality, and use of the Offerings published and updated by VMware from time to time at docs.vmware.com.
|
||||
Evaluation means an Offering (or part of an Offering) made available free of charge, for evaluation, trial, proof of concept, or similar purpose.
|
||||
Exhibits means the exhibits to these General Terms (Software, Cloud Services, Professional Services, U.S. Federal, and VMware Entities) available at www.vmware.com/agreements.
|
||||
Indemnified Materials means the Cloud Services, Software, and Deliverables.
|
||||
Infringement Claim means any claim by a third party that the Indemnified Materials infringe any patent, trademark, or copyright of that third party, or misappropriate a trade secret (only to the extent that misappropriation is not a result of Customer's actions).
|
||||
Intellectual Property Rights means all worldwide intellectual property rights, including copyrights, trademarks, service marks, trade secrets, know-how, inventions, patents, patent applications, moral rights, and all other proprietary rights, whether registered or unregistered.
|
||||
Login Credentials means any passwords, authentication keys, or security credentials that enable Customer's access to and management of the Cloud Service.
|
||||
Offering(s) means, collectively, Services or Software.
|
||||
Offering-specific Notes means the applicable license notes or services notes found in the Product Guide, the Cloud Services Guide, and the Support Services Guide.
|
||||
Order means an enterprise order, SOW, quote, or other ordering document for Offerings, issued by Customer to VMware or to Customer's VMware authorized reseller and accepted by VMware described in section 2 of these General Terms (Orders and Payments).
|
||||
Perpetual License means a license to the Software with a perpetual term.
|
||||
Personal Data is defined in the Data Processing Addendum.
|
||||
Product Guide means VMware's then-current Product Guide available at www.vmware.com/agreements.
|
||||
Professional Services means those services described in the applicable SOW.
|
||||
Service Level Agreement means the then-current version of the applicable service level agreement for a Cloud Service, available at www.vmware.com/agreements.
|
||||
Service(s) means Cloud Services, Support Services, or Professional Services.
|
||||
Software means the VMware computer programs that Customer licenses under an Order, together with any related software code VMware provides as part of Support Services and that is not subject to a separate license agreement.
|
||||
SOW means a written agreement between Customer and VMware containing project-specific details of the Professional Services or VMware online datasheet.
|
||||
Subscription Software means Software that is licensed for a specific term.
|
||||
Subscription Term means the period Customer is permitted to use a Cloud Service or Subscription Software, stated in the applicable Order. For any on-demand Cloud Services, Subscription Term means the period during which Customer uses the Cloud Service.
|
||||
Support Services means VMware support and subscription services that are purchased under an Order or included with purchase of Subscription Software or Cloud Services.
|
||||
Support Services Guide means VMware's then-current Support Services Guide, available at www.vmware.com/agreements.
|
||||
Tax means any sales, consumption, VAT, GST, use, gross receipts, business and occupation, withholding, and other taxes (other than taxes on VMware income), export and import fees, customs duties, and similar fees imposed by any government or other authority.
|
||||
Third-Party Agent means a third party delivering information technology services to Customer under a contract with Customer.
|
||||
Third-Party Content means content provided by a third party that interoperates with a Cloud Service, but that is not part of the Cloud Service. Third-Party Content is optional and is subject to the third-party terms accompanying the Third-Party Content.
|
||||
U.S. Public Sector End User means a U.S. Federal End User or a U.S. State or Local Government End User, as those terms are defined in the U.S. Public Sector Exhibit.
|
||||
User means an employee, contractor, or Third-Party Agent that Customer authorizes to use the Offerings as permitted under the Agreement or under Customer's Login Credentials.
|
||||
VMware means VMware, Inc., a Delaware corporation, if the billing address for the Order is in the United States, or VMware International Unlimited Company, a company organized and existing under the laws of Ireland, if the billing address for the Order is outside the United States, except if the billing address for the Order is in the United Kingdom, Australia, or New Zealand or the Pacific Islands, in which case VMware means the applicable entity identified in the VMware Entities Exhibit found at www.vmware.com/agreements.
|
162
LICENSE.md
162
LICENSE.md
|
@ -1,162 +0,0 @@
|
|||
PhotonOS v3.0 (and greater versions) Copyright © VMware, Inc. 2014-2018
|
||||
|
||||
The files of PhotonOS version 3.0 (and greater versions) are licensed under the terms of the Apache License v2.0 or alternatively under the terms of the GNU General Public License (GPL) v2 UNLESS otherwise noted at the beginning of the file or a LICENSE file present in a directory subtree declares a separate license.
|
||||
|
||||
The terms of the Apache License v2.0 and GPL v2 licenses are set forth below.
|
||||
|
||||
Apache License v2.0
|
||||
|
||||
## **Apache License, Version 2.0**
|
||||
|
||||
## January 2004
|
||||
|
||||
[http://www.apache.org/licenses/](http://www.apache.org/licenses/)LICENSE-2.0
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
**1. Definitions**.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
||||
|
||||
**2. Grant of Copyright License**. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
||||
|
||||
**3. Grant of Patent License**. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
||||
|
||||
**4. Redistribution**. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
||||
|
||||
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
||||
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
|
||||
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
||||
4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
||||
|
||||
**5. Submission of Contributions**. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
||||
|
||||
**6. Trademarks**. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
**7. Disclaimer of Warranty**. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
||||
|
||||
**8. Limitation of Liability**. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
||||
|
||||
**9. Accepting Warranty or Additional Liability**. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
# **APPENDIX: How to apply the Apache License to your work**
|
||||
|
||||
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
||||
See the License for the specific language governing permissions and
|
||||
|
||||
limitations under the License.
|
||||
|
||||
GPL v2
|
||||
|
||||
### **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.
|
||||
|
||||
### **TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION**
|
||||
|
||||
1. **1.** 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. **2.** 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.
|
||||
|
||||
1. **3.** 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 chargeto 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.
|
||||
|
||||
1. **4.** 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:
|
||||
|
||||
1. **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,
|
||||
|
||||
1. **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,
|
||||
|
||||
1. **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.
|
||||
|
||||
1. **5.** 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.
|
||||
|
||||
1. **6.** 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.
|
||||
|
||||
1. **7.** 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.
|
||||
|
||||
1. **8.** 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.
|
10
Makefile
10
Makefile
|
@ -1,10 +0,0 @@
|
|||
ifndef CONF
|
||||
CONF := build-config.json
|
||||
endif
|
||||
|
||||
%:
|
||||
@if [ -n "$(shell echo $(BUILD_EXTRA_PKGS) | grep -Ew "enable|yes|True")" ]; then\
|
||||
python3 build.py -c $(CONF) -t extra-packages;\
|
||||
else\
|
||||
python3 build.py -c $(CONF) -t $@;\
|
||||
fi
|
|
@ -1,7 +0,0 @@
|
|||
Photon
|
||||
Copyright 2015-2020 VMware, Inc. All Rights Reserved.
|
||||
|
||||
This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in compliance with the Apache 2.0 License.
|
||||
|
||||
This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license, as noted in the LICENSE file.
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
Photon
|
||||
Copyright 2015-2020 VMware, Inc. All Rights Reserved.
|
||||
|
||||
This product is licensed to you under the GNU GENERAL PUBLIC LICENSE Version 2 license (the "License"). You may not use this product except in compliance with the GPL 2.0 License.
|
||||
|
||||
This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license, as noted in the LICENSE file.
|
|
@ -1,57 +0,0 @@
|
|||
diff -Naurp gcc-7.3.0-orig/gcc/c/c-typeck.c gcc-7.3.0/gcc/c/c-typeck.c
|
||||
--- gcc-7.3.0-orig/gcc/c/c-typeck.c 2017-06-08 12:12:38.381833000 -0700
|
||||
+++ gcc-7.3.0/gcc/c/c-typeck.c 2018-04-24 14:44:50.222592671 -0700
|
||||
@@ -48,6 +48,8 @@ along with GCC; see the file COPYING3.
|
||||
#include "c-family/c-ubsan.h"
|
||||
#include "cilk.h"
|
||||
#include "gomp-constants.h"
|
||||
+#include "plugin-api.h"
|
||||
+#include "plugin.h"
|
||||
#include "spellcheck-tree.h"
|
||||
#include "gcc-rich-location.h"
|
||||
|
||||
@@ -5452,6 +5454,12 @@ build_c_cast (location_t loc, tree type,
|
||||
return error_mark_node;
|
||||
}
|
||||
|
||||
+ {
|
||||
+ tree cast_info[] {type, TREE_TYPE(value)};
|
||||
+ invoke_plugin_callbacks (PLUGIN_TYPE_CAST, cast_info);
|
||||
+ }
|
||||
+
|
||||
+
|
||||
if (type == TYPE_MAIN_VARIANT (TREE_TYPE (value)))
|
||||
{
|
||||
if (RECORD_OR_UNION_TYPE_P (type))
|
||||
diff -Naurp gcc-7.3.0-orig/gcc/plugin.c gcc-7.3.0/gcc/plugin.c
|
||||
--- gcc-7.3.0-orig/gcc/plugin.c 2017-03-21 04:50:18.693898000 -0700
|
||||
+++ gcc-7.3.0/gcc/plugin.c 2018-04-24 14:46:13.956372418 -0700
|
||||
@@ -471,6 +471,7 @@ register_callback (const char *plugin_na
|
||||
case PLUGIN_EARLY_GIMPLE_PASSES_END:
|
||||
case PLUGIN_NEW_PASS:
|
||||
case PLUGIN_INCLUDE_FILE:
|
||||
+ case PLUGIN_TYPE_CAST:
|
||||
{
|
||||
struct callback_info *new_callback;
|
||||
if (!callback)
|
||||
@@ -551,6 +552,7 @@ invoke_plugin_callbacks_full (int event,
|
||||
case PLUGIN_EARLY_GIMPLE_PASSES_END:
|
||||
case PLUGIN_NEW_PASS:
|
||||
case PLUGIN_INCLUDE_FILE:
|
||||
+ case PLUGIN_TYPE_CAST:
|
||||
{
|
||||
/* Iterate over every callback registered with this event and
|
||||
call it. */
|
||||
diff -Naurp gcc-7.3.0-orig/gcc/plugin.def gcc-7.3.0/gcc/plugin.def
|
||||
--- gcc-7.3.0-orig/gcc/plugin.def 2017-01-01 04:07:43.905435000 -0800
|
||||
+++ gcc-7.3.0/gcc/plugin.def 2018-04-24 14:47:02.209408557 -0700
|
||||
@@ -99,6 +99,9 @@ DEFEVENT (PLUGIN_NEW_PASS)
|
||||
as a const char* pointer. */
|
||||
DEFEVENT (PLUGIN_INCLUDE_FILE)
|
||||
|
||||
+/* Called when expression is casted to some type. */
|
||||
+DEFEVENT (PLUGIN_TYPE_CAST)
|
||||
+
|
||||
/* When adding a new hard-coded plugin event, don't forget to edit in
|
||||
file plugin.c the functions register_callback and
|
||||
invoke_plugin_callbacks_full accordingly! */
|
|
@ -1,270 +0,0 @@
|
|||
%define _use_internal_dependency_generator 0
|
||||
Summary: Contains the GNU compiler collection
|
||||
Name: gcc
|
||||
Version: 7.3.0
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+
|
||||
URL: http://gcc.gnu.org
|
||||
Group: Development/Tools
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
Source0: http://ftp.gnu.org/gnu/gcc/%{name}-%{version}/%{name}-%{version}.tar.xz
|
||||
%define sha1 gcc=9689b9cae7b2886fdaa08449a26701f095c04e48
|
||||
Patch0: PLUGIN_TYPE_CAST.patch
|
||||
|
||||
BuildRequires: wget
|
||||
BuildRequires: curl
|
||||
Requires: libstdc++-devel = %{version}-%{release}
|
||||
Requires: libgcc-devel = %{version}-%{release}
|
||||
Requires: libgomp-devel = %{version}-%{release}
|
||||
Requires: libgcc-atomic = %{version}-%{release}
|
||||
Requires: gmp
|
||||
%if %{with_check}
|
||||
BuildRequires: autogen
|
||||
BuildRequires: dejagnu
|
||||
%endif
|
||||
|
||||
%description
|
||||
The GCC package contains the GNU compiler collection,
|
||||
which includes the C and C++ compilers.
|
||||
|
||||
%package -n gfortran
|
||||
Summary: GNU Fortran compiler.
|
||||
Group: Development/Tools
|
||||
%description -n gfortran
|
||||
The gfortran package contains GNU Fortran compiler.
|
||||
|
||||
%package -n libgcc
|
||||
Summary: GNU C Library
|
||||
Group: System Environment/Libraries
|
||||
%description -n libgcc
|
||||
The libgcc package contains GCC shared libraries for gcc.
|
||||
|
||||
%package -n libgcc-atomic
|
||||
Summary: GNU C Library for atomic counter updates
|
||||
Group: System Environment/Libraries
|
||||
Requires: libgcc = %{version}-%{release}
|
||||
%description -n libgcc-atomic
|
||||
The libgcc package contains GCC shared libraries for atomic counter updates.
|
||||
|
||||
%package -n libgcc-devel
|
||||
Summary: GNU C Library
|
||||
Group: Development/Libraries
|
||||
Requires: libgcc = %{version}-%{release}
|
||||
%description -n libgcc-devel
|
||||
The libgcc package contains GCC shared libraries for gcc .
|
||||
This package contains development headers and static library for libgcc.
|
||||
|
||||
%package -n libstdc++
|
||||
Summary: GNU C Library
|
||||
Group: System Environment/Libraries
|
||||
Requires: libgcc = %{version}-%{release}
|
||||
%description -n libstdc++
|
||||
This package contains the GCC Standard C++ Library v3, an ongoing project to implement the ISO/IEC 14882:1998 Standard C++ library.
|
||||
|
||||
%package -n libstdc++-devel
|
||||
Summary: GNU C Library
|
||||
Group: Development/Libraries
|
||||
Requires: libstdc++ = %{version}-%{release}
|
||||
%description -n libstdc++-devel
|
||||
This is the GNU implementation of the standard C++ libraries.
|
||||
This package includes the headers files and libraries needed for C++ development.
|
||||
|
||||
%package -n libgomp
|
||||
Summary: GNU C Library
|
||||
Group: System Environment/Libraries
|
||||
%description -n libgomp
|
||||
An implementation of OpenMP for the C, C++, and Fortran 95 compilers in the GNU Compiler Collection.
|
||||
|
||||
%package -n libgomp-devel
|
||||
Summary: Development headers and static library for libgomp
|
||||
Group: Development/Libraries
|
||||
Requires: libgomp = %{version}-%{release}
|
||||
%description -n libgomp-devel
|
||||
An implementation of OpenMP for the C, C++, and Fortran 95 compilers in the GNU Compiler Collection.
|
||||
This package contains development headers and static library for libgomp
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
# deactivate FORTIFY_SOURCE=2 from hardening
|
||||
sed -i '/*cpp:/s/^/# /' `dirname $(gcc --print-libgcc-file-name)`/../specs
|
||||
sed -i '/Ofast:-D_FORTIFY_SOURCE=2/s/^/# /' `dirname $(gcc --print-libgcc-file-name)`/../specs
|
||||
# deactivate no-pie for gcc binaries
|
||||
sed -i '/^NO_PIE_CFLAGS = /s/@NO_PIE_CFLAGS@//' gcc/Makefile.in
|
||||
|
||||
install -vdm 755 ../gcc-build
|
||||
%build
|
||||
|
||||
export glibcxx_cv_c99_math_cxx98=yes glibcxx_cv_c99_math_cxx11=yes
|
||||
|
||||
./contrib/download_prerequisites
|
||||
cd ../gcc-build
|
||||
SED=sed \
|
||||
../%{name}-%{version}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--enable-shared \
|
||||
--enable-threads=posix \
|
||||
--enable-__cxa_atexit \
|
||||
--enable-clocale=gnu \
|
||||
--enable-languages=c,c++,fortran\
|
||||
--disable-multilib \
|
||||
--disable-bootstrap \
|
||||
--enable-linker-build-id \
|
||||
--enable-plugin \
|
||||
--with-system-zlib
|
||||
# --disable-silent-rules
|
||||
make %{?_smp_mflags}
|
||||
%install
|
||||
pushd ../gcc-build
|
||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||
install -vdm 755 %{buildroot}/%_lib
|
||||
ln -sv %{_bindir}/cpp %{buildroot}/%{_lib}
|
||||
ln -sv gcc %{buildroot}%{_bindir}/cc
|
||||
install -vdm 755 %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib}
|
||||
mv -v %{buildroot}%{_lib64dir}/*gdb.py %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib}
|
||||
chmod 755 %{buildroot}/%{_lib64dir}/libgcc_s.so.1
|
||||
rm -rf %{buildroot}%{_infodir}
|
||||
popd
|
||||
%find_lang %{name} --all-name
|
||||
|
||||
%check
|
||||
ulimit -s 32768
|
||||
# deactivate PCH tests is ASLR is on (due to bug in pch)
|
||||
test `cat /proc/sys/kernel/randomize_va_space` -ne 0 && rm gcc/testsuite/gcc.dg/pch/pch.exp
|
||||
# deactivate security hardening for tests
|
||||
rm -f $(dirname $(gcc -print-libgcc-file-name))/../specs
|
||||
# run only gcc tests
|
||||
cd ../gcc-build/gcc
|
||||
make %{?_smp_mflags} check-gcc
|
||||
# Only 1 FAIL is OK
|
||||
[ `grep ^FAIL testsuite/gcc/gcc.sum | wc -l` -ne 1 -o `grep ^XPASS testsuite/gcc/gcc.sum | wc -l` -ne 0 ] && exit 1 ||:
|
||||
[ `grep "^FAIL: gcc.dg/cpp/trad/include.c (test for excess errors)" testsuite/gcc/gcc.sum | wc -l` -ne 1 ] && exit 1 ||:
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%{_lib}/cpp
|
||||
# Executables
|
||||
%exclude %{_bindir}/*gfortran
|
||||
%{_bindir}/*
|
||||
# Libraries
|
||||
%{_lib64dir}/*
|
||||
%ifarch x86_64
|
||||
%exclude %{_libexecdir}/gcc/x86_64-pc-linux-gnu/%{version}/f951
|
||||
%endif
|
||||
%ifarch aarch64
|
||||
%exclude %{_libexecdir}/gcc/aarch64-unknown-linux-gnu/%{version}/f951
|
||||
%endif
|
||||
%{_libdir}/gcc/*
|
||||
# Library executables
|
||||
%{_libexecdir}/gcc/*
|
||||
# Man pages
|
||||
%{_mandir}/man1/gcov.1.gz
|
||||
%{_mandir}/man1/gcov-dump.1.gz
|
||||
%{_mandir}/man1/gcov-tool.1.gz
|
||||
%{_mandir}/man1/gcc.1.gz
|
||||
%{_mandir}/man1/g++.1.gz
|
||||
%{_mandir}/man1/cpp.1.gz
|
||||
%{_mandir}/man7/*.gz
|
||||
%{_datadir}/gdb/*
|
||||
|
||||
%exclude %{_lib64dir}/libgcc*
|
||||
%exclude %{_lib64dir}/libstdc++*
|
||||
%exclude %{_lib64dir}/libgomp*
|
||||
|
||||
%files -n gfortran
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*gfortran
|
||||
%{_mandir}/man1/gfortran.1.gz
|
||||
%ifarch x86_64
|
||||
%{_libexecdir}/gcc/x86_64-pc-linux-gnu/%{version}/f951
|
||||
%endif
|
||||
%ifarch aarch64
|
||||
%{_libexecdir}/gcc/aarch64-unknown-linux-gnu/%{version}/f951
|
||||
%endif
|
||||
|
||||
%files -n libgcc
|
||||
%defattr(-,root,root)
|
||||
%{_lib64dir}/libgcc_s.so.*
|
||||
|
||||
%files -n libgcc-atomic
|
||||
%defattr(-,root,root)
|
||||
%{_lib64dir}/libatomic.so*
|
||||
|
||||
%files -n libgcc-devel
|
||||
%defattr(-,root,root)
|
||||
%{_lib64dir}/libgcc_s.so
|
||||
|
||||
|
||||
%files -n libstdc++
|
||||
%defattr(-,root,root)
|
||||
%{_lib64dir}/libstdc++.so.*
|
||||
%dir %{_datarootdir}/gcc-%{version}/python/libstdcxx
|
||||
%{_datarootdir}/gcc-%{version}/python/libstdcxx/*
|
||||
|
||||
%files -n libstdc++-devel
|
||||
%defattr(-,root,root)
|
||||
%{_lib64dir}/libstdc++.so
|
||||
%{_lib64dir}/libstdc++.la
|
||||
|
||||
%{_includedir}/c++/*
|
||||
|
||||
%files -n libgomp
|
||||
%defattr(-,root,root)
|
||||
%{_lib64dir}/libgomp*.so.*
|
||||
|
||||
%files -n libgomp-devel
|
||||
%defattr(-,root,root)
|
||||
%{_lib64dir}/libgomp.a
|
||||
%{_lib64dir}/libgomp.la
|
||||
%{_lib64dir}/libgomp.so
|
||||
%{_lib64dir}/libgomp.spec
|
||||
|
||||
%changelog
|
||||
* Fri Sep 14 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 7.3.0-2
|
||||
- Use download_prerequisites script to statically link gcc with
|
||||
- specific versions of dependent libraries.
|
||||
* Wed Aug 01 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 7.3.0-1
|
||||
- Update to version 7.3.0 to get retpoline support.
|
||||
* Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-7
|
||||
- Aarch64 support
|
||||
* Mon Oct 02 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-6
|
||||
- Added smp_mflags for parallel build
|
||||
* Mon Sep 25 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-5
|
||||
- Enable elfdeps for libgcc_s to generate libgcc_s.so.1(*)(64bit) provides
|
||||
* Mon Aug 28 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-4
|
||||
- Fix makecheck
|
||||
* Tue Aug 15 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-3
|
||||
- Fix compilation issue for glibc-2.26
|
||||
* Tue Aug 15 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-2
|
||||
- Improve make check
|
||||
* Thu Mar 9 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-1
|
||||
- Update version to 6.3
|
||||
* Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 5.3.0-6
|
||||
- Enabled fortran.
|
||||
* Wed Feb 22 2017 Alexey Makhalov <amakhalov@vmware.com> 5.3.0-5
|
||||
- Added new plugin entry point: PLUGIN_TYPE_CAST (.patch)
|
||||
* Thu Sep 8 2016 Alexey Makhalov <amakhalov@vmware.com> 5.3.0-4
|
||||
- Enable plugins and linker build id.
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.3.0-3
|
||||
- GA - Bump release of all rpms
|
||||
* Tue May 17 2016 Anish Swaminathan <anishs@vmware.com> 5.3.0-2
|
||||
- Change package dependencies
|
||||
* Mon Mar 28 2016 Alexey Makhalov <amakhalov@vmware.com> 5.3.0-1
|
||||
- Update version to 5.3
|
||||
* Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 4.8.2-6
|
||||
- Handled locale files with macro find_lang
|
||||
* Mon Nov 02 2015 Vinay Kulkarni <kulkarniv@vmware.com> 4.8.2-5
|
||||
- Put libatomic.so into its own package.
|
||||
* Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 4.8.2-4
|
||||
- Updated group.
|
||||
* Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 4.8.2-3
|
||||
- Update according to UsrMove.
|
||||
* Fri May 15 2015 Divya Thaluru <dthaluru@vmware.com> 4.8.2-2
|
||||
- Packaging .la files
|
||||
* Tue Apr 01 2014 baho-utot <baho-utot@columbus.rr.com> 4.8.2-1
|
||||
- Initial build. First version
|
|
@ -1,35 +0,0 @@
|
|||
From af5c725b8109ce83fc04ef0f8bf6aaf0b50c0441 Mon Sep 17 00:00:00 2001
|
||||
From: Magnus Ihse Bursie <ihse@openjdk.org>
|
||||
Date: Thu, 30 Jan 2020 11:08:30 +0100
|
||||
Subject: [PATCH] 8237879: make 4.3 breaks build
|
||||
|
||||
Reviewed-by: erikj, tbell
|
||||
---
|
||||
make/common/MakeBase.gmk | 9 +++++----
|
||||
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/make/common/MakeBase.gmk b/make/common/MakeBase.gmk
|
||||
index 8de519fc606..221e9455960 100644
|
||||
--- a/make/common/MakeBase.gmk
|
||||
+++ b/make/common/MakeBase.gmk
|
||||
@@ -525,15 +525,16 @@ DependOnVariableFileName = \
|
||||
# Param 2 - (optional) name of file to store value in
|
||||
DependOnVariableHelper = \
|
||||
$(strip \
|
||||
- $(eval -include $(call DependOnVariableFileName, $1, $2)) \
|
||||
+ $(eval $1_filename := $(call DependOnVariableFileName, $1, $2)) \
|
||||
+ $(if $(wildcard $($1_filename)), $(eval include $($1_filename))) \
|
||||
$(if $(call equals, $(strip $($1)), $(strip $($1_old))),,\
|
||||
- $(call MakeDir, $(dir $(call DependOnVariableFileName, $1, $2))) \
|
||||
+ $(call MakeDir, $(dir $($1_filename))) \
|
||||
$(if $(findstring $(LOG_LEVEL), trace), \
|
||||
$(info NewVariable $1: >$(strip $($1))<) \
|
||||
$(info OldVariable $1: >$(strip $($1_old))<)) \
|
||||
$(call WriteFile, $1_old:=$(call DoubleDollar,$(call EscapeHash,$($1))), \
|
||||
- $(call DependOnVariableFileName, $1, $2))) \
|
||||
- $(call DependOnVariableFileName, $1, $2) \
|
||||
+ $($1_filename))) \
|
||||
+ $($1_filename) \
|
||||
)
|
||||
|
||||
# Main macro
|
|
@ -1,253 +0,0 @@
|
|||
%define _use_internal_dependency_generator 0
|
||||
%global security_hardening none
|
||||
%define jdk_major_version 1.10.0
|
||||
%define subversion 23
|
||||
Summary: OpenJDK
|
||||
Name: openjdk10
|
||||
Version: 1.10.0.23
|
||||
Release: 7%{?dist}
|
||||
License: GNU GPL
|
||||
URL: https://openjdk.java.net
|
||||
Group: Development/Tools
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
Source0: http://www.java.net/download/openjdk/jdk10/jdk10/openjdk-%{version}.tar.gz
|
||||
%define sha1 openjdk-1.10.0=d0b6193fd1687b23fb7553b62d32f0e7e0527ea8
|
||||
Patch0: build-with-latest-make.patch
|
||||
BuildArch: x86_64
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: which
|
||||
BuildRequires: zip
|
||||
BuildRequires: unzip
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: ca-certificates
|
||||
BuildRequires: chkconfig
|
||||
BuildRequires: fontconfig-devel freetype2-devel glib-devel harfbuzz-devel
|
||||
Requires: openjre10 = %{version}-%{release}
|
||||
Requires: chkconfig
|
||||
Obsoletes: openjdk <= %{version}
|
||||
AutoReqProv: no
|
||||
%define ExtraBuildRequires icu-devel, cups, cups-devel, xorg-proto-devel, libXtst, libXtst-devel, libXfixes, libXfixes-devel, libXi, libXi-devel, openjdk, openjre, icu, alsa-lib, alsa-lib-devel, xcb-proto, libXdmcp-devel, libXau-devel, util-macros, xtrans, libxcb-devel, proto, libXdmcp, libxcb, libXau, xtrans-devel, libX11, libX11-devel, libXext, libXext-devel, libICE-devel, libSM, libICE, libSM-devel, libXt, libXmu, libXt-devel, libXmu-devel, libXrender, libXrender-devel
|
||||
%define bootstrapjdkversion 1.8.0.112
|
||||
|
||||
%description
|
||||
The OpenJDK package installs java class library and javac java compiler.
|
||||
|
||||
%package -n openjre10
|
||||
Summary: Java runtime environment
|
||||
AutoReqProv: no
|
||||
Obsoletes: openjre <= %{version}
|
||||
Requires: chkconfig
|
||||
Requires: libstdc++
|
||||
%description -n openjre10
|
||||
It contains the libraries files for Java runtime environment
|
||||
|
||||
%package doc
|
||||
Summary: Documentation and demo applications for openjdk
|
||||
Group: Development/Languages/Java
|
||||
Obsoletes: openjdk-doc <= %{version}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description doc
|
||||
It contains the documentation and demo applications for openjdk
|
||||
|
||||
%package src
|
||||
Summary: OpenJDK Java classes for developers
|
||||
Group: Development/Languages/Java
|
||||
Obsoletes: openjdk-src <= %{version}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description src
|
||||
This package provides the runtime library class sources.
|
||||
|
||||
%prep -p exit
|
||||
# Using autosetup is not feasible
|
||||
%setup -qn openjdk-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
unset JAVA_HOME &&
|
||||
ENABLE_HEADLESS_ONLY="true" &&
|
||||
sh configure \
|
||||
--with-target-bits=64 \
|
||||
--with-boot-jdk=/var/opt/OpenJDK-%bootstrapjdkversion-bin \
|
||||
--enable-headless-only \
|
||||
--with-extra-cxxflags="-Wno-error -std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse" \
|
||||
--with-extra-cflags="-fno-delete-null-pointer-checks -Wno-error -fno-lifetime-dse -fcommon" \
|
||||
--with-freetype-include=/usr/include/freetype2 \
|
||||
--with-freetype-lib=/usr/lib \
|
||||
--with-stdc++lib=dynamic \
|
||||
--disable-warnings-as-errors
|
||||
|
||||
mkdir /usr/share/java -p
|
||||
make \
|
||||
DISABLE_HOTSPOT_OS_VERSION_CHECK=ok \
|
||||
SCTP_WERROR= \
|
||||
BUILD_HEADLESS_ONLY=1 \
|
||||
OPENJDK_TARGET_OS=linux \
|
||||
STRIP_POLICY=no_strip \
|
||||
POST_STRIP_CMD="" \
|
||||
LOG=trace
|
||||
|
||||
%install
|
||||
unset JAVA_HOME &&
|
||||
# make doesn't support _smp_mflags
|
||||
make install
|
||||
|
||||
install -vdm755 %{buildroot}%{_libdir}/jvm/OpenJDK-%{jdk_major_version}
|
||||
chown -R root:root %{buildroot}%{_libdir}/jvm/OpenJDK-%{jdk_major_version}
|
||||
install -vdm755 %{buildroot}%{_bindir}
|
||||
mv /usr/local/jvm/openjdk-10-internal/* %{buildroot}%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/
|
||||
mv build/linux-x86_64-normal-server-release/images/jre %{buildroot}%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/
|
||||
cp README LICENSE ASSEMBLY_EXCEPTION %{buildroot}%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/
|
||||
|
||||
%post
|
||||
alternatives --install %{_bindir}/javac javac %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javac 2000 \
|
||||
--slave %{_bindir}/appletviewer appletviewer %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/appletviewer \
|
||||
--slave %{_bindir}/idlj idlj %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/idlj \
|
||||
--slave %{_bindir}/jaotc jaotc %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jaotc \
|
||||
--slave %{_bindir}/jar jar %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jar \
|
||||
--slave %{_bindir}/jarsigner jarsigner %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jarsigner \
|
||||
--slave %{_bindir}/jhsdb jhsdb %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jhsdb \
|
||||
--slave %{_bindir}/jimage jimage %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jimage \
|
||||
--slave %{_bindir}/jlink jlink %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jlink \
|
||||
--slave %{_bindir}/jmod jmod %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jmod \
|
||||
--slave %{_bindir}/javadoc javadoc %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javadoc \
|
||||
--slave %{_bindir}/javah javah %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javah \
|
||||
--slave %{_bindir}/javap javap %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javap \
|
||||
--slave %{_bindir}/jcmd jcmd %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jcmd \
|
||||
--slave %{_bindir}/jdeprscan jdeprscan %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jdeprscan \
|
||||
--slave %{_bindir}/jconsole jconsole %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jconsole \
|
||||
--slave %{_bindir}/jdb jdb %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jdb \
|
||||
--slave %{_bindir}/jdeps jdeps %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jdeps \
|
||||
--slave %{_bindir}/jinfo jinfo %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jinfo \
|
||||
--slave %{_bindir}/jmap jmap %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jmap \
|
||||
--slave %{_bindir}/jps jps %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jps \
|
||||
--slave %{_bindir}/jrunscript jrunscript %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jrunscript \
|
||||
--slave %{_bindir}/jstack jstack %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jstack \
|
||||
--slave %{_bindir}/jstat jstat %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jstat \
|
||||
--slave %{_bindir}/jstatd jstatd %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jstatd \
|
||||
--slave %{_bindir}/rmic rmic %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/rmic \
|
||||
--slave %{_bindir}/schemagen schemagen %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/schemagen \
|
||||
--slave %{_bindir}/serialver serialver %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/serialver \
|
||||
--slave %{_bindir}/wsgen wsgen %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/wsgen \
|
||||
--slave %{_bindir}/wsimport wsimport %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/wsimport \
|
||||
--slave %{_bindir}/xjc xjc %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/xjc
|
||||
/sbin/ldconfig
|
||||
|
||||
%post -n openjre10
|
||||
alternatives --install %{_bindir}/java java %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/java 2000 \
|
||||
--slave %{_libdir}/jvm/jre jre %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre \
|
||||
--slave %{_bindir}/jjs jjs %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/jjs \
|
||||
--slave %{_bindir}/keytool keytool %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/keytool \
|
||||
--slave %{_bindir}/orbd orbd %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/orbd \
|
||||
--slave %{_bindir}/pack200 pack200 %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/pack200 \
|
||||
--slave %{_bindir}/rmid rmid %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/rmid \
|
||||
--slave %{_bindir}/rmiregistry rmiregistry %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/rmiregistry \
|
||||
--slave %{_bindir}/servertool servertool %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/servertool \
|
||||
--slave %{_bindir}/tnameserv tnameserv %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/tnameserv \
|
||||
--slave %{_bindir}/unpack200 unpack200 %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/unpack200
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
# Do alternative remove only in case of uninstall
|
||||
if [ $1 -eq 0 ]
|
||||
then
|
||||
alternatives --remove javac %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javac
|
||||
fi
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun -n openjre10
|
||||
# Do alternative remove only in case of uninstall
|
||||
if [ $1 -eq 0 ]
|
||||
then
|
||||
alternatives --remove java %{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/bin/java
|
||||
fi
|
||||
/sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/ASSEMBLY_EXCEPTION
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/LICENSE
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/README
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/release
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/lib
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/include/
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/idlj
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jaotc
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jar
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jhsdb
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jimage
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jarsigner
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jdeprscan
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javac
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javadoc
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javah
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/javap
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jcmd
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jconsole
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jdb
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jdeps
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jinfo
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jlink
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jmod
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jmap
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jps
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jshell
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jrunscript
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jstack
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jstat
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jstatd
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/rmic
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/schemagen
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/serialver
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/wsgen
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/wsimport
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/xjc
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/conf
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jmods
|
||||
|
||||
%files -n openjre10
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/jvm/OpenJDK-%{jdk_major_version}
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/jre/
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/java
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/keytool
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/orbd
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/pack200
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/jjs
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/rmid
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/rmiregistry
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/servertool
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/tnameserv
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/bin/unpack200
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/man/
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/legal/
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/demo
|
||||
|
||||
%files src
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/jvm/OpenJDK-%{jdk_major_version}/lib/src.zip
|
||||
|
||||
%changelog
|
||||
* Thu Jan 14 2021 Alexey Makhalov <amakhalov@vmware.com> 1.10.0.23-7
|
||||
- GCC-10 support.
|
||||
* Mon Sep 14 2020 Prashant S Chauhan <psinghchauha@vmware.com> 1.10.0.23-6
|
||||
- Fix build issue with make-4.3
|
||||
* Tue Aug 11 2020 Ankit Jain <ankitja@vmware.com> 1.10.0.23-5
|
||||
- Added a check in %postun to avoid alternatives --remove
|
||||
- after new version is installed.
|
||||
- Do alternative remove only in case of uninstall
|
||||
* Thu Sep 05 2019 Ankit Jain <ankitja@vmware.com> 1.10.0.23-4
|
||||
- Divided version:majorversion+subversion to remove specific
|
||||
- version java dependency from other packages
|
||||
* Mon Nov 19 2018 Ajay Kaher <akaher@vmware.com> 1.10.0.23-3
|
||||
- Add BuildArch
|
||||
* Mon Oct 29 2018 Alexey Makhalov <amakhalov@vmware.com> 1.10.0.23-2
|
||||
- Use ExtraBuildRequires
|
||||
* Mon Apr 23 2018 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.10.0.23-1
|
||||
- Initial build. First version
|
|
@ -1,20 +0,0 @@
|
|||
From 5cffb1ed6a7f5afe74e4384d59f1670be29a7930 Mon Sep 17 00:00:00 2001
|
||||
From: elena <elena@rategia.com>
|
||||
Date: Tue, 24 Apr 2018 13:44:30 +0300
|
||||
Subject: [PATCH] Explain that the orderness of the result is system-dependant
|
||||
|
||||
|
||||
|
||||
--- a/Doc/library/glob.rst_org 2019-10-31 10:11:19.177511543 +0000
|
||||
+++ b/Doc/library/glob.rst 2019-10-31 10:12:07.145513846 +0000
|
||||
@@ -31,7 +31,8 @@ For example, ``'[?]'`` matches the chara
|
||||
a string containing a path specification. *pathname* can be either absolute
|
||||
(like :file:`/usr/src/Python-1.5/Makefile`) or relative (like
|
||||
:file:`../../Tools/\*/\*.gif`), and can contain shell-style wildcards. Broken
|
||||
- symlinks are included in the results (as in the shell).
|
||||
+ symlinks are included in the results (as in the shell). Whether or not the
|
||||
+ results are sorted depends on the file system.
|
||||
|
||||
|
||||
.. function:: iglob(pathname)
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
--- a/Lib/ssl.py 2018-04-30 04:17:33.000000000 +0530
|
||||
+++ b/Lib/ssl.py 2018-08-17 05:48:06.389881269 +0530
|
||||
@@ -146,6 +146,11 @@ from socket import SOL_SOCKET, SO_TYPE
|
||||
import base64 # for DER-to-PEM translation
|
||||
import errno
|
||||
import warnings
|
||||
+try:
|
||||
+ from ipaddr import IPAddress
|
||||
+except ImportError:
|
||||
+ # ipaddr is missing. Make ip address cert match functionality to behave as before.
|
||||
+ def IPAddress(*_args): raise ValueError("Not supported")
|
||||
|
||||
if _ssl.HAS_TLS_UNIQUE:
|
||||
CHANNEL_BINDING_TYPES = ['tls-unique']
|
||||
@@ -251,7 +250,15 @@ def _dnsname_match(dn, hostname, max_wil
|
||||
pat = re.compile(r'\A' + r'\.'.join(pats) + r'\Z', re.IGNORECASE)
|
||||
return pat.match(hostname)
|
||||
|
||||
+def _ipaddress_match(ipname, host_ip):
|
||||
+ """Exact matching of IP addresses.
|
||||
|
||||
+ RFC 6125 explicitly doesn't define an algorithm for this
|
||||
+ (section 1.7.2 - "Out of Scope").
|
||||
+ """
|
||||
+ # OpenSSL may add a trailing newline to a subjectAltName's IP address
|
||||
+ ip = IPAddress(ipname.rstrip())
|
||||
+ return ip == host_ip
|
||||
def match_hostname(cert, hostname):
|
||||
"""Verify that *cert* (in decoded format as returned by
|
||||
SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125
|
||||
@@ -264,6 +271,13 @@ def match_hostname(cert, hostname):
|
||||
raise ValueError("empty or no certificate, match_hostname needs a "
|
||||
"SSL socket or SSL context with either "
|
||||
"CERT_OPTIONAL or CERT_REQUIRED")
|
||||
+
|
||||
+ try:
|
||||
+ host_ip = IPAddress(hostname)
|
||||
+ except ValueError:
|
||||
+ # Not an IP address (common case)
|
||||
+ host_ip = None
|
||||
+
|
||||
dnsnames = []
|
||||
san = cert.get('subjectAltName', ())
|
||||
for key, value in san:
|
||||
@@ -271,6 +285,10 @@ def match_hostname(cert, hostname):
|
||||
if _dnsname_match(value, hostname):
|
||||
return
|
||||
dnsnames.append(value)
|
||||
+ elif key == 'IP Address':
|
||||
+ if host_ip is not None and _ipaddress_match(value, host_ip):
|
||||
+ return
|
||||
+ dnsnames.append(value)
|
||||
if not dnsnames:
|
||||
# The subject is only checked when there is no dNSName entry
|
||||
# in subjectAltName
|
|
@ -1,17 +0,0 @@
|
|||
--- a/Lib/cgi.py 2014-06-29 19:05:24.000000000 -0700
|
||||
+++ b/Lib/cgi.py 2015-02-05 18:03:52.273922307 -0800
|
||||
@@ -1,13 +1,5 @@
|
||||
-#! /usr/local/bin/python
|
||||
+#! /usr/bin/python
|
||||
|
||||
-# NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is
|
||||
-# intentionally NOT "/usr/bin/env python". On many systems
|
||||
-# (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
|
||||
-# scripts, and /usr/local/bin is the default directory where Python is
|
||||
-# installed, so /usr/bin/env would be unable to find python. Granted,
|
||||
-# binary installations by Linux vendors often install Python in
|
||||
-# /usr/bin. So let those vendors patch cgi.py to match their choice
|
||||
-# of installation.
|
||||
|
||||
"""Support module for CGI (Common Gateway Interface) scripts.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
diff -rupr a/Lib/platform.py b/Lib/platform.py
|
||||
--- a/Lib/platform.py 2015-12-05 11:47:01.000000000 -0800
|
||||
+++ b/Lib/platform.py 2017-01-20 16:39:55.628824665 -0800
|
||||
@@ -261,7 +261,7 @@ _release_version = re.compile(r'([^0-9]+
|
||||
_supported_dists = (
|
||||
'SuSE', 'debian', 'fedora', 'redhat', 'centos',
|
||||
'mandrake', 'mandriva', 'rocks', 'slackware', 'yellowdog', 'gentoo',
|
||||
- 'UnitedLinux', 'turbolinux')
|
||||
+ 'UnitedLinux', 'turbolinux', 'photon')
|
||||
|
||||
def _parse_release_file(firstline):
|
||||
|
|
@ -1,370 +0,0 @@
|
|||
Summary: A high-level scripting language
|
||||
Name: python2
|
||||
Version: 2.7.18
|
||||
Release: 1%{?dist}
|
||||
License: PSF
|
||||
URL: http://www.python.org/
|
||||
Group: System Environment/Programming
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
Source0: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
|
||||
%define sha1 Python=678d4cf483a1c92efd347ee8e1e79326dc82810b
|
||||
Patch0: cgi.patch
|
||||
Patch1: added-pyopenssl-ipaddress-certificate-validation.patch
|
||||
Patch2: python2-support-photon-platform.patch
|
||||
Patch3: CVE-2019-17514.patch
|
||||
BuildRequires: pkg-config >= 0.28
|
||||
BuildRequires: bzip2-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: expat-devel >= 2.1.0
|
||||
BuildRequires: libffi-devel >= 3.0.13
|
||||
BuildRequires: sqlite-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: readline-devel
|
||||
# cross compilation requires native python2 installed
|
||||
%define BuildRequiresNative python2
|
||||
Requires: openssl
|
||||
Requires: python2-libs = %{version}-%{release}
|
||||
Provides: python-sqlite
|
||||
Provides: python(abi)
|
||||
Provides: /bin/python
|
||||
Provides: /bin/python2
|
||||
%if %{with_check}
|
||||
BuildRequires: iana-etc
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Python 2 package contains the Python development environment. It
|
||||
is useful for object-oriented programming, writing scripts,
|
||||
prototyping large programs or developing entire applications. This
|
||||
version is for backward compatibility with other dependent packages.
|
||||
|
||||
%package libs
|
||||
Summary: The libraries for python runtime
|
||||
Group: Applications/System
|
||||
Requires: sqlite-libs
|
||||
Requires: expat >= 2.1.0
|
||||
Requires: libffi >= 3.0.13
|
||||
Requires: ncurses
|
||||
Requires: (coreutils or toybox)
|
||||
Requires: gdbm
|
||||
Requires: bzip2-libs
|
||||
%global __requires_exclude ^(/usr/bin/python|python\\(abi\\) = 2\\.7)$
|
||||
|
||||
# Needed for ctypes, to load libraries, worked around for Live CDs size
|
||||
# Requires: binutils
|
||||
|
||||
%description libs
|
||||
The python interpreter can be embedded into applications wanting to
|
||||
use python as an embedded scripting language. The python-libs package
|
||||
provides the libraries needed for this.
|
||||
|
||||
%package -n python-xml
|
||||
Summary: XML libraries for python runtime
|
||||
Group: Applications/System
|
||||
Requires: python2-libs = %{version}-%{release}
|
||||
|
||||
%description -n python-xml
|
||||
The python-xml package provides the libraries needed for XML manipulation.
|
||||
|
||||
%package -n python-curses
|
||||
Summary: Python module interface for NCurses Library
|
||||
Group: Applications/System
|
||||
Requires: python2-libs = %{version}-%{release}
|
||||
Requires: ncurses
|
||||
|
||||
%description -n python-curses
|
||||
The python-curses package provides interface for ncurses library.
|
||||
|
||||
%package devel
|
||||
Summary: The libraries and header files needed for Python development.
|
||||
Group: Development/Libraries
|
||||
Requires: python2 = %{version}-%{release}
|
||||
Requires: expat-devel >= 2.1.0
|
||||
# Needed here because of the migration of Makefile from -devel to the main
|
||||
# package
|
||||
Conflicts: python2 < %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The Python programming language's interpreter can be extended with
|
||||
dynamically loaded extensions and can be embedded in other programs.
|
||||
This package contains the header files and libraries needed to do
|
||||
these types of tasks.
|
||||
|
||||
Install python-devel if you want to develop Python extensions. The
|
||||
python package will also need to be installed. You'll probably also
|
||||
want to install the python-docs package, which contains Python
|
||||
documentation.
|
||||
|
||||
%package tools
|
||||
Summary: A collection of development tools included with Python.
|
||||
Group: Development/Tools
|
||||
Requires: python2 = %{version}-%{release}
|
||||
|
||||
%description tools
|
||||
The Python package includes several development tools that are used
|
||||
to build python programs.
|
||||
|
||||
%package test
|
||||
Summary: Regression tests package for Python.
|
||||
Group: Development/Tools
|
||||
Requires: python2 = %{version}-%{release}
|
||||
|
||||
%description test
|
||||
The test package contains all regression tests for Python as well as the modules test.support and test.regrtest. test.support is used to enhance your tests while test.regrtest drives the testing suite.
|
||||
|
||||
%prep
|
||||
%setup -q -n Python-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
export OPT="${CFLAGS}"
|
||||
if [ %{_host} != %{_build} ]; then
|
||||
sed -i 's/\tPYTHONPATH/\t-PYTHONPATH/' Makefile.pre.in
|
||||
export ac_cv_buggy_getaddrinfo=no
|
||||
export ac_cv_file__dev_ptmx=yes
|
||||
export ac_cv_file__dev_ptc=no
|
||||
fi
|
||||
%configure \
|
||||
CFLAGS="%{optflags}" \
|
||||
CXXFLAGS="%{optflags}" \
|
||||
--enable-shared \
|
||||
--with-ssl \
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--enable-unicode=ucs4 \
|
||||
--with-dbmliborder=gdbm:ndbm
|
||||
make %{?_smp_mflags}
|
||||
%install
|
||||
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
|
||||
make DESTDIR=%{buildroot} install
|
||||
chmod -v 755 %{buildroot}%{_libdir}/libpython2.7.so.1.0
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
# Remove unused stuff
|
||||
find $RPM_BUILD_ROOT/ -name "*~"|xargs rm -f
|
||||
find $RPM_BUILD_ROOT/ -name ".cvsignore"|xargs rm -f
|
||||
find . -name "*~"|xargs rm -f
|
||||
find . -name ".cvsignore"|xargs rm -f
|
||||
#zero length
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python2.7/site-packages/modulator/Templates/copyright
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python2.7/LICENSE.txt
|
||||
|
||||
find %{buildroot}%{_libdir} -name '*.pyc' -delete
|
||||
find %{buildroot}%{_libdir} -name '*.pyo' -delete
|
||||
|
||||
%post
|
||||
if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
|
||||
#if we are in chroot
|
||||
ln -sf /usr/bin/python2 /usr/bin/python
|
||||
elif [ ! -f "/usr/bin/python3" ]; then
|
||||
ln -sf /usr/bin/python2 /usr/bin/python
|
||||
else
|
||||
#if we are updating only python2, then
|
||||
#we should set python link to python3
|
||||
#as previously python was link to python2
|
||||
ln -sf /usr/bin/python3 /usr/bin/python
|
||||
fi
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
#if python3 is not present and we uninstall python2
|
||||
#we will delete the symlink
|
||||
if [ ! -f "/usr/bin/python3" ]; then
|
||||
if [ $1 -eq 0 ] ; then
|
||||
rm /usr/bin/python
|
||||
fi
|
||||
else
|
||||
#if we are downgrading/uninstalling python2,
|
||||
#and python3 is present. then
|
||||
#we should set python link to python3
|
||||
ln -sf /usr/bin/python3 /usr/bin/python
|
||||
fi
|
||||
/sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%check
|
||||
LANG=en_US.UTF-8 make %{?_smp_mflags} test
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc LICENSE README
|
||||
%{_bindir}/pydoc*
|
||||
%{_bindir}/python*
|
||||
%{_mandir}/*/*
|
||||
|
||||
%dir %{_libdir}/python2.7
|
||||
%dir %{_libdir}/python2.7/site-packages
|
||||
|
||||
%exclude %{_libdir}/python2.7/bsddb/test
|
||||
%exclude %{_libdir}/python2.7/ctypes/test
|
||||
%exclude %{_libdir}/python2.7/distutils/tests
|
||||
%exclude %{_libdir}/python2.7/email/test
|
||||
%exclude %{_libdir}/python2.7/json/tests
|
||||
%exclude %{_libdir}/python2.7/sqlite3/test
|
||||
%exclude %{_libdir}/python2.7/idlelib/idle_test
|
||||
%exclude %{_libdir}/python2.7/test
|
||||
#%exclude %{_libdir}/python2.7/unittest
|
||||
%exclude %{_libdir}/python2.7/lib-dynload/_ctypes_test.so
|
||||
%ghost %{_bindir}/python
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE README
|
||||
/usr/lib/python2.7
|
||||
%{_libdir}/libpython2.7.so.*
|
||||
%exclude %{_libdir}/python2.7/bsddb/test
|
||||
%exclude %{_libdir}/python2.7/ctypes/test
|
||||
%exclude %{_libdir}/python2.7/distutils/tests
|
||||
%exclude %{_libdir}/python2.7/distutils/command/wininst*exe
|
||||
%exclude %{_libdir}/python2.7/email/test
|
||||
%exclude %{_libdir}/python2.7/json/tests
|
||||
%exclude %{_libdir}/python2.7/sqlite3/test
|
||||
%exclude %{_libdir}/python2.7/idlelib/idle_test
|
||||
%exclude %{_libdir}/python2.7/test
|
||||
%exclude %{_libdir}/python2.7/lib-dynload/_ctypes_test.so
|
||||
%exclude %{_libdir}/python2.7/config
|
||||
%exclude %{_libdir}/python2.7/config/*
|
||||
%exclude %{_libdir}/libpython2.7.so
|
||||
%exclude %{_libdir}/python2.7/xml
|
||||
%exclude %{_libdir}/python2.7/lib-dynload/pyexpat.so
|
||||
|
||||
%files -n python-xml
|
||||
%{_libdir}/python2.7/xml
|
||||
%{_libdir}/python2.7/lib-dynload/pyexpat.so
|
||||
|
||||
%files -n python-curses
|
||||
%{_libdir}/python2.7/curses
|
||||
%{_libdir}/python2.7/lib-dynload/_curses*.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
/usr/include/*
|
||||
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
|
||||
%dir %{_libdir}/python2.7/config
|
||||
%{_libdir}/python2.7/config/*
|
||||
%exclude %{_libdir}/python2.7/config/python.o
|
||||
%{_libdir}/libpython2.7.so
|
||||
%{_libdir}/pkgconfig/python-2.7.pc
|
||||
%{_libdir}/pkgconfig/python.pc
|
||||
%{_libdir}/pkgconfig/python2.pc
|
||||
%exclude %{_bindir}/smtpd*.py*
|
||||
%exclude %{_bindir}/2to3*
|
||||
%exclude %{_bindir}/idle*
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,755)
|
||||
#%doc Tools/modulator/README.modulator
|
||||
#%{_libdir}/python2.7/lib2to3
|
||||
#%{_libdir}/python2.7/site-packages/modulator
|
||||
%{_bindir}/2to3*
|
||||
%exclude %{_bindir}/smtpd.py
|
||||
%exclude %{_bindir}/idle*
|
||||
|
||||
%files test
|
||||
%{_libdir}/python2.7/test/*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 24 2020 Gerrit Photon <photon-checkins@vmware.com> 2.7.18-1
|
||||
- Automatic Version Bump
|
||||
* Sat Dec 07 2019 Tapas Kundu <tkundu@vmware.com> 2.7.17-1
|
||||
- Update to 2.7.17
|
||||
- Exclude /usr/bin/python
|
||||
- Link python to python2 if python3 doesnt exists
|
||||
- Fix make check
|
||||
* Tue Nov 26 2019 Alexey Makhalov <amakhalov@vmware.com> 2.7.16-3
|
||||
- Cross compilation support
|
||||
* Tue Nov 05 2019 Tapas Kundu <tkundu@vmware.com> 2.7.16-2
|
||||
- Fix for CVE-2019-17514
|
||||
* Sun Oct 20 2019 Tapas Kundu <tkundu@vmware.com> 2.7.16-1
|
||||
- Updated to 2.7.16
|
||||
- Fix for CVE-2019-16935
|
||||
- Fix for CVE-2018-20852
|
||||
* Mon Sep 16 2019 Tapas Kundu <tkundu@vmware.com> 2.7.15-8
|
||||
- Fix for CVE-2019-16056
|
||||
* Wed May 22 2019 Tapas Kundu <tkundu@vmware.com> 2.7.15-7
|
||||
- Patched reworked changes for CVE-2019-9948
|
||||
- Patch for CVE-2019-9740
|
||||
- Fix for CVE-2019-10160
|
||||
* Thu Mar 28 2019 Tapas Kundu <tkundu@vmware.com> 2.7.15-6
|
||||
- Fix for CVE-2019-9948
|
||||
* Tue Mar 12 2019 Tapas Kundu <tkundu@vmware.com> 2.7.15-5
|
||||
- Added fix for CVE-2019-9636
|
||||
* Thu Jan 10 2019 Alexey Makhalov <amakhalov@vmware.com> 2.7.15-4
|
||||
- Mode libpython2.7.so to python2-libs
|
||||
- Mass removal python2 dependency from python2-libs
|
||||
* Fri Dec 21 2018 Tapas Kundu <tkundu@vmware.com> 2.7.15-3
|
||||
- Fix for CVE-2018-14647
|
||||
* Mon Sep 17 2018 Dweep Advani <dadvani@vmware.com> 2.7.15-2
|
||||
- Remove vulnerable Windows installers from python-libs rpm
|
||||
* Mon Aug 20 2018 Dweep Advani <dadvani@vmware.com> 2.7.15-1
|
||||
- Update to version 2.7.15
|
||||
* Mon Dec 04 2017 Xiaolin Li <xiaolinl@vmware.com> 2.7.13-12
|
||||
- Fix CVE-2017-1000030
|
||||
* Mon Dec 04 2017 Xiaolin Li <xiaolinl@vmware.com> 2.7.13-11
|
||||
- Fix CVE-2017-1000158
|
||||
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 2.7.13-10
|
||||
- Requires coreutils or toybox
|
||||
- Requires bzip2-libs
|
||||
* Fri Sep 15 2017 Bo Gan <ganb@vmware.com> 2.7.13-9
|
||||
- Remove devpts mount in check
|
||||
* Mon Aug 28 2017 Chang Lee <changlee@vmware.com> 2.7.13-8
|
||||
- Add %check with pty
|
||||
* Wed Jul 12 2017 Xiaolin Li <xiaolinl@vmware.com> 2.7.13-7
|
||||
- Add python2-test package.
|
||||
* Sun Jun 04 2017 Bo Gan <ganb@vmware.com> 2.7.13-6
|
||||
- Fix dependency for libs
|
||||
* Tue May 16 2017 Kumar Kaushik <kaushikk@vmware.com> 2.7.13-5
|
||||
- Fixing python issue 29188, backport random.c from 3.5 to 2.7.
|
||||
* Fri Apr 28 2017 Harish Udaiya <hudaiyakumar@vmware.com> 2.7.13-4
|
||||
- Excluded unwanted binaries from python2-tools.
|
||||
* Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.7.13-3
|
||||
- Python2-devel requires expat-devel.
|
||||
* Fri Mar 24 2017 Xiaolin Li <xiaolinl@vmware.com> 2.7.13-2
|
||||
- Provides /bin/python2.
|
||||
* Wed Mar 22 2017 Divya Thaluru <dthaluru@vmware.com> 2.7.13-1
|
||||
- Updated to version 2.7.13
|
||||
* Fri Jan 20 2017 Dheeraj Shetty <dheerajs@vmware.com> 2.7.11-11
|
||||
- Added patch to support Photon OS
|
||||
* Wed Nov 16 2016 Alexey Makhalov <ppadmavilasom@vmware.com> 2.7.11-10
|
||||
- Use sqlite-{devel,libs}
|
||||
* Thu Oct 27 2016 Anish Swaminathan <anishs@vmware.com> 2.7.11-9
|
||||
- Patch for CVE-2016-5636
|
||||
* Mon Oct 10 2016 ChangLee <changlee@vmware.com> 2.7.11-8
|
||||
- Modified %check
|
||||
* Wed Sep 14 2016 Divya Thaluru <dthaluru@vmware.com> 2.7.11-7
|
||||
- Improvised pyopenssl patch
|
||||
* Wed Sep 7 2016 Divya Thaluru <dthaluru@vmware.com> 2.7.11-6
|
||||
- Added patch to python openssl to validate certificates by ipaddress
|
||||
* Mon Jun 20 2016 Divya Thaluru <dthaluru@vmware.com> 2.7.11-5
|
||||
- Added stack-protector flag for ncurses module
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.7.11-4
|
||||
- GA - Bump release of all rpms
|
||||
* Tue Apr 26 2016 Nick Shi <nshi@vmware.com> 2.7.11-3
|
||||
- Adding readline module into python2-libs
|
||||
|
||||
* Wed Apr 13 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.7.11-2
|
||||
- update python to require python-libs
|
||||
|
||||
* Thu Jan 28 2016 Anish Swaminathan <anishs@vmware.com> 2.7.11-1
|
||||
- Upgrade version
|
||||
|
||||
* Fri Jan 22 2016 Divya Thaluru <dthaluru@vmware.com> 2.7.9-5
|
||||
- Seperate python-curses package from python-libs package
|
||||
|
||||
* Thu Oct 29 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> 2.7.9-4
|
||||
- Seperate python-xml package from python-libs package
|
||||
|
||||
* Fri Jun 19 2015 Alexey Makhalov <amakhalov@vmware.com> 2.7.9-3
|
||||
- Provide /bin/python
|
||||
|
||||
* Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 2.7.9-2
|
||||
- Adding coreutils package to run time required package
|
||||
|
||||
* Mon Apr 6 2015 Divya Thaluru <dthaluru@vmware.com> 2.7.9-1
|
||||
- Initial build. First version
|
59
README.md
59
README.md
|
@ -1,59 +0,0 @@
|
|||
![Photon](http://storage.googleapis.com/project-photon/vmw-logo-photon.svg "VMware Photon")
|
||||
|
||||
# Photon OS: Linux Container Host
|
||||
|
||||
### Contents
|
||||
- [What is Photon OS](#what-is-photon-os)
|
||||
- [Getting Photon OS](#getting-photon-os)
|
||||
- [Getting Started](#getting-started)
|
||||
- [Contributing](#contributing)
|
||||
- [License](#license)
|
||||
- [Photon OS Resources](#photon-os-resources)
|
||||
|
||||
## What is Photon OS?
|
||||
Photon OS™ is an open source Linux container host optimized for cloud-native applications, cloud platforms, and VMware infrastructure. Photon OS provides a secure run-time environment for efficiently running containers. Some of the key highlights of Photon OS are:
|
||||
|
||||
- **Optimized for VMware hypervisor:** The Linux kernel is tuned for performance when Photon OS runs on VMware ESXi.
|
||||
|
||||
- **Support for containers:** Photon OS includes the Docker daemon and works with container orchestration frameworks, such as Mesos and Kubernetes.
|
||||
|
||||
- **Efficient lifecycle management:** Photon OS is easy to manage, patch, and update, using the [tdnf package manager](https://github.com/vmware/photon/blob/master/docs/photon-admin-guide.md#tiny-dnf-for-package-management) and the [Photon Management Daemon Next Gen (pmd-next-gen)](https://github.com/vmware/pmd-next-gen).
|
||||
|
||||
- **Security hardened:** Photon OS provides secure and up-to-date kernel and other packages, and its policies are designed to govern the system securely.
|
||||
|
||||
For an overview of Photon OS, see [https://vmware.github.io/photon/](https://vmware.github.io/photon/)
|
||||
|
||||
## Getting Photon OS
|
||||
|
||||
Photon OS binaries are available in a number of formats, including ISO, OVA and cloud images such as Amazon AMI, Google Cloud GCE image and Azure VHD.
|
||||
|
||||
For download instructions and links to Photon OS binaries, go to the [Download Guide](https://github.com/vmware/photon/wiki/Downloading-Photon-OS).
|
||||
|
||||
*Photon OS 4.0 GA is here!*
|
||||
--------------------------
|
||||
Photon OS 4.0 provides support for the Real Time flavor of kernel linux-rt, SELinux , installer improvements, PMD role management improvements and critical updates to OSS packages including linux kernel, systemd, and glibc.
|
||||
|
||||
For an overview of changes, see [What's New in Photon OS 4.0](https://github.com/vmware/photon/wiki/What-is-New-in-Photon-OS-4.0).
|
||||
|
||||
## Getting Started
|
||||
Begin your Photon OS journey by browsing our extensive guides on getting started in the [Photon OS Wiki](https://github.com/vmware/photon/wiki).
|
||||
|
||||
## Contributing
|
||||
The Photon OS project team welcomes contributions from the community.
|
||||
|
||||
If you wish to contribute code and you have not signed our Contributor License Agreement (CLA), our CLA-bot will take you through the process and update the issue when you open a [Pull Request](https://help.github.com/articles/creating-a-pull-request). If you have questions about the CLA process, see our CLA [FAQ](https://cla.vmware.com/faq) or contact us through the GitHub issue tracker.
|
||||
|
||||
To help you get started making contributions to Photon OS, we have collected some helpful best practices in the [Contributing guidelines](https://github.com/vmware/photon/blob/master/contributing.md).
|
||||
|
||||
Before you start to code, we recommend discussing your plans through a GitHub issue or discuss it first with the official project [maintainers](https://github.com/vmware/photon/blob/dev/AUTHORS.md) via the [#photon Slack Channel](https://vmwarecode.slack.com/messages/photon/), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.
|
||||
|
||||
## License
|
||||
The Photon OS ISO and OVA images are distributed under the [Photon OS EULA](https://github.com/vmware/photon/blob/master/EULA.txt).
|
||||
|
||||
With the exception of the 'libtdnf' source code, Photon OS source code is distributed under GNU GPL v2. The 'libtdnf' source code is distributed under GNU LGPL v2.1. For more details, please refer to the [Photon OS Open Source License file](https://github.com/vmware/photon/blob/master/LICENSE.md).
|
||||
|
||||
## Photon OS Resources
|
||||
|
||||
- **Documentation**: The Photon OS [Documentation](https://vmware.github.io/photon/docs/) provides information about how to install, configure, and use VMware Photon OS™.
|
||||
- **Security Updates**: Visit [Security-Advisories](https://github.com/vmware/photon/wiki/Security-Advisories).
|
||||
- **Vagrant box**: An official Vagrant box is available on Hashicorp Atlas, to get started: `vagrant init vmware/photon`. A plugin to support Photon OS guests in Vagrant is available at [https://github.com/vmware/vagrant-guests-photon](https://github.com/vmware/vagrant-guests-photon). Some users have found that our Vagrant box requires VirtualBox 4.3 or later. If you have issues, please check your version.
|
|
@ -1,99 +0,0 @@
|
|||
Summary: configuration database system used by many GNOME applications
|
||||
Name: GConf
|
||||
Version: 3.2.6
|
||||
Release: 2%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: http://gnome.org
|
||||
Group: System Environment/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/3.2/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=35f5f659f9d03f7531a7102adacbda0eb310d8a55a831c768c91a82e07dae21247726e00e0e411f63b1de9ade0f042ded572a3ea4a4b2ad3135231f344540b58
|
||||
|
||||
BuildRequires: intltool
|
||||
BuildRequires: shadow
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: dbus-glib-devel
|
||||
BuildRequires: polkit-devel
|
||||
|
||||
Requires: libxml2
|
||||
Requires: dbus-glib
|
||||
Requires: polkit
|
||||
|
||||
Requires(post): grep
|
||||
|
||||
%description
|
||||
The GConf package contains a configuration database system used by many GNOME applications.
|
||||
|
||||
%package devel
|
||||
Summary: Header and development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libxml2-devel
|
||||
Requires: dbus-glib-devel
|
||||
Requires: polkit-devel
|
||||
|
||||
%description devel
|
||||
It contains the libraries and header files to create applications
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--disable-orbit \
|
||||
--enable-defaults-service \
|
||||
--disable-static
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
ln -s gconf.xml.defaults %{buildroot}%{_sysconfdir}/gconf/gconf.xml.system
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
if [ $1 -gt 1 ]; then
|
||||
if ! fgrep -q gconf.xml.system %{_sysconfdir}/gconf/2/path; then
|
||||
sed -i -e 's@xml:readwrite:$(HOME)/.gconf@&\n\n# Location for system-wide settings.\nxml:readonly:/etc/gconf/gconf.xml.system@' %{_sysconfdir}/gconf/2/path
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%check
|
||||
cd tests
|
||||
make %{?_smp_mflags}
|
||||
fns=$(find -name 'test*' -executable -maxdepth 1)
|
||||
for fn in $fns; do
|
||||
$fn || :
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}
|
||||
%{_sysconfdir}/
|
||||
%{_libexecdir}/
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/GConf
|
||||
%{_libdir}/gio
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/
|
||||
%{_datadir}
|
||||
|
||||
%changelog
|
||||
* Wed Apr 19 2023 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 3.2.6-2
|
||||
- Bump version as a part of libxml2 upgrade
|
||||
* Thu Dec 15 2022 Gerrit Photon <photon-checkins@vmware.com> 3.2.6-1
|
||||
- Automatic Version Bump
|
||||
* Wed Nov 15 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.2.5-2
|
||||
- Updated build requires
|
||||
* Thu Jun 4 2015 Alexey Makhalov <amakhalov@vmware.com> 3.2.5-1
|
||||
- initial version
|
|
@ -1,189 +0,0 @@
|
|||
%global VER 7.1.0
|
||||
%global Patchlevel 47
|
||||
%global major_version 7
|
||||
|
||||
Name: ImageMagick
|
||||
Version: 7.1.0.47
|
||||
Release: 4%{?dist}
|
||||
Summary: An X application for displaying and manipulating images
|
||||
Group: Development/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
License: ImageMagick
|
||||
Url: http://www.imagemagick.org
|
||||
|
||||
Source0: https://www.imagemagick.org/download/%{name}-%{VER}-%{Patchlevel}.tar.gz
|
||||
%define sha512 %{name}=dae53c80b1fec69e8a570e82553197e2a9f3b1d0dd9b7cdf30e2731e044a83bef82912a5d339c0470d1e41bdf343f2cbd97376d2ef986d33c05bc6c87a705d0d
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: libgomp
|
||||
Requires: bzip2-libs
|
||||
Requires: glibc
|
||||
Requires: zlib
|
||||
|
||||
%description
|
||||
ImageMagick is an image display and manipulation tool for the X
|
||||
Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF,
|
||||
and Photo CD image formats. It can resize, rotate, sharpen, color
|
||||
reduce, or add special effects to an image, and when finished you can
|
||||
either save the completed work in the original format or a different
|
||||
one. ImageMagick also includes command line programs for creating
|
||||
animated or transparent .gifs, creating composite images, creating
|
||||
thumbnail images, and more.
|
||||
|
||||
ImageMagick is one of your choices if you need a program to manipulate
|
||||
and display images. If you want to develop your own applications
|
||||
which use ImageMagick code or APIs, you need to install
|
||||
ImageMagick-devel as well.
|
||||
|
||||
%package devel
|
||||
Summary: Library links and header files for ImageMagick app development
|
||||
Requires: pkg-config
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
ImageMagick-devel contains the library links and header files you'll
|
||||
need to develop ImageMagick applications. ImageMagick is an image
|
||||
manipulation program.
|
||||
|
||||
If you want to create applications that will use ImageMagick code or
|
||||
APIs, you need to install ImageMagick-devel as well as ImageMagick.
|
||||
You do not need to install it if you just want to use ImageMagick,
|
||||
however.
|
||||
|
||||
%package libs
|
||||
Summary: ImageMagick libraries to link with
|
||||
|
||||
%description libs
|
||||
This packages contains a shared libraries to use within other applications.
|
||||
|
||||
%package doc
|
||||
Summary: ImageMagick html documentation
|
||||
|
||||
%description doc
|
||||
ImageMagick documentation, this package contains usage (for the
|
||||
commandline tools) and API (for the libraries) documentation in html format.
|
||||
Note this documentation can also be found on the ImageMagick website:
|
||||
http://www.imagemagick.org/
|
||||
|
||||
%package c++
|
||||
Summary: ImageMagick Magick++ library (C++ bindings)
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: libstdc++
|
||||
Requires: libgomp
|
||||
Requires: bzip2-libs
|
||||
Requires: glibc
|
||||
Requires: zlib
|
||||
|
||||
%description c++
|
||||
This package contains the Magick++ library, a C++ binding to the ImageMagick
|
||||
graphics manipulation library.
|
||||
|
||||
Install ImageMagick-c++ if you want to use any applications that use Magick++.
|
||||
|
||||
%package c++-devel
|
||||
Summary: C++ bindings for the ImageMagick library
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
Requires: pkg-config
|
||||
|
||||
%description c++-devel
|
||||
ImageMagick-devel contains the static libraries and header files you'll
|
||||
need to develop ImageMagick applications using the Magick++ C++ bindings.
|
||||
ImageMagick is an image manipulation program.
|
||||
|
||||
If you want to create applications that will use Magick++ code
|
||||
or APIs, you'll need to install ImageMagick-c++-devel, ImageMagick-devel and
|
||||
ImageMagick.
|
||||
You don't need to install it if you just want to use ImageMagick, or if you
|
||||
want to develop/compile applications using the ImageMagick C interface,
|
||||
however.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{VER}-%{Patchlevel}
|
||||
|
||||
%build
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
rm %{buildroot}%{_libdir}/*.a
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}
|
||||
%make_build check
|
||||
rm PerlMagick/demo/Generic.ttf
|
||||
%endif
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/[a-z]*
|
||||
%{_mandir}/man[145]/[a-z]*
|
||||
%{_mandir}/man1/%{name}.*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc %{_datadir}/doc/%{name}-%{major_version}/*
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libMagickCore-%{major_version}.Q16HDRI.so.10*
|
||||
%{_libdir}/libMagickWand-%{major_version}.Q16HDRI.so.10*
|
||||
%{_libdir}/%{name}-%{VER}
|
||||
%{_datadir}/%{name}-%{major_version}
|
||||
%dir %{_sysconfdir}/%{name}-%{major_version}
|
||||
%config(noreplace) %{_sysconfdir}/%{name}-%{major_version}/*.xml
|
||||
|
||||
%files c++-devel
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/Magick++-config
|
||||
%{_includedir}/%{name}-%{major_version}/Magick++
|
||||
%{_includedir}/%{name}-%{major_version}/Magick++.h
|
||||
%{_libdir}/libMagick++-%{major_version}.Q16HDRI.so
|
||||
%{_libdir}/pkgconfig/Magick++.pc
|
||||
%{_libdir}/pkgconfig/Magick++-%{major_version}.Q16HDRI.pc
|
||||
%{_mandir}/man1/Magick++-config.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/MagickCore-config
|
||||
%{_bindir}/MagickWand-config
|
||||
%{_libdir}/libMagickCore-%{major_version}.Q16HDRI.so
|
||||
%{_libdir}/libMagickWand-%{major_version}.Q16HDRI.so
|
||||
%{_libdir}/pkgconfig/MagickCore.pc
|
||||
%{_libdir}/pkgconfig/MagickCore-%{major_version}.Q16HDRI.pc
|
||||
%{_libdir}/pkgconfig/ImageMagick.pc
|
||||
%{_libdir}/pkgconfig/ImageMagick-%{major_version}.Q16HDRI.pc
|
||||
%{_libdir}/pkgconfig/MagickWand.pc
|
||||
%{_libdir}/pkgconfig/MagickWand-%{major_version}.Q16HDRI.pc
|
||||
%dir %{_includedir}/%{name}-%{major_version}
|
||||
%{_includedir}/%{name}-%{major_version}/MagickCore/*
|
||||
%{_includedir}/%{name}-%{major_version}/MagickWand/*
|
||||
%{_mandir}/man1/MagickCore-config.*
|
||||
%{_mandir}/man1/MagickWand-config.*
|
||||
|
||||
%files c++
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libMagick++-%{major_version}.Q16HDRI.so.5*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 06 2023 Shreenidhi Shedi <sshedi@vmware.com> 7.1.0.47-4
|
||||
- Fix spec issues
|
||||
* Fri May 05 2023 Shreenidhi Shedi <sshedi@vmware.com> 7.1.0.47-3
|
||||
- Remove _isa entries
|
||||
* Fri Apr 14 2023 Shreenidhi Shedi <sshedi@vmware.com> 7.1.0.47-2
|
||||
- Bump version as a part of zlib upgrade
|
||||
* Mon Aug 29 2022 Shivani Agarwal <shivania2@vmware.com> 7.1.0.47-1
|
||||
- Upgrade version to 7.1.0.47
|
||||
* Thu May 26 2022 Gerrit Photon <photon-checkins@vmware.com> 7.1.0.35-1
|
||||
- Automatic Version Bump
|
||||
* Tue May 17 2022 Shivani Agarwal <shivania2@vmware.com> 7.1.0.19-1
|
||||
- Fix for CVE-2022-1114
|
||||
* Tue Jun 22 2021 Piyush Gupta <gpiyush@vmware.com> 7.1.0.1-1
|
||||
- Initial build for Photon.
|
|
@ -1,60 +0,0 @@
|
|||
SPEC files that are derived from LFS sources:
|
||||
ca-certificates
|
||||
bash
|
||||
filesystem
|
||||
vim
|
||||
tzdata
|
||||
shadow
|
||||
ntp
|
||||
unzip
|
||||
docbook-xml
|
||||
docbook-xsl
|
||||
|
||||
SPEC files that are derived from LFS-RPM sources:
|
||||
ncurses
|
||||
readline
|
||||
|
||||
SPEC files that are derived from package sources:
|
||||
haveged
|
||||
wavefront-proxy
|
||||
openipmi
|
||||
xinted
|
||||
python-iniparse
|
||||
|
||||
SPEC files that are derived from Fedora SPEC files:
|
||||
c-ares
|
||||
chkconfig :
|
||||
initscripts :
|
||||
openvswitch :
|
||||
oniguruma :
|
||||
elfutils :
|
||||
zsh
|
||||
perl-DBI
|
||||
perl-DBIx
|
||||
perl-exporter-tiny :
|
||||
perl-json-xs
|
||||
perl-libintl
|
||||
perl-list-moreutils
|
||||
perl-module-build
|
||||
perl-module-install
|
||||
perl-module-scandeps
|
||||
perl-object-accessor
|
||||
perl-types-serializer
|
||||
perl-www-curl
|
||||
perl-yaml
|
||||
perl-yaml-tiny
|
||||
tcsh
|
||||
tcl
|
||||
python-pbr
|
||||
pypam
|
||||
pyyaml
|
||||
mariadb
|
||||
lvm2
|
||||
systemtap
|
||||
|
||||
SPEC files that are derived from OpenSuse SPEC files:
|
||||
python-jinja2
|
||||
acl
|
||||
|
||||
SPEC files that are derived from Centos SPEC files:
|
||||
libaio
|
162
SPECS/LICENSE.md
162
SPECS/LICENSE.md
|
@ -1,162 +0,0 @@
|
|||
PhotonOS v3.0 (and greater versions) Copyright © VMware, Inc. 2014-2018
|
||||
|
||||
The files of PhotonOS version 3.0 (and greater versions) are licensed under the terms of the Apache License v2.0 or alternatively under the terms of the GNU General Public License (GPL) v2 UNLESS otherwise noted at the beginning of the file or in an EXCEPTIONS file present in a directory subtree declares a separate license.
|
||||
|
||||
The terms of the Apache License v2.0 and GPL v2 licenses are set forth below.
|
||||
|
||||
Apache License v2.0
|
||||
|
||||
## **Apache License, Version 2.0**
|
||||
|
||||
## January 2004
|
||||
|
||||
[http://www.apache.org/licenses/](http://www.apache.org/licenses/)LICENSE-2.0
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
**1. Definitions**.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
||||
|
||||
**2. Grant of Copyright License**. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
||||
|
||||
**3. Grant of Patent License**. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
||||
|
||||
**4. Redistribution**. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
||||
|
||||
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
||||
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
|
||||
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
||||
4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
||||
|
||||
**5. Submission of Contributions**. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
||||
|
||||
**6. Trademarks**. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
**7. Disclaimer of Warranty**. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
||||
|
||||
**8. Limitation of Liability**. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
||||
|
||||
**9. Accepting Warranty or Additional Liability**. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
# **APPENDIX: How to apply the Apache License to your work**
|
||||
|
||||
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
||||
See the License for the specific language governing permissions and
|
||||
|
||||
limitations under the License.
|
||||
|
||||
GPL v2
|
||||
|
||||
### **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.
|
||||
|
||||
### **TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION**
|
||||
|
||||
1. **1.** 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. **2.** 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.
|
||||
|
||||
1. **3.** 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 chargeto 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.
|
||||
|
||||
1. **4.** 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:
|
||||
|
||||
1. **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,
|
||||
|
||||
1. **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,
|
||||
|
||||
1. **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.
|
||||
|
||||
1. **5.** 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.
|
||||
|
||||
1. **6.** 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.
|
||||
|
||||
1. **7.** 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.
|
||||
|
||||
1. **8.** 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.
|
|
@ -1,176 +0,0 @@
|
|||
Summary: Linux Pluggable Authentication Modules
|
||||
Name: Linux-PAM
|
||||
Version: 1.5.3
|
||||
Release: 1%{?dist}
|
||||
License: BSD and GPLv2+
|
||||
URL: https://github.com/linux-pam/linux-pam
|
||||
Group: System Environment/Security
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/linux-pam/linux-pam/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=af88e8c1b6a9b737ffaffff7dd9ed8eec996d1fbb5804fb76f590bed66d8a1c2c6024a534d7a7b6d18496b300f3d6571a08874cf406cd2e8cea1d5eff49c136a
|
||||
|
||||
Source1: pamtmp.conf
|
||||
Source2: default-faillock.conf
|
||||
|
||||
Patch0: faillock-add-support-to-print-login-failures.patch
|
||||
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: gdbm-devel
|
||||
|
||||
Requires: libselinux
|
||||
Requires: gdbm
|
||||
|
||||
%define ExtraBuildRequires systemd-rpm-macros
|
||||
|
||||
%description
|
||||
The Linux PAM package contains Pluggable Authentication Modules used to
|
||||
enable the local system administrator to choose how applications authenticate users.
|
||||
|
||||
%package lang
|
||||
Summary: Additional language files for Linux-PAM
|
||||
Group: System Environment/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description lang
|
||||
These are the additional language files of Linux-PAM.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for Linux-PAM
|
||||
Group: System Environment/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The Linux-PAM-devel package contains libraries, header files and documentation
|
||||
for developing applications that use Linux-PAM.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
sh ./configure --host=%{_host} --build=%{_build} \
|
||||
$(test %{_host} != %{_build} && echo "--with-sysroot=/target-%{_arch}") \
|
||||
CFLAGS="%{optflags}" \
|
||||
CXXFLAGS="%{optflags}" \
|
||||
--disable-dependency-tracking \
|
||||
--prefix=%{_prefix} \
|
||||
--exec-prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--sbindir=%{_sbindir} \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--datadir=%{_datadir} \
|
||||
--includedir=%{_includedir}/security \
|
||||
--libdir=%{_libdir} \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--localstatedir=%{_localstatedir} \
|
||||
--sharedstatedir=%{_sharedstatedir} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
--enable-selinux \
|
||||
--docdir=%{_docdir}/%{name}-%{version} \
|
||||
--enable-securedir=%{_libdir}/security \
|
||||
--enable-db=ndbm
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
chmod -v 4755 %{buildroot}%{_sbindir}/unix_chkpwd
|
||||
install -v -dm755 %{buildroot}%{_docdir}/%{name}-%{version}
|
||||
ln -sfv pam_unix.so %{buildroot}%{_libdir}/security/pam_unix_auth.so
|
||||
ln -sfv pam_unix.so %{buildroot}%{_libdir}/security/pam_unix_acct.so
|
||||
ln -sfv pam_unix.so %{buildroot}%{_libdir}/security/pam_unix_passwd.so
|
||||
ln -sfv pam_unix.so %{buildroot}%{_libdir}/security/pam_unix_session.so
|
||||
|
||||
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/security/faillock.conf
|
||||
|
||||
install -d -m 755 %{buildroot}/run/faillock
|
||||
install -m644 -D %{SOURCE1} %{buildroot}%{_tmpfilesdir}/pam.conf
|
||||
|
||||
%{find_lang} %{name}
|
||||
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
install -v -m755 -d %{_sysconfdir}/pam.d
|
||||
cat > %{_sysconfdir}/pam.d/other << "EOF"
|
||||
auth required pam_deny.so
|
||||
account required pam_deny.so
|
||||
password required pam_deny.so
|
||||
session required pam_deny.so
|
||||
EOF
|
||||
make %{?_smp_mflags} check
|
||||
%endif
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/security/*.conf
|
||||
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/security/namespace.init
|
||||
%dir %{_sysconfdir}/security
|
||||
%{_sysconfdir}/environment
|
||||
%{_sbindir}/*
|
||||
%{_libdir}/security/*
|
||||
%{_libdir}/*.so.*
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/*
|
||||
%{_tmpfilesdir}/pam.conf
|
||||
%{_unitdir}/pam_namespace.service
|
||||
%dir /run/faillock
|
||||
|
||||
%files lang -f Linux-PAM.lang
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_mandir}/man3/*
|
||||
%{_docdir}/%{name}-%{version}/*
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Wed May 17 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.5.3-1
|
||||
- Upgrade to v1.5.3
|
||||
* Mon Nov 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.5.2-3
|
||||
- Add a default faillock.conf
|
||||
* Wed Jul 06 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.5.2-2
|
||||
- Remove libdb support from pam
|
||||
* Thu Jun 30 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.5.2-1
|
||||
- Further fixes to faillock patch
|
||||
- Upgrade to v1.5.2
|
||||
* Tue Mar 08 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.5.1-2
|
||||
- create /var/run/faillock during install
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 1.5.1-1
|
||||
- Automatic Version Bump
|
||||
* Fri Sep 25 2020 Ankit Jain <ankitja@vmware.com> 1.4.0-2
|
||||
- pam_cracklib has been deprecated.
|
||||
* Fri Aug 07 2020 Vikash Bansal <bvikas@vmware.com> 1.4.0-1
|
||||
- Version bump up to 1.4.0
|
||||
* Mon Apr 20 2020 Alexey Makhalov <amakhalov@vmware.com> 1.3.0-3
|
||||
- Enable SELinux support
|
||||
* Thu Nov 15 2018 Alexey Makhalov <amakhalov@vmware.com> 1.3.0-2
|
||||
- Cross compilation support
|
||||
* Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.3.0-1
|
||||
- Version update.
|
||||
* Fri Feb 10 2017 Xiaolin Li <xiaolinl@vmware.com> 1.2.1-5
|
||||
- Added pam_unix_auth.so, pam_unix_acct.so, pam_unix_passwd.so,
|
||||
- and pam_unix_session.so.
|
||||
* Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 1.2.1-4
|
||||
- Added devel subpackage.
|
||||
* Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com> 1.2.1-3
|
||||
- Packaging pam cracklib module
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.2.1-2
|
||||
- GA - Bump release of all rpms
|
||||
* Fri Jan 15 2016 Xiaolin Li <xiaolinl@vmware.com> 1.2.1-1
|
||||
- Updated to version 1.2.1
|
||||
* Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 1.1.8-2
|
||||
- Update according to UsrMove.
|
||||
* Thu Oct 09 2014 Divya Thaluru <dthaluru@vmware.com> 1.1.8-1
|
||||
- Initial build. First version
|
|
@ -1,5 +0,0 @@
|
|||
dir = /run/faillock
|
||||
deny = 3
|
||||
unlock_time = 600
|
||||
even_deny_root
|
||||
root_unlock_time = 600
|
|
@ -1,50 +0,0 @@
|
|||
From bbd259716a1dbc35a8ec282d7d5d287483997ce0 Mon Sep 17 00:00:00 2001
|
||||
From: Shreenidhi Shedi <sshedi@vmware.com>
|
||||
Date: Wed, 29 Jun 2022 20:47:47 +0530
|
||||
Subject: [PATCH] faillock: add support to print login failures in legacy
|
||||
pam_tally2 style
|
||||
|
||||
This is enabled by default.
|
||||
|
||||
"--no-legacy-output" flag will print failures in newer format.
|
||||
|
||||
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
|
||||
---
|
||||
modules/pam_faillock/main.c | 7 ++++---
|
||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/modules/pam_faillock/main.c b/modules/pam_faillock/main.c
|
||||
index 136be83..b21b6a1 100644
|
||||
--- a/modules/pam_faillock/main.c
|
||||
+++ b/modules/pam_faillock/main.c
|
||||
@@ -66,6 +66,7 @@ args_parse(int argc, char **argv, struct options *opts)
|
||||
memset(opts, 0, sizeof(*opts));
|
||||
|
||||
opts->progname = argv[0];
|
||||
+ opts->legacy_output = 1;
|
||||
|
||||
for (i = 1; i < argc; ++i) {
|
||||
if (strcmp(argv[i], "--conf") == 0) {
|
||||
@@ -97,8 +98,8 @@ args_parse(int argc, char **argv, struct options *opts)
|
||||
else if (strcmp(argv[i], "--reset") == 0) {
|
||||
opts->reset = 1;
|
||||
}
|
||||
- else if (!strcmp(argv[i], "--legacy-output")) {
|
||||
- opts->legacy_output = 1;
|
||||
+ else if (!strcmp(argv[i], "--no-legacy-output")) {
|
||||
+ opts->legacy_output = 0;
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "%s: Unknown option: %s\n", argv[0], argv[i]);
|
||||
@@ -128,7 +129,7 @@ usage(const char *progname)
|
||||
{
|
||||
fprintf(stderr,
|
||||
_("Usage: %s [--dir /path/to/tally-directory]"
|
||||
- " [--user username] [--reset] [--legacy-output]\n"), progname);
|
||||
+ " [--user username] [--reset] [--no-legacy-output]\n"), progname);
|
||||
|
||||
}
|
||||
|
||||
--
|
||||
2.40.1
|
||||
|
|
@ -1 +0,0 @@
|
|||
d /run/faillock 0755 root root -
|
|
@ -1,135 +0,0 @@
|
|||
Summary: Mobile broadband modem manager
|
||||
Name: ModemManager
|
||||
Version: 1.18.12
|
||||
Release: 2%{?dist}
|
||||
URL: https://www.freedesktop.org
|
||||
License: GPLv2
|
||||
Group: Applications/System
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://www.freedesktop.org/software/ModemManager/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=7ee3b091ca2350a1d52f1ff0c0657c9f279594ffbff5ea57be59ca024331cafbac34901ca9ed4ef2b71e8c51b594526f921d3aeee6e8748cd0532a16218c5d6c
|
||||
|
||||
BuildRequires: libqmi-devel
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: libgudev-devel
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: automake
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: libtool
|
||||
BuildRequires: libxslt-devel
|
||||
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: dbus-devel
|
||||
%endif
|
||||
|
||||
Requires: systemd
|
||||
Requires: glib
|
||||
Requires: libgudev
|
||||
Requires: libqmi
|
||||
Requires: gobject-introspection
|
||||
|
||||
%description
|
||||
%{name} provides a unified high level API for communicating
|
||||
with mobile broadband modems, regardless of the protocol used to
|
||||
communicate with the actual device.
|
||||
|
||||
%package devel
|
||||
Summary: Header and development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libqmi-devel
|
||||
Requires: gobject-introspection-devel
|
||||
|
||||
%description devel
|
||||
It contains the libraries and header files for %{name}
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--disable-static \
|
||||
--enable-more-warnings=no \
|
||||
--without-qmi \
|
||||
--without-mbim
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install UDEV_BASE_DIR=%{_libdir}/udev %{?_smp_mflags}
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/%{name}/*.conf
|
||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ModemManager1.conf
|
||||
%{_bindir}/mmcli
|
||||
%{_sbindir}/%{name}
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/girepository-1.0/%{name}-1.0.typelib
|
||||
%{_libdir}/%{name}/*
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_mandir}/man1/mmcli.1.gz
|
||||
%{_mandir}/man8/%{name}.8.gz
|
||||
%{_datadir}/dbus-1/*
|
||||
%{_datadir}/locale/*
|
||||
%{_datadir}/bash-completion/*
|
||||
%{_datadir}/gir-1.0/%{name}-1.0.gir
|
||||
%{_udevrulesdir}/*
|
||||
%exclude %{_datadir}/icons
|
||||
%exclude %dir %{_libdir}/debug
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so
|
||||
%{_includedir}/%{name}/*
|
||||
%{_includedir}/libmm-glib/*
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_libdir}/pkgconfig/mm-glib.pc
|
||||
%{_datadir}/%{name}/fcc-unlock.available.d/*
|
||||
%{_datadir}/%{name}/connection.available.d/*
|
||||
|
||||
%changelog
|
||||
* Tue Jan 03 2023 Guruswamy Basavaiah <bguruswamy@vmware.com> 1.18.12-2
|
||||
- Bump release as a part of libgudev upgrade to 237-1
|
||||
* Fri Dec 23 2022 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 1.18.12-1
|
||||
- Update to v1.18.12
|
||||
* Fri Oct 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.18.10-3
|
||||
- Bump version as a part of libxslt upgrade
|
||||
* Sun Aug 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.18.10-2
|
||||
- Remove .la files
|
||||
* Mon Jul 11 2022 Gerrit Photon <photon-checkins@vmware.com> 1.18.10-1
|
||||
- Automatic Version Bump
|
||||
* Wed Jun 22 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.18.6-3
|
||||
- Fix binary path
|
||||
* Thu Jun 16 2022 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 1.18.6-2
|
||||
- Bump version as a part of libxslt upgrade
|
||||
* Mon Apr 18 2022 Gerrit Photon <photon-checkins@vmware.com> 1.18.6-1
|
||||
- Automatic Version Bump
|
||||
* Wed Apr 21 2021 Gerrit Photon <photon-checkins@vmware.com> 1.16.4-1
|
||||
- Automatic Version Bump
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 1.16.2-1
|
||||
- Automatic Version Bump
|
||||
* Mon Dec 14 2020 Susant Sahani <ssahani@vmware.com> 1.14.2-3
|
||||
- Add build requires
|
||||
* Wed Nov 18 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.14.2-2
|
||||
- Fix make check
|
||||
* Mon Aug 24 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.2-1
|
||||
- Automatic Version Bump
|
||||
* Wed Jul 22 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.0-1
|
||||
- Automatic Version Bump
|
||||
* Mon Dec 10 2018 Alexey Makhalov <amakhalov@vmware.com> 1.8.2-1
|
||||
- Initial build. First version
|
|
@ -1,141 +0,0 @@
|
|||
Name: WALinuxAgent
|
||||
Summary: The Windows Azure Linux Agent
|
||||
Version: 2.9.1.1
|
||||
Release: 2%{?dist}
|
||||
License: Apache License Version 2.0
|
||||
Group: System/Daemons
|
||||
Url: https://github.com/Azure/WALinuxAgent
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/Azure/WALinuxAgent/archive/refs/tags/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=3f44aecc16ac545db4b550586f168dbbdef34289aad6775973517bf645e5a1d486864c01e974f03a71b3e946c14e1ca140673a75c1cd602aac28725eaa68e83d
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-xml
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: python3-distro
|
||||
BuildRequires: python3-macros
|
||||
|
||||
Requires: python3
|
||||
Requires: python3-xml
|
||||
Requires: python3-pyasn1
|
||||
Requires: openssh
|
||||
Requires: openssl
|
||||
Requires: util-linux
|
||||
Requires: /bin/sed
|
||||
Requires: /bin/grep
|
||||
Requires: sudo
|
||||
Requires: iptables
|
||||
Requires: systemd
|
||||
Requires: python3-distro
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
The Windows Azure Linux Agent supports the provisioning and running of Linux
|
||||
VMs in the Windows Azure cloud. This package should be installed on Linux disk
|
||||
images that are built to run in the Windows Azure environment.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%{python3} setup.py install --skip-build install -O1 --lnx-distro='photonos' --root=%{buildroot}
|
||||
|
||||
mkdir -p %{buildroot}%{_var}/log \
|
||||
%{buildroot}%{_var}/opt/waagent/log \
|
||||
%{buildroot}%{_var}/log
|
||||
|
||||
mkdir -p -m 0700 %{buildroot}%{_sharedstatedir}/waagent
|
||||
touch %{buildroot}%{_var}/opt/waagent/log/waagent.log
|
||||
ln -sfv /opt/waagent/log/waagent.log %{buildroot}%{_var}/log/waagent.log
|
||||
|
||||
%post
|
||||
%systemd_post waagent.service
|
||||
|
||||
%preun
|
||||
%systemd_preun waagent.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart waagent.service
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_unitdir}/*
|
||||
%defattr(0644,root,root,0755)
|
||||
%attr(0755,root,root) %{_bindir}/waagent
|
||||
%attr(0755,root,root) %{_bindir}/waagent2.0
|
||||
%config(noreplace) %{_sysconfdir}/waagent.conf
|
||||
%dir %{_var}/opt/waagent/log
|
||||
%{_var}/log/waagent.log
|
||||
%ghost %{_var}/opt/waagent/log/waagent.log
|
||||
%dir %attr(0700, root, root) %{_sharedstatedir}/waagent
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.9.1.1-2
|
||||
- Bump version as a part of openssl upgrade
|
||||
* Thu Sep 14 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.9.1.1-1
|
||||
- Upgrade to v2.9.1.1
|
||||
* Tue Apr 18 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.7.3.0-4
|
||||
- Add python3-distro to requires
|
||||
* Sun Feb 12 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.7.3.0-3
|
||||
- FIx requires
|
||||
* Tue Dec 06 2022 Prashant S Chauhan <psinghchauha@vmware.com> 2.7.3.0-2
|
||||
- Update release to compile with python 3.11
|
||||
* Fri Aug 26 2022 Shreenidhi Shedi <sshedi@vmware.com> 2.7.3.0-1
|
||||
- Upgrade to v2.7.3.0
|
||||
* Thu May 26 2022 Gerrit Photon <photon-checkins@vmware.com> 2.7.1.0-1
|
||||
- Automatic Version Bump
|
||||
* Sat Nov 13 2021 Shreenidhi Shedi <sshedi@vmware.com> 2.4.0.2-1
|
||||
- Upgrade to version 2.4.0.2
|
||||
* Thu Apr 29 2021 Gerrit Photon <photon-checkins@vmware.com> 2.2.53.1-1
|
||||
- Automatic Version Bump
|
||||
* Mon Jan 11 2021 Tapas Kundu <tkundu@vmware.com> 2.2.51-1
|
||||
- Version Bump
|
||||
* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 2.2.49.2-3
|
||||
- Build with python 3.9
|
||||
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 2.2.49.2-2
|
||||
- openssl 1.1.1
|
||||
* Fri Aug 28 2020 Gerrit Photon <photon-checkins@vmware.com> 2.2.49.2-1
|
||||
- Automatic Version Bump
|
||||
* Sun Jul 26 2020 Tapas Kundu <tkundu@vmware.com> 2.2.49-2
|
||||
- Use python3.8
|
||||
* Fri Jul 24 2020 Gerrit Photon <photon-checkins@vmware.com> 2.2.49-1
|
||||
- Automatic Version Bump
|
||||
* Thu Jun 18 2020 Tapas Kundu <tkundu@vmware.com> 2.2.35-3
|
||||
- Use python3
|
||||
* Wed Apr 29 2020 Anisha Kumari <kanisha@vmware.com> 2.2.35-2
|
||||
- Added patch to fix CVE-2019-0804
|
||||
* Tue Feb 12 2019 Tapas Kundu <tkundu@vmware.com> 2.2.35-1
|
||||
- Update to 2.2.35
|
||||
* Tue Oct 23 2018 Anish Swaminathan <anishs@vmware.com> 2.2.22-1
|
||||
- Update to 2.2.22
|
||||
* Thu Dec 28 2017 Divya Thaluru <dthaluru@vmware.com> 2.2.14-3
|
||||
- Fixed the log file directory structure
|
||||
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 2.2.14-2
|
||||
- Requires /bin/grep, /bin/sed and util-linux or toybox
|
||||
* Thu Jul 13 2017 Anish Swaminathan <anishs@vmware.com> 2.2.14-1
|
||||
- Update to 2.2.14
|
||||
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 2.0.18-4
|
||||
- Use python2 explicitly to build
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.0.18-3
|
||||
- GA - Bump release of all rpms
|
||||
* Tue May 10 2016 Anish Swaminathan <anishs@vmware.com> 2.0.18-2
|
||||
- Edit post scripts
|
||||
* Thu Apr 28 2016 Anish Swaminathan <anishs@vmware.com> 2.0.18-1
|
||||
- Update to 2.0.18
|
||||
* Thu Jan 28 2016 Anish Swaminathan <anishs@vmware.com> 2.0.14-3
|
||||
- Removed redundant requires
|
||||
* Thu Aug 6 2015 Anish Swaminathan <anishs@vmware.com>
|
||||
- Added sha512sum
|
||||
* Fri Mar 13 2015 - mbassiouny@vmware.com
|
||||
- Initial packaging
|
|
@ -1,76 +0,0 @@
|
|||
Summary: XML-Parser perl module
|
||||
Name: XML-Parser
|
||||
Version: 2.46
|
||||
Release: 3%{?dist}
|
||||
License: GPL+
|
||||
URL: http://search.cpan.org/~toddr/%{name}-%{version}/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/%{name}-%{version}.tar.gz
|
||||
%define sha512 XML-Parser=c4609495cc5ca34952f61876a690ef76d42eee6689d1bedb8036c9eab918525ec5213f1639c7178c029ee0f8765a2ca5eb0197f6e39b8be6d5dbc3f3c1d0b389
|
||||
Group: Development/Tools
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
BuildRequires: expat-devel
|
||||
BuildRequires: perl
|
||||
Requires: expat
|
||||
Requires: perl
|
||||
|
||||
%description
|
||||
The XML::Parser module is a Perl extension interface to James Clark's XML parser, expat
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
if [ %{_host} != %{_build} ]; then
|
||||
ln -s /target-%{_arch}%{perl_privlib}/%{_arch}-linux %{perl_privlib}/%{_arch}-linux
|
||||
mkdir -p %{perl_vendorlib}
|
||||
ln -s /target-%{_arch}%{perl_vendorlib}/%{_arch}-linux %{perl_vendorlib}/%{_arch}-linux
|
||||
|
||||
# ugly hack again, similarly to cmake:
|
||||
ln -sf %{_arch}-linux-gnu-gcc /usr/bin/gcc
|
||||
ln -sf %{_arch}-linux-gnu-g++ /usr/bin/g++
|
||||
ln -sf %{_arch}-linux-gnu-ld /usr/bin/ld
|
||||
ln -sf %{_arch}-linux-gnu-ar /usr/bin/ar
|
||||
fi
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||
|
||||
%define __perl_version 5.36.0
|
||||
rm %{buildroot}/%{_libdir}/perl5/%{__perl_version}/*/perllocal.pod
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/perl5/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu Dec 08 2022 Dweep Advani <dadvani@vmware.com> 2.46-3
|
||||
- Perl version upgrade to 5.36.0
|
||||
* Thu Aug 20 2020 Dweep Advani <dadvani@vmware.com> 2.46-2
|
||||
- Rebuild for perl version upgrade to 5.30.1
|
||||
* Thu Jun 25 2020 Gerrit Photon <photon-checkins@vmware.com> 2.46-1
|
||||
- Automatic Version Bump
|
||||
* Thu Nov 15 2018 Alexey Makhalov <amakhalov@vmware.com> 2.44-6
|
||||
- Cross compilation support
|
||||
* Fri Sep 21 2018 Dweep Advani <dadvani@vmware.com> 2.44-5
|
||||
- Consuming perl version upgrade of 5.28.0
|
||||
* Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.44-4
|
||||
- Aarch64 support
|
||||
* Tue Apr 4 2017 Robert Qi <qij@vmware.com> 2.44-3
|
||||
- Update to version 2.44-3 since perl version updated.
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.44-2
|
||||
- GA - Bump release of all rpms
|
||||
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.44-1
|
||||
- Upgraded to version 2.44
|
||||
* Mon Feb 01 2016 Anish Swaminathan <anishs@vmware.com> 2.41-3
|
||||
- Fix for multithreaded perl
|
||||
* Wed Jan 13 2016 Anish Swaminathan <anishs@vmware.com> 2.41-2
|
||||
- Fix for new perl
|
||||
* Thu Oct 23 2014 Divya Thaluru <dthaluru@vmware.com> 2.41-1
|
||||
- Initial build. First version
|
|
@ -1,102 +0,0 @@
|
|||
A/B Update
|
||||
|
||||
Package to perform update/rollback with A/B partition sets.
|
||||
|
||||
Design:
|
||||
In this design, we have A and B sets of partitions, hence the name A/B upgrade. There is also support for shared/persistent partitions that are not part of
|
||||
other set. To update/modify the system, the idea is that the system on the B partition set can be modified freely while the active system is running. Once
|
||||
an update is desired, it can be achieved atomically by booting into the B partition set and running the newly updated/modified system. Importantly, a simple switch
|
||||
doesn't modify the bootloader so any subsequent reboots will be back into the unmodified A set. This allows for safe updates, as if anything goes wrong
|
||||
in the B system, we can roll back to the A version of the system.
|
||||
|
||||
We only modify the bootloader when it is specifically requested, but after that point subsequent reboots will now be into the modified/updated system.
|
||||
This is done through the "finish" command.
|
||||
|
||||
This tool allows for various utilities to support this design:
|
||||
- mounting/unmounting shadow partitions, so that they can be easily modified
|
||||
- updating/installing packages on B set
|
||||
- check for capabilities
|
||||
- clean out the shadow partitions
|
||||
- deploy an OS image from a tarball into the B set
|
||||
- sync the A and B partition sets (mirror)
|
||||
- switch from A to B partition sets
|
||||
- finalize update/switch by modifying bootloader
|
||||
|
||||
Requirements:
|
||||
Requires two sets of partitions, A and B. Each partition set can be comprised of multiple individual partitions.
|
||||
- If booting with BIOS, only a root filesystem pair is needed.
|
||||
- If booting with UEFI, an EFI partition pair is also needed.
|
||||
|
||||
Optionally, other partition pairs can be added as well.
|
||||
|
||||
Config File:
|
||||
Configuration options can be set in /etc/abupdate.conf. These options are read in as a bash script, so they must be formatted in bash syntax.
|
||||
The "init" command can, in some situations, auto-populate this file.
|
||||
|
||||
Available options:
|
||||
BOOT_TYPE (either UEFI, BIOS, or BOTH if applicable)
|
||||
PLATFORM (for grub-install, if BIOS)
|
||||
AUTO_SWITCH (automatically switch to B partition set after update)
|
||||
AUTO_FINISH (automatically finalize a switch)
|
||||
PACKAGE_MANAGER (either tdnf or rpm)
|
||||
|
||||
Partition pairs:
|
||||
Some partitions have a corresponding shadow partition, so we should specify the mapping here as partition pairs. Persistent/shared partitions
|
||||
do not need to be specified in this config file.
|
||||
Partition pairs are added as a bash array, with the A and B partition uuids given, along with the mount point.
|
||||
To specify the ROOT partition pair, use the name ROOT (all caps). EFI is the same. Other set names can any mixture of characters.
|
||||
|
||||
Example:
|
||||
<name>=("partition uuid A" "partition uuid B" "mount point")
|
||||
|
||||
Once a partition set has been added in the config file, you must also update the SETS array to include the name of the set.
|
||||
Otherwise, the script will not know that it exists.
|
||||
|
||||
Example:
|
||||
SETS=("ROOT" "EFI" "<new set name>")
|
||||
|
||||
Excluding files/folders:
|
||||
To exclude a file/folder from being synced across A->B partition sets, you can set an exclude array for that partition set.
|
||||
Syntax - <set name>_EXCLUDE=("file name" "/folder/file" "/folder1/folder2")
|
||||
|
||||
Example:
|
||||
HOME_EXCLUDE=("/myfolder")
|
||||
|
||||
Script usage:
|
||||
./abupdate <options>
|
||||
|
||||
Available options:
|
||||
init
|
||||
Initializes /etc/abupdate.conf. Attempts to auto detect A and B partitions and boot type.
|
||||
sync
|
||||
Mirrors the active (A) partition set to the inactive (B) partition set. Syncs all data between the two partition sets
|
||||
This is done efficiently using rsync, which transfers only the delta between the two sets.
|
||||
deploy <image.tar.gz>
|
||||
Accepts an OS image as a tar file. Cleans the B partition set and then deploys the OS image into the B partition set
|
||||
mount
|
||||
Mounts B partition set, and pseudo filesystems, at /mnt/abupdate
|
||||
unmount
|
||||
Unmounts B partition set and pseudo filesystems from /mnt/abupdate
|
||||
clean
|
||||
Cleans the B partition set. Removes all files from all specified shadow partitions. Does not touch any shared/persistent partitions.
|
||||
update <packages>
|
||||
Accepts a list of packages to update.
|
||||
If PACKAGE_MANAGER is set to rpm, the list must be a list of .rpm files
|
||||
If no args, updates all packages on the B partition set.
|
||||
If AUTO_SWITCH is set, automatically switches into B partition set
|
||||
To specify a custom tdnf config file, use -c /path/to/config or set TDNF_CONFIG in /etc/abupdate.conf.
|
||||
install <packages>
|
||||
Accepts a list of packages to install to the shadow (B) partition set
|
||||
If PACKAGE_MANAGER is set to rpm, the list must be a list of .rpm files
|
||||
To specify a custom tdnf config file, use -c /path/to/config or set TDNF_CONFIG in /etc/abupdate.conf.
|
||||
uninstall <packages>
|
||||
Accepts a list of packages to uninstall from the shadow (B) partition set.
|
||||
To specify a custom tdnf config file, use -c /path/to/config or set TDNF_CONFIG in /etc/abupdate.conf.
|
||||
switch
|
||||
Executes a kexec boot into the B partition set.
|
||||
If AUTO_FINISH is set, automatically finalizes the switch with the finish command
|
||||
Otherwise, the next boot will be back into the original A partition set
|
||||
finish
|
||||
Finalizes the switch by updating the bootloader. Ensures that the next reboot will be into the current partition set.
|
||||
check
|
||||
Runs various checks to verify A/B partition sets are good to go.
|
File diff suppressed because it is too large
Load Diff
|
@ -1,41 +0,0 @@
|
|||
# either EFI, BIOS, or BOTH
|
||||
# BOOT_TYPE=<boot type>
|
||||
|
||||
# automatically switch to other partition set after update?
|
||||
# AUTO_SWITCH=NO
|
||||
|
||||
# automatically finalize the update after a switch?
|
||||
# AUTO_FINISH=no
|
||||
|
||||
# can choose to either use tdnf or rpm as a package manager
|
||||
# if not specified, tdnf is used
|
||||
# PACKAGE_MANAGER=tdnf
|
||||
|
||||
# for update/install/uninstall commands (with tdnf)
|
||||
# use a custom tdnf config file for a/b update
|
||||
# TDNF_CONFIG=/path/to/config
|
||||
|
||||
# Provide information about partition sets
|
||||
# PARTUUID info can be found with the "blkid" command
|
||||
# ex) blkid /dev/sdb1
|
||||
# /dev/sdb1: UUID="d99e366e-3dd5-445e-906f-900fc927d4f4" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="febbf1a8-01"
|
||||
#
|
||||
# EFI is needed if booting with EFI
|
||||
# Format: PARTUUID A, PARTUUID B, mount point
|
||||
#
|
||||
# Example: HOME=("PARTUUID A" "PARTUUID B" "/home")
|
||||
#
|
||||
# Note that the / partition is labeled as _ROOT to avoid conflicts with /root (which can be labeled ROOT)
|
||||
# EFI=("PARTUUID A" "PARTUUID B" "/boot/efi")
|
||||
# _ROOT=("PARTUUID A" "PARTUUID B" "/")
|
||||
|
||||
# List of all partition sets
|
||||
# SETS=( "_ROOT" )
|
||||
|
||||
# exclude the following directories/files from being synced
|
||||
# note that these directory paths are absolute, not relative to current working directory
|
||||
#
|
||||
# Format: <set name>_EXCLUDE=( "/dir1/" "/dir2" "/dir3/subdir/file" ... "/dirN/" )
|
||||
#
|
||||
# Example:
|
||||
# HOME_EXCLUDE=( "/mnt" "lost+found" )
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=Finalizes partition switch on boot, if enabled.
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/abupdate finish
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,60 +0,0 @@
|
|||
%global debug_package %{nil}
|
||||
|
||||
Name: abupdate
|
||||
Summary: A/B partition set update and rollback
|
||||
Version: 1.0
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2
|
||||
Group: System Environment/Kernel
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: abupdate
|
||||
Source1: abupdate.conf
|
||||
Source2: abupdate.service
|
||||
Source3: README
|
||||
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
Requires: bash
|
||||
Requires: systemd
|
||||
Requires: kexec-tools
|
||||
Requires: util-linux
|
||||
Requires: rsync
|
||||
Requires: grub2
|
||||
Requires: tar
|
||||
|
||||
# Also requires grub2-pc if BIOS, efibootmgr if UEFI
|
||||
# That will have to be installed by the user based on their system
|
||||
Recommends: grub2-pc
|
||||
Recommends: efibootmgr
|
||||
|
||||
%description
|
||||
Contains the abupdate utility, which provides capabilities in conjunction with an A/B set of partitions,
|
||||
to atomically update packages/kernel versions, and safely rollback if something goes wrong.
|
||||
abupdate has the ability to mirror data and update packages/kernel between partition sets,
|
||||
as well as switch between sets, and rollback from A to B.
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}{%{_sbindir},%{_sysconfdir},%{_unitdir},%{_docdir}}
|
||||
cp %{SOURCE0} %{buildroot}%{_sbindir}
|
||||
cp %{SOURCE1} %{buildroot}%{_sysconfdir}
|
||||
cp %{SOURCE2} %{buildroot}%{_unitdir}
|
||||
cp %{SOURCE3} %{buildroot}%{_docdir}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc %{_docdir}/README
|
||||
%{_sbindir}/abupdate
|
||||
%config(noreplace) %{_sysconfdir}/abupdate.conf
|
||||
%{_unitdir}/abupdate.service
|
||||
|
||||
%changelog
|
||||
* Thu Feb 23 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 1.0-3
|
||||
- Enable kexec for ARM, don't replace abupdate.conf. Edit abupdate
|
||||
- to support aarch64.
|
||||
* Thu Feb 23 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.0-2
|
||||
- Requires kexec-tools only in x86_64
|
||||
* Thu Oct 20 2022 Brennan Lamoreaux <blamoreaux@vmware.com> 1.0-1
|
||||
- Initial addition to Photon.
|
|
@ -1,111 +0,0 @@
|
|||
Summary: Access control list utilities
|
||||
Name: acl
|
||||
Version: 2.3.1
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Base
|
||||
URL: https://savannah.nongnu.org/projects/%{name}
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=f101e27058c959f4c412f475c3fc77a90d1ead8728701e4ce04ff08b34139d35e0e72278c9ac7622ba6054e81c0aeca066e09491b5f5666462e3866705a0e892
|
||||
|
||||
Requires: libacl = %{version}-%{release}
|
||||
|
||||
BuildRequires: attr-devel
|
||||
|
||||
%description
|
||||
This package contains the getfacl and setfacl utilities needed for
|
||||
manipulating access control lists.
|
||||
|
||||
%package -n libacl
|
||||
Summary: Dynamic library for access control list support
|
||||
License: LGPLv2+
|
||||
Group: System Environment/Libraries
|
||||
Requires: attr
|
||||
|
||||
%description -n libacl
|
||||
This package contains the libacl.so dynamic library which contains
|
||||
the POSIX 1003.1e draft standard 17 functions for manipulating access
|
||||
control lists.
|
||||
|
||||
%package -n libacl-devel
|
||||
Summary: Files needed for building programs with libacl
|
||||
License: LGPLv2+
|
||||
Group: Development/Libraries
|
||||
Requires: libacl = %{version}-%{release}
|
||||
Requires: attr-devel
|
||||
|
||||
%description -n libacl-devel
|
||||
This package contains header files and documentation needed to develop
|
||||
programs which make use of the access control list programming interface
|
||||
defined in POSIX 1003.1e draft standard 17.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--disable-static
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
if ./setfacl -m u:$(id -u):rwx .; then
|
||||
%make_build check
|
||||
else
|
||||
echo '*** The chroot file system does not support all ACL options ***'
|
||||
fi
|
||||
|
||||
%post -n libacl
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun -n libacl
|
||||
/sbin/ldconfig
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/chacl
|
||||
%{_bindir}/getfacl
|
||||
%{_bindir}/setfacl
|
||||
%{_mandir}/man1/chacl.1*
|
||||
%{_mandir}/man1/getfacl.1*
|
||||
%{_mandir}/man1/setfacl.1*
|
||||
%{_mandir}/man5/acl.5*
|
||||
|
||||
%files -n libacl-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libacl.so
|
||||
%{_includedir}/%{name}
|
||||
%{_includedir}/sys/acl.h
|
||||
%{_mandir}/man3/acl_*
|
||||
%{_docdir}/acl/*
|
||||
%{_libdir}/pkgconfig/libacl.pc
|
||||
|
||||
%files -n libacl
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libacl.so.*
|
||||
|
||||
%changelog
|
||||
* Mon Jul 24 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.3.1-2
|
||||
- Fix spec issues
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 2.3.1-1
|
||||
- Automatic Version Bump
|
||||
* Mon Sep 17 2018 Ankit Jain <ankitja@vmware.com> 2.2.53-1
|
||||
- Updated to version 2.2.53
|
||||
* Fri Jul 28 2017 Chang Lee <changlee@vmware.com> 2.2.52-5
|
||||
- Fixed %check for filtering unsupported check env
|
||||
* Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 2.2.52-4
|
||||
- BuildRequired attr-devel.
|
||||
* Wed Oct 05 2016 ChangLee <changlee@vmware.com> 2.2.52-3
|
||||
- Modified %check
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.2.52-2
|
||||
- GA - Bump release of all rpms
|
||||
* Thu Feb 26 2015 Divya Thaluru <dthaluru@vmware.com> 2.2.52-1
|
||||
- Initial version
|
|
@ -1,82 +0,0 @@
|
|||
# Example configuration file for AIDE.
|
||||
|
||||
@@define DBDIR /var/lib/aide
|
||||
|
||||
# The location of the database to be read.
|
||||
database_in=file:@@{DBDIR}/aide.db.gz
|
||||
|
||||
# The location of the database to be written.
|
||||
#database_out=sql:host:port:database:login_name:passwd:table
|
||||
#database_out=file:aide.db.new
|
||||
database_out=file:@@{DBDIR}/aide.db.new.gz
|
||||
|
||||
# Whether to gzip the output to database
|
||||
gzip_dbout=yes
|
||||
|
||||
log_level=info
|
||||
|
||||
report_url=file:/var/log/aide/aide.log
|
||||
report_url=stdout
|
||||
#report_url=stderr
|
||||
#NOT IMPLEMENTED report_url=mailto:root@foo.com
|
||||
#NOT IMPLEMENTED report_url=syslog:LOG_AUTH
|
||||
|
||||
# These are the default rules.
|
||||
#
|
||||
#p: permissions
|
||||
#i: inode:
|
||||
#n: number of links
|
||||
#u: user
|
||||
#g: group
|
||||
#s: size
|
||||
#b: block count
|
||||
#m: mtime
|
||||
#a: atime
|
||||
#c: ctime
|
||||
#S: check for growing size
|
||||
#md5: md5 checksum
|
||||
#sha1: sha1 checksum
|
||||
#rmd160: rmd160 checksum
|
||||
#tiger: tiger checksum
|
||||
#haval: haval checksum
|
||||
#gost: gost checksum
|
||||
#crc32: crc32 checksum
|
||||
#R: p+i+n+u+g+s+m+c+md5
|
||||
#L: p+i+n+u+g
|
||||
#E: Empty group
|
||||
#>: Growing logfile p+u+g+i+n+S
|
||||
|
||||
# You can create custom rules like this.
|
||||
|
||||
NORMAL = R+b+sha512
|
||||
|
||||
DIR = p+i+n+u+g
|
||||
|
||||
# Next decide what directories/files you want in the database.
|
||||
|
||||
/boot NORMAL
|
||||
/bin NORMAL
|
||||
/sbin NORMAL
|
||||
/lib NORMAL
|
||||
/opt NORMAL
|
||||
/usr NORMAL
|
||||
/root NORMAL
|
||||
|
||||
# Check only permissions, inode, user and group for /etc, but
|
||||
# cover some important files closely.
|
||||
/etc p+i+u+g
|
||||
!/etc/mtab
|
||||
/etc/exports NORMAL
|
||||
/etc/fstab NORMAL
|
||||
/etc/passwd NORMAL
|
||||
/etc/group NORMAL
|
||||
/etc/gshadow NORMAL
|
||||
/etc/shadow NORMAL
|
||||
|
||||
/var/log p+n+u+g
|
||||
|
||||
# With AIDE's default verbosity level of 5, these would give lots of
|
||||
# warnings upon tree traversal. It might change with future version.
|
||||
#
|
||||
#=/lost\+found DIR
|
||||
#=/home DIR
|
|
@ -1,114 +0,0 @@
|
|||
Summary: Intrusion detection environment
|
||||
Name: aide
|
||||
Version: 0.17.4
|
||||
Release: 6%{?dist}
|
||||
URL: https://github.com/aide/aide
|
||||
License: GPLv2+
|
||||
Group: System Environment/Base
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/aide/aide/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=b6dba54fd204e1899d47b0b4139786cbeaa51c388027e2cfc1bb839297a70ae8ad6f37429594a730fac8007d62b4ba5b61a4aa22edbc55cbe986ccfaf5197f31
|
||||
|
||||
Source1: %{name}.conf
|
||||
|
||||
BuildRequires: build-essential
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: libgpg-error-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: audit-devel
|
||||
BuildRequires: libacl-devel
|
||||
BuildRequires: attr-devel
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: e2fsprogs-devel
|
||||
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: check-devel
|
||||
%endif
|
||||
|
||||
Requires: pcre
|
||||
Requires: libgpg-error
|
||||
Requires: openssl
|
||||
Requires: libgcrypt
|
||||
Requires: audit
|
||||
Requires: libacl
|
||||
Requires: attr
|
||||
Requires: libselinux
|
||||
Requires: curl-libs
|
||||
Requires: e2fsprogs
|
||||
|
||||
%description
|
||||
AIDE (Advanced Intrusion Detection Environment) is a file integrity
|
||||
checker and intrusion detection program.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
export HAVE_CHECK=1
|
||||
autoreconf -ivf
|
||||
%configure \
|
||||
--disable-static \
|
||||
--with-config_file=%{_sysconfdir}/%{name}.conf \
|
||||
--with-gcrypt \
|
||||
--with-zlib \
|
||||
--with-curl \
|
||||
--with-posix-acl \
|
||||
--with-selinux \
|
||||
--with-xattr \
|
||||
--with-e2fsattrs \
|
||||
--with-audit
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir} \
|
||||
%{buildroot}%{_sharedstatedir}/%{name} \
|
||||
%{buildroot}%{_var}/log/%{name} \
|
||||
|
||||
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.conf
|
||||
|
||||
chmod 600 %{buildroot}%{_sysconfdir}/%{name}.conf
|
||||
|
||||
chmod 700 %{buildroot}%{_sharedstatedir}/%{name} \
|
||||
%{buildroot}%{_var}/log/%{name}
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
make check %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||
%dir %{_sharedstatedir}/%{name}
|
||||
%{_var}/log/%{name}
|
||||
|
||||
%changelog
|
||||
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.17.4-6
|
||||
- Bump version as a part of openssl upgrade
|
||||
* Wed Aug 23 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.17.4-5
|
||||
- Use database_in inplace of database in aide.conf
|
||||
* Fri Apr 14 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.17.4-4
|
||||
- Bump version as a part of zlib upgrade
|
||||
* Sat Mar 25 2023 Guruswamy Basavaiah <bguruswamy@vmware.com> 0.17.4-3
|
||||
- In aide.conf removed verbose option and introduced log_level option
|
||||
* Thu Dec 22 2022 Guruswamy Basavaiah <bguruswamy@vmware.com> 0.17.4-2
|
||||
- Bump release as a part of libgpg-error upgrade to 1.46
|
||||
* Thu Sep 15 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.17.4-1
|
||||
- Upgrade to v0.17.4
|
||||
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 0.16.2-2
|
||||
- openssl 1.1.1
|
||||
* Wed Aug 14 2019 Tapas Kundu <tkundu@vmware.com> 0.16.2-1
|
||||
- Initial build for Photon
|
|
@ -1,69 +0,0 @@
|
|||
Summary: ALSA library
|
||||
Name: alsa-lib
|
||||
Version: 1.2.8
|
||||
Release: 1%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: http://alsa-project.org
|
||||
Group: Applications/Internet
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://www.alsa-project.org/files/pub/lib/%{name}-%{version}.tar.bz2
|
||||
%define sha512 %{name}=865ff05a8f589996f8d63d43a91c961f1b64144f3e1d17c7074b7ac16f25b3fd1c371d46ed63a8cc20fa01e63c76b75f1a9802b56889ae1073854dd050d27688
|
||||
|
||||
BuildRequires: python3-devel
|
||||
|
||||
Requires: python3
|
||||
|
||||
%description
|
||||
The ALSA Library package contains the ALSA library used by programs
|
||||
(including ALSA Utilities) requiring access to the ALSA sound interface.
|
||||
|
||||
%package devel
|
||||
Summary: Header and development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
It contains the libraries and header files to create applications
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so*
|
||||
%{_libdir}/pkgconfig/*
|
||||
%exclude %dir %{_libdir}/debug
|
||||
%{_datadir}/*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*
|
||||
|
||||
%changelog
|
||||
* Fri Oct 28 2022 Gerrit Photon <photon-checkins@vmware.com> 1.2.8-1
|
||||
- Automatic Version Bump
|
||||
* Mon Jul 11 2022 Gerrit Photon <photon-checkins@vmware.com> 1.2.7.2-1
|
||||
- Automatic Version Bump
|
||||
* Sun May 29 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.2.6.1-2
|
||||
- Fix binary path
|
||||
* Mon Apr 18 2022 Gerrit Photon <photon-checkins@vmware.com> 1.2.6.1-1
|
||||
- Automatic Version Bump
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 1.2.4-1
|
||||
- Automatic Version Bump
|
||||
* Mon Jul 20 2020 Tapas Kundu <tkundu@vmware.com> 1.2.3.2-2
|
||||
- Build with python3
|
||||
- Mass removal python2
|
||||
* Wed Jul 08 2020 Gerrit Photon <photon-checkins@vmware.com> 1.2.3.2-1
|
||||
- Automatic Version Bump
|
||||
* Mon Dec 10 2018 Alexey Makhalov <amakhalov@vmware.com> 1.1.7-1
|
||||
- initial version, moved from Vivace.
|
|
@ -1,71 +0,0 @@
|
|||
Summary: ALSA Utilities
|
||||
Name: alsa-utils
|
||||
Version: 1.2.8
|
||||
Release: 2%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: http://alsa-project.org
|
||||
Group: Applications/Internet
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
Source0: https://www.alsa-project.org/files/pub/utils/%{name}-%{version}.tar.bz2
|
||||
%define sha512 %{name}=882e6f67467596ed273bf554fcce87d8ef287806bbdabd6c103de4980981f9e2102fb3800c6e8628ee8e86ffb165c1c92f9370c8145f28a6cb7cca563942330b
|
||||
|
||||
Patch0: ens1371.patch
|
||||
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: systemd-devel
|
||||
|
||||
Requires: linux-drivers-sound
|
||||
Requires: alsa-lib
|
||||
Requires: ncurses
|
||||
|
||||
%description
|
||||
The ALSA Utilities package contains various utilities which are useful for controlling your sound card.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --disable-alsaconf \
|
||||
--disable-xmlto \
|
||||
--with-udev-rules-dir=%{_udevrulesdir} \
|
||||
--with-systemdsystemunitdir=%{_unitdir}
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
install -dm 755 %{buildroot}%{_sharedstatedir}/alsa
|
||||
find %{buildroot} -name \*.la -delete
|
||||
|
||||
%post
|
||||
alsactl init
|
||||
alsactl -L store
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%{_datadir}/*
|
||||
%{_localstatedir}/*
|
||||
%{_unitdir}/*
|
||||
%{_udevrulesdir}/*
|
||||
%{_libdir}/alsa-topology/libalsatplg_module_nhlt.so
|
||||
%exclude %dir %{_libdir}/debug
|
||||
|
||||
%changelog
|
||||
* Fri Jun 09 2023 Nitesh Kumar <kunitesh@vmware.com> 1.2.8-2
|
||||
- Bump version as a part of ncurses upgrade to v6.4
|
||||
* Fri Oct 28 2022 Gerrit Photon <photon-checkins@vmware.com> 1.2.8-1
|
||||
- Automatic Version Bump
|
||||
* Mon Jul 11 2022 Gerrit Photon <photon-checkins@vmware.com> 1.2.7-1
|
||||
- Automatic Version Bump
|
||||
* Mon Feb 28 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.2.4-2
|
||||
- Fix binary path
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 1.2.4-1
|
||||
- Automatic Version Bump
|
||||
* Wed Jul 08 2020 Gerrit Photon <photon-checkins@vmware.com> 1.2.3-1
|
||||
- Automatic Version Bump
|
||||
* Mon Dec 10 2018 Alexey Makhalov <amakhalov@vmware.com> 1.1.7-1
|
||||
- initial version, moved from Vivace
|
|
@ -1,54 +0,0 @@
|
|||
diff -Naur alsa-utils-1.0.29/alsactl/init/00main alsa-utils-1.0.29_/alsactl/init/00main
|
||||
--- alsa-utils-1.0.29/alsactl/init/00main 2015-02-26 06:49:40.000000000 -0800
|
||||
+++ alsa-utils-1.0.29_/alsactl/init/00main 2015-06-02 09:57:23.342226526 -0700
|
||||
@@ -32,6 +32,7 @@
|
||||
# real ALSA configuration database
|
||||
CARDINFO{driver}=="HDA-Intel", INCLUDE="hda", GOTO="init_end"
|
||||
CARDINFO{driver}=="CA0106", INCLUDE="ca0106", GOTO="init_end"
|
||||
+CARDINFO{driver}=="ENS1371", INCLUDE="ens1371", GOTO="init_end"
|
||||
CARDINFO{driver}=="Test", INCLUDE="test", GOTO="init_end"
|
||||
|
||||
LABEL="init_end"
|
||||
diff -Naur alsa-utils-1.0.29/alsactl/init/ens1371 alsa-utils-1.0.29_/alsactl/init/ens1371
|
||||
--- alsa-utils-1.0.29/alsactl/init/ens1371 1969-12-31 16:00:00.000000000 -0800
|
||||
+++ alsa-utils-1.0.29_/alsactl/init/ens1371 2014-01-16 20:20:09.000000000 -0800
|
||||
@@ -0,0 +1,15 @@
|
||||
+# Configuration for ensoniq based cards
|
||||
+
|
||||
+CARDINFO{mixername}=="Cirrus Logic CS4297A rev 3", \
|
||||
+ ATTR{subsystem_vendor}=="0x1274", ATTR{subsystem_device}=="0x1371", \
|
||||
+ GOTO="vmware-ac97"
|
||||
+RESULT="false", EXIT="return"
|
||||
+
|
||||
+LABEL="vmware-ac97"
|
||||
+# playback
|
||||
+CTL{reset}="mixer"
|
||||
+CTL{name}="Master Playback Volume", CTL{value}="0dB,0dB"
|
||||
+CTL{name}="Master Playback Switch", CTL{value}="on"
|
||||
+CTL{name}="PCM Playback Volume", CTL{value}="51dB,51dB"
|
||||
+CTL{name}="PCM Playback Switch", CTL{value}="on"
|
||||
+RESULT="true", EXIT="return"
|
||||
diff -Naur alsa-utils-1.0.29/alsactl/init/Makefile.am alsa-utils-1.0.29_/alsactl/init/Makefile.am
|
||||
--- alsa-utils-1.0.29/alsactl/init/Makefile.am 2015-02-26 06:49:40.000000000 -0800
|
||||
+++ alsa-utils-1.0.29_/alsactl/init/Makefile.am 2015-06-02 10:50:52.732086372 -0700
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
init_files = \
|
||||
00main default help info test \
|
||||
- hda ca0106
|
||||
+ hda ca0106 ens1371
|
||||
EXTRA_DIST = $(init_files)
|
||||
alsainitdir = $(datadir)/alsa/init
|
||||
alsainit_DATA = $(init_files)
|
||||
diff -Naur alsa-utils-1.0.29/alsactl/init/Makefile.in alsa-utils-1.0.29_/alsactl/init/Makefile.in
|
||||
--- alsa-utils-1.0.29/alsactl/init/Makefile.in 2015-02-26 06:50:21.000000000 -0800
|
||||
+++ alsa-utils-1.0.29_/alsactl/init/Makefile.in 2015-06-02 10:50:45.164213531 -0700
|
||||
@@ -246,7 +246,7 @@
|
||||
xmlto_available = @xmlto_available@
|
||||
init_files = \
|
||||
00main default help info test \
|
||||
- hda ca0106
|
||||
+ hda ca0106 ens1371
|
||||
|
||||
EXTRA_DIST = $(init_files)
|
||||
alsainitdir = $(datadir)/alsa/init
|
|
@ -1,69 +0,0 @@
|
|||
Summary: AMD Open Source Driver for Vulkan
|
||||
Name: amdvlk
|
||||
Version: 2023.Q1.3
|
||||
Release: 3%{?dist}
|
||||
License: MIT
|
||||
URL: https://github.com/GPUOpen-Drivers/AMDVLK
|
||||
Group: System Environment/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/GPUOpen-Drivers/AMDVLK/archive/refs/tags/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=118c960c1a737f48095667283278d901284bdd5d6e9853759026781600decb59a81436683545063316661a11300dbc1be2b6e71cecf9968be91a31d83d09ae34
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: ninja-build
|
||||
BuildRequires: proto
|
||||
BuildRequires: libxcb-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: wayland-devel
|
||||
BuildRequires: libwayland-client
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libffi-devel
|
||||
BuildRequires: libXrandr-devel
|
||||
BuildRequires: libXrender-devel
|
||||
BuildRequires: libxshmfence-devel
|
||||
|
||||
%description
|
||||
AMD Open Source Driver for Vulkan
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
cmake -B %{_target_platform} \
|
||||
-DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
||||
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
|
||||
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
|
||||
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
|
||||
-GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-S xgl -DLLVM_PARALLEL_LINK_JOBS=1 \
|
||||
-DVKI_RAY_TRACING=OFF -Wno-dev
|
||||
cmake --build %{_target_platform} %{?_smp_mflags} --verbose
|
||||
|
||||
%install
|
||||
DESTDIR=%{buildroot} cmake --install %{_target_platform} --component icd
|
||||
chmod +x %{buildroot}%{_libdir}/amdvlk64.so
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/vulkan/icd.d/amd_icd64.json
|
||||
%{_sysconfdir}/vulkan/implicit_layer.d/amd_icd64.json
|
||||
%{_libdir}/amdvlk64.so
|
||||
%license %{_datadir}/doc/%{name}/LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Wed Jun 14 2023 Shivani Agarwal <shivania2@vmware.com> 2023.Q1.3-3
|
||||
- Bump version as a part of libX11 upgrade
|
||||
* Wed Apr 19 2023 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 2023.Q1.3-2
|
||||
- Bump version as a part of libxml2 upgrade
|
||||
* Thu Feb 23 2023 Shivani Agarwal <shivania2@vmware.com> - 2023.Q1.3-1
|
||||
- Initial version
|
|
@ -1,59 +0,0 @@
|
|||
%global collection_namespace community
|
||||
%global collection_name general
|
||||
|
||||
Summary: Modules and plugins supported by Ansible community
|
||||
Name: ansible-community-general
|
||||
Version: 6.3.0
|
||||
Release: 1%{?dist}
|
||||
License: GPL-3.0-or-later AND BSD-2-Clause AND MIT AND PSF-2.0
|
||||
URL: https://github.com/ansible-collections/community.general
|
||||
Group: Development/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/ansible-collections/community.general/archive/refs/tags/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}-%{version}=33881ae519e6378152cf5ef9d9dcc209bc7e5e218190ba48b61a7635890c6abf5089b8d199e78518d1a06a3e8e0e8c25b5da1d03fc6cbb8929c3bd07cd0798f4
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: ansible-devel
|
||||
|
||||
Requires: ansible
|
||||
|
||||
%description
|
||||
This repository contains the community.general Ansible Collection. The collection is a part of the
|
||||
Ansible package and includes many modules and plugins supported by Ansible community which are not
|
||||
part of more specialized community collections.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n community.general-%{version}
|
||||
rm -vr .github .azure-pipelines
|
||||
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
|
||||
find -type f -name '.gitignore' -print -delete
|
||||
|
||||
%build
|
||||
export LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"
|
||||
%{ansible_collection_build}
|
||||
|
||||
%install
|
||||
export LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"
|
||||
%{ansible_collection_install}
|
||||
rm -vr %{buildroot}%{ansible_collection_files}/%{collection_name}/tests
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%{ansible_collection_files}
|
||||
|
||||
%changelog
|
||||
* Wed Feb 22 2023 Nitesh Kumar <kunitesh@vmware.com> 6.3.0-1
|
||||
- Version upgrade to v6.3.0
|
||||
* Tue Dec 13 2022 Gerrit Photon <photon-checkins@vmware.com> 6.1.0-1
|
||||
- Automatic Version Bump
|
||||
* Fri Nov 25 2022 Shreenidhi Shedi <sshedi@vmware.com> 6.0.1-1
|
||||
- Upgrade to v6.0.1
|
||||
* Tue Oct 25 2022 Gerrit Photon <photon-checkins@vmware.com> 5.8.0-1
|
||||
- Automatic Version Bump
|
||||
* Thu Oct 06 2022 Gerrit Photon <photon-checkins@vmware.com> 5.7.0-1
|
||||
- Automatic Version Bump
|
||||
* Wed Sep 28 2022 Nitesh Kumar <kunitesh@vmware.com> 5.6.0-1
|
||||
- Initial version
|
|
@ -1,56 +0,0 @@
|
|||
%global collection_namespace ansible
|
||||
%global collection_name posix
|
||||
|
||||
Summary: Ansible Collection targeting POSIX and POSIX-ish platforms
|
||||
Name: ansible-posix
|
||||
Version: 1.5.1
|
||||
Release: 1%{?dist}
|
||||
License: GPLv3+ and Python
|
||||
URL: https://github.com/ansible-collections/ansible.posix
|
||||
Group: Development/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/ansible-collections/ansible.posix/archive/refs/tags/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}-%{version}=5132d792b75c2b6d3779e95c28c1141807286b6f77370a5fa95325a74f723409393eb2d2585aa1b99f92b390925b6b76e208f0b25367397db7ccb5de869c252f
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: ansible-devel
|
||||
|
||||
Requires: ansible
|
||||
|
||||
%description
|
||||
An Ansible Collection of modules and plugins that target POSIX UNIX/Linux and derivative Operating Systems.
|
||||
|
||||
%prep
|
||||
%autosetup -n ansible.posix-%{version}
|
||||
rm -vr tests/{integration,utils} \
|
||||
.github \
|
||||
changelogs/fragments/.keep \
|
||||
{test-,}requirements.txt \
|
||||
shippable.yml \
|
||||
.azure-pipelines
|
||||
|
||||
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
|
||||
find -type f -name '.gitignore' -print -delete
|
||||
|
||||
%build
|
||||
export LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"
|
||||
%{ansible_collection_build}
|
||||
|
||||
%install
|
||||
export LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"
|
||||
%{ansible_collection_install}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%{ansible_collection_files}
|
||||
|
||||
%changelog
|
||||
* Wed Feb 22 2023 Nitesh Kumar <kunitesh@vmware.com> 1.5.1-1
|
||||
- Version upgrade to v1.5.1
|
||||
* Fri Nov 25 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.4.0-2
|
||||
- Bump version as a part of ansible upgrade
|
||||
* Wed Sep 28 2022 Nitesh Kumar <kunitesh@vmware.com> 1.4.0-1
|
||||
- Initial version
|
|
@ -1,126 +0,0 @@
|
|||
Summary: Configuration-management, application deployment, cloud provisioning system
|
||||
Name: ansible
|
||||
Version: 2.14.2
|
||||
Release: 2%{?dist}
|
||||
License: GPLv3+
|
||||
URL: https://www.ansible.com
|
||||
Group: Development/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://releases.ansible.com/ansible/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=46ad59c694bf2aa1fc42d2f3b3074244c8d1d3acb61eb5787bd18d1efe3cc534459fc9c0628a0f60c67bd82c998f8cbbac80babf24258c37ff5ce95c8cf7900d
|
||||
|
||||
Source1: tdnf.py
|
||||
Source2: macros.ansible
|
||||
Source3: ansible_collection.py
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-resolvelib
|
||||
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-jinja2 >= 3.1.2
|
||||
BuildRequires: python3-PyYAML
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-cryptography
|
||||
%endif
|
||||
|
||||
Requires: python3
|
||||
Requires: python3-jinja2 >= 3.1.2
|
||||
Requires: python3-PyYAML
|
||||
Requires: python3-xml
|
||||
Requires: python3-paramiko
|
||||
Requires: python3-resolvelib
|
||||
Requires: python3-curses
|
||||
|
||||
%description
|
||||
Ansible is a radically simple IT automation system. It handles configuration-management, application deployment, cloud provisioning, ad-hoc task-execution, and multinode orchestration - including trivializing things like zero downtime rolling updates with load balancers.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for ansible packages
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files for ansible packages
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
cp -vp %{SOURCE1} lib/%{name}/modules/
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
install -Dpm0644 %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
||||
touch -r %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
||||
install -Dpm0744 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/%{name}_collection.py
|
||||
touch -r %{SOURCE3} %{buildroot}%{_rpmconfigdir}/%{name}_collection.py
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%{_bindir}/*
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root)
|
||||
%{_rpmmacrodir}/macros.%{name}
|
||||
%{_rpmconfigdir}/%{name}_collection.py
|
||||
|
||||
%changelog
|
||||
* Mon Nov 13 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.14.2-2
|
||||
- Fix requires
|
||||
- Fix an issue in upgrade using playbook.
|
||||
* Wed Feb 22 2023 Nitesh Kumar <kunitesh@vmware.com> 2.14.2-1
|
||||
- Version upgrade to v2.14.2
|
||||
* Fri Dec 16 2022 Nitesh Kumar <kunitesh@vmware.com> 2.14.1-1
|
||||
- Version upgrade to v2.14.1
|
||||
* Tue Dec 06 2022 Prashant S Chauhan <psinghchauha@vmware.com> 2.14.0-2
|
||||
- Update release to compile with python 3.11
|
||||
* Fri Nov 25 2022 Shreenidhi Shedi <sshedi@vmware.com> 2.14.0-1
|
||||
- Upgrade to v2.14.0
|
||||
* Fri Oct 28 2022 Gerrit Photon <photon-checkins@vmware.com> 2.13.5-1
|
||||
- Automatic Version Bump
|
||||
* Wed Sep 28 2022 Nitesh Kumar <kunitesh@vmware.com> 2.13.3-2
|
||||
- Adding devel sub package
|
||||
* Sat Sep 03 2022 Shreenidhi Shedi <sshedi@vmware.com> 2.13.3-1
|
||||
- Upgrade to v2.13.3
|
||||
* Mon Apr 18 2022 Gerrit Photon <photon-checkins@vmware.com> 2.9.27-1
|
||||
- Automatic Version Bump
|
||||
* Fri Dec 10 2021 Shreenidhi Shedi <sshedi@vmware.com> 2.12.1-1
|
||||
- Upgrade to v2.12.1 & fix tdnf module packaging
|
||||
* Wed Jun 02 2021 Shreenidhi Shedi <sshedi@vmware.com> 2.11.1-1
|
||||
- Bump version to 2.11.1
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 2.9.20-1
|
||||
- Automatic Version Bump
|
||||
* Fri Jul 03 2020 Shreendihi Shedi <sshedi@vmware.com> 2.9.10-1
|
||||
- Upgrade to version 2.9.10
|
||||
- Removed python2 dependancy
|
||||
* Mon Apr 20 2020 Shreenidhi Shedi <sshedi@vmware.com> 2.8.10-2
|
||||
- Fix CVE-2020-1733, CVE-2020-1739
|
||||
* Fri Apr 03 2020 Shreenidhi Shedi <sshedi@vmware.com> 2.8.10-1
|
||||
- Upgrade version to 2.8.10 & various CVEs fixed
|
||||
* Sun Feb 16 2020 Shreenidhi Shedi <sshedi@vmware.com> 2.8.3-3
|
||||
- Fix 'make check'
|
||||
* Thu Feb 06 2020 Shreenidhi Shedi <sshedi@vmware.com> 2.8.3-2
|
||||
- Fix for CVE-2019-14864
|
||||
- Fix dependencies
|
||||
- Patch to support tdnf operations
|
||||
* Mon Aug 12 2019 Shreenidhi Shedi <sshedi@vmware.com> 2.8.3-1
|
||||
- Upgraded to version 2.8.3
|
||||
* Tue Jan 22 2019 Anish Swaminathan <anishs@vmware.com> 2.7.6-1
|
||||
- Version update to 2.7.6, fix CVE-2018-16876
|
||||
* Mon Sep 17 2018 Ankit Jain <ankitja@vmware.com> 2.6.4-1
|
||||
- Version update to 2.6.4
|
||||
* Thu Oct 12 2017 Anish Swaminathan <anishs@vmware.com> 2.4.0.0-1
|
||||
- Version update to 2.4.0.0
|
||||
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 2.2.2.0-2
|
||||
- Use python2 explicitly
|
||||
* Thu Apr 6 2017 Alexey Makhalov <amakhalov@vmware.com> 2.2.2.0-1
|
||||
- Version update
|
||||
* Wed Sep 21 2016 Xiaolin Li <xiaolinl@vmware.com> 2.1.1.0-1
|
||||
- Initial build. First version
|
|
@ -1,153 +0,0 @@
|
|||
#!/usr/bin/python3
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# SPDX-FileCopyrightText 2022 Maxwell G <gotmax@e.email>
|
||||
|
||||
"""
|
||||
This script uses Ansible Collection metadata from galaxy.yml to figure out the
|
||||
namespace, name, and version of the collection being packaged.
|
||||
|
||||
``ansible_collection.py install`` (used by %ansible_collecton_install) uses
|
||||
this information to find and install the collection artifact that was just
|
||||
built with %ansible_collection_build. It also generates a files list for use
|
||||
with `%files -f`.
|
||||
|
||||
``ansible_collection.py test`` (used by %ansible_test_unit) parses galaxy.yml
|
||||
to determine the collection namespace and name that's needed to create the
|
||||
directory structure that ansible-test expects. After creating a temporary build
|
||||
directory with the needed structure, the script runs ansible-test units with
|
||||
the provided arguments.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from tempfile import TemporaryDirectory
|
||||
from typing import Any, Dict, Optional, Sequence, Union
|
||||
|
||||
from yaml import CSafeLoader, load
|
||||
|
||||
|
||||
class CollectionError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class AnsibleCollection:
|
||||
def __init__(self, collection_srcdir: Optional[Path] = None) -> None:
|
||||
self.collection_srcdir = collection_srcdir or Path.cwd()
|
||||
self.data = self._load_data()
|
||||
self.namespace = self.data["namespace"]
|
||||
self.name = self.data["name"]
|
||||
self.version = self.data["version"]
|
||||
|
||||
def _load_data(self) -> Dict[str, Any]:
|
||||
path = self.collection_srcdir / "galaxy.yml"
|
||||
if not path.exists():
|
||||
raise CollectionError(f"{path} does not exist!")
|
||||
print(f"Loading collection metadata from {path}")
|
||||
|
||||
with open(path, encoding="utf-8") as file:
|
||||
return load(file, Loader=CSafeLoader)
|
||||
|
||||
def install(self, destdir: Union[str, Path]) -> None:
|
||||
artifact = self.collection_srcdir / Path(
|
||||
f"{self.namespace}-{self.name}-{self.version}.tar.gz"
|
||||
)
|
||||
if not artifact.exists() and not artifact.is_file():
|
||||
raise CollectionError(
|
||||
f"{artifact} does not exist! Did you run %ansible_collection_build?"
|
||||
)
|
||||
|
||||
args = (
|
||||
"ansible-galaxy",
|
||||
"collection",
|
||||
"install",
|
||||
"-n",
|
||||
"-p",
|
||||
str(destdir),
|
||||
str(artifact),
|
||||
)
|
||||
print(f"Running: {args}")
|
||||
print()
|
||||
# Without this, the print statements are shown after the command
|
||||
# output when building in mock.
|
||||
sys.stdout.flush()
|
||||
subprocess.run(args, check=True, cwd=self.collection_srcdir)
|
||||
print()
|
||||
|
||||
def write_filelist(self, filelist: Path) -> None:
|
||||
filelist.parent.mkdir(parents=True, exist_ok=True)
|
||||
contents = "%{ansible_collections_dir}/" + self.namespace
|
||||
print(f"Writing filelist to {filelist}")
|
||||
with open(filelist, "w", encoding="utf-8") as file:
|
||||
file.write(contents)
|
||||
|
||||
def unit_test(self, extra_args: Sequence) -> None:
|
||||
with TemporaryDirectory() as temp:
|
||||
temppath = Path(temp) / "ansible_collections" / self.namespace / self.name
|
||||
shutil.copytree(
|
||||
self.collection_srcdir,
|
||||
temppath,
|
||||
)
|
||||
args = ("ansible-test", "units", *extra_args)
|
||||
print(f"Running: {args}")
|
||||
print()
|
||||
# Without this, the print statements are shown after the command
|
||||
# output when building in mock.
|
||||
sys.stdout.flush()
|
||||
subprocess.run(args, cwd=temppath, check=True)
|
||||
|
||||
|
||||
def parseargs() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(
|
||||
"Install and test Ansible Collections in an rpmbuild environment"
|
||||
)
|
||||
subparsers = parser.add_subparsers(dest="action")
|
||||
install_parser = subparsers.add_parser(
|
||||
"install",
|
||||
help="Run ansible-galaxy collection install and write filelist",
|
||||
)
|
||||
install_parser.add_argument(
|
||||
"--collections-dir",
|
||||
required=True,
|
||||
help="Collection destination directory",
|
||||
type=Path,
|
||||
)
|
||||
install_parser.add_argument(
|
||||
"--filelist",
|
||||
type=Path,
|
||||
required=True,
|
||||
help="%%{ansible_collection_filelist}",
|
||||
)
|
||||
|
||||
test_parser = subparsers.add_parser(
|
||||
"test",
|
||||
help="Run ansible-test unit after creating the necessary directory structure",
|
||||
)
|
||||
test_parser.add_argument(
|
||||
"extra_args", nargs="*", help="Extra arguments to pass to ansible-test"
|
||||
)
|
||||
args = parser.parse_args()
|
||||
# add_subparsers does not support required on Python 3.6
|
||||
if not args.action:
|
||||
parser.print_usage()
|
||||
sys.exit(2)
|
||||
return args
|
||||
|
||||
|
||||
def main():
|
||||
args = parseargs()
|
||||
collection = AnsibleCollection()
|
||||
if args.action == "install":
|
||||
collection.install(args.collections_dir)
|
||||
collection.write_filelist(args.filelist)
|
||||
elif args.action == "test":
|
||||
collection.unit_test(args.extra_args)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
except (CollectionError, subprocess.CalledProcessError) as err:
|
||||
sys.exit(err)
|
|
@ -1,32 +0,0 @@
|
|||
# Stores ephemeral data that's created by %%ansible_collection_install
|
||||
# and used by other macros.
|
||||
%__ansible_builddir %{_builddir}/%{?buildsubdir:%{buildsubdir}/}.ansible-packaging
|
||||
|
||||
%ansible_roles_dir %{_datadir}/ansible/roles
|
||||
%ansible_collections_dir %{_datadir}/ansible/collections/ansible_collections
|
||||
|
||||
%ansible_collection_build() ansible-galaxy collection build
|
||||
|
||||
# On F36, package-notes-srpm-macros inserts a package note file into
|
||||
# %%{buildsubdir} that ends up getting included in the collection builds.
|
||||
%ansible_collection_install() %{shrink:
|
||||
%undefine _package_note_file
|
||||
%{_rpmconfigdir}/ansible_collection.py install
|
||||
--collections-dir %{buildroot}%{ansible_collections_dir}
|
||||
--filelist %{ansible_collection_filelist}
|
||||
}
|
||||
|
||||
%ansible_test_unit() %{shrink:
|
||||
%{_rpmconfigdir}/ansible_collection.py test --
|
||||
--python-interpreter %{__python3} --local %{?*}
|
||||
}
|
||||
|
||||
# TODO: Officially deprecate this macro and add the following line to the macro
|
||||
# def after the new approach has gotten more testing and adoption:
|
||||
# %%{warn: %%{ansible_collection_files} is deprecated. Use %%files -f %%{ansible_collection_filelist} instead.}
|
||||
%ansible_collection_files %{shrink:
|
||||
%{ansible_collections_dir}/%{collection_namespace}/
|
||||
}
|
||||
|
||||
%ansible_collection_filelist %{__ansible_builddir}/ansible_collection_files
|
||||
|
|
@ -1,371 +0,0 @@
|
|||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright (C) 2021 VMware, Inc. All Rights Reserved.
|
||||
#
|
||||
# GNU General Public License v3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
#
|
||||
|
||||
""" tdnf ansible module for Photon OS """
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
__metaclass__ = type
|
||||
|
||||
|
||||
DOCUMENTATION = """
|
||||
---
|
||||
module: tdnf
|
||||
short_description: Tiny DNF package manager
|
||||
description:
|
||||
- Manages rpm packages in VMware Photon OS.
|
||||
version_added: "2.12.1"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
- A package name, like C(foo), or multiple packages, like C(foo, bar).
|
||||
aliases:
|
||||
- pkg
|
||||
type: list
|
||||
elements: str
|
||||
|
||||
state:
|
||||
description:
|
||||
- Indicates the desired package(s) state.
|
||||
- C(present) ensures the package(s) is/are present.
|
||||
- C(absent) ensures the package(s) is/are absent.
|
||||
- C(latest) ensures the package(s) is/are present and the latest version(s).
|
||||
- C(removed) ensures the package(s) is/are removed.
|
||||
- C(installed) ensures the package(s) is/are installed.
|
||||
type: str
|
||||
default: present
|
||||
choices: ['present', 'installed', 'absent', 'removed', 'latest']
|
||||
|
||||
update_cache:
|
||||
description:
|
||||
- Update repo metadata cache. Can be run with other steps or on it's own.
|
||||
type: bool
|
||||
default: 'no'
|
||||
|
||||
upgrade:
|
||||
description:
|
||||
- Upgrade all installed packages to their latest version.
|
||||
type: bool
|
||||
default: 'no'
|
||||
|
||||
enablerepo:
|
||||
description:
|
||||
- I(Repoid) of repositories to enable for the install/update operation.
|
||||
When specifying multiple repos, separate them with a ",".
|
||||
type: list
|
||||
elements: str
|
||||
|
||||
disablerepo:
|
||||
description:
|
||||
- I(Repoid) of repositories to disable for the install/update operation.
|
||||
When specifying multiple repos, separate them with a ",".
|
||||
type: list
|
||||
elements: str
|
||||
|
||||
conf_file:
|
||||
description:
|
||||
- The tdnf configuration file to use for the transaction.
|
||||
type: str
|
||||
|
||||
disable_gpg_check:
|
||||
description:
|
||||
- Whether to disable the GPG checking of signatures of packages being
|
||||
installed. Has an effect only if state is I(present) or I(latest).
|
||||
type: bool
|
||||
default: 'no'
|
||||
|
||||
installroot:
|
||||
description:
|
||||
- Specifies an alternative installroot, relative to which all packages
|
||||
will be installed.
|
||||
type: str
|
||||
default: '/'
|
||||
|
||||
security_severity:
|
||||
description:
|
||||
- Specifies the CVSS v3 score above which to install updates for packages
|
||||
type: str
|
||||
|
||||
releasever:
|
||||
description:
|
||||
- Specifies an alternative release from which all packages will be
|
||||
installed.
|
||||
type: str
|
||||
|
||||
exclude:
|
||||
description:
|
||||
- Package name(s) to exclude when state=present, or latest. This can be a
|
||||
list or a comma separated string.
|
||||
type: list
|
||||
elements: str
|
||||
|
||||
author:
|
||||
- Anish Swaminathan (@suezzelur) <anishs@vmware.com>
|
||||
- Shreenidhi Shedi (@sshedi) <sshedi@vmware.com>
|
||||
|
||||
notes:
|
||||
- '"name" and "upgrade" are mutually exclusive.'
|
||||
- When used with a `loop:` each package will be processed individually, it is much more efficient to pass the list directly to the `name` option.
|
||||
"""
|
||||
|
||||
EXAMPLES = """
|
||||
# Update repositories and install "foo" package
|
||||
- tdnf:
|
||||
name: ['foo']
|
||||
update_cache: yes
|
||||
|
||||
# Update repositories and install "foo" and "bar" packages
|
||||
- tdnf:
|
||||
name: ['foo', 'bar']
|
||||
update_cache: yes
|
||||
|
||||
# Remove "foo" package
|
||||
- tdnf:
|
||||
name: ['foo']
|
||||
state: absent
|
||||
|
||||
# Remove "foo" and "bar" packages
|
||||
- tdnf:
|
||||
name: ['foo', 'bar']
|
||||
state: absent
|
||||
|
||||
# Install the package "foo"
|
||||
- tdnf:
|
||||
name: ['foo']
|
||||
state: present
|
||||
|
||||
# Install the packages "foo" and "bar"
|
||||
- tdnf:
|
||||
name: ['foo', 'bar']
|
||||
state: present
|
||||
|
||||
# Update repositories and update package "foo" to latest version
|
||||
- tdnf:
|
||||
name: ['foo']
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
||||
# Update repositories and update packages "foo" and "bar" to latest versions
|
||||
- tdnf:
|
||||
name: ['foo', 'bar']
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
||||
# Update all installed packages to the latest versions
|
||||
- tdnf:
|
||||
upgrade: yes
|
||||
|
||||
# Update repositories as a separate step
|
||||
- tdnf:
|
||||
update_cache: yes
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
stdout:
|
||||
description: output from tdnf
|
||||
returned: success, when needed
|
||||
type: str
|
||||
stderr:
|
||||
description: error output from tdnf
|
||||
returned: success, when needed
|
||||
type: str
|
||||
rc:
|
||||
description: tdnf command return value
|
||||
returned: 0 on success
|
||||
type: int
|
||||
"""
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
||||
def prep_tdnf_cmd(cmd, p_dict):
|
||||
"""Prepare tdnf command based on given configs"""
|
||||
if p_dict["excludelist"]:
|
||||
cmd = "%s --exclude %s" % (cmd, ",".join(p_dict["excludelist"]))
|
||||
|
||||
if p_dict["disable_gpg_check"]:
|
||||
cmd = "%s --nogpgcheck" % cmd
|
||||
|
||||
if p_dict["releasever"]:
|
||||
cmd = "%s --releasever %s" % (cmd, p_dict["releasever"])
|
||||
|
||||
if p_dict["conf_file"]:
|
||||
cmd = "%s -c %s" % (cmd, p_dict["conf_file"])
|
||||
|
||||
if p_dict["installroot"] != "/":
|
||||
cmd = "%s --installroot %s" % (cmd, p_dict["installroot"])
|
||||
|
||||
for repo in p_dict["enablerepolist"]:
|
||||
cmd = "%s --enablerepo=%s" % (cmd, repo)
|
||||
|
||||
for repo in p_dict["disablerepolist"]:
|
||||
cmd = "%s --disablerepo=%s" % (cmd, repo)
|
||||
|
||||
if p_dict["security_severity"]:
|
||||
cmd = "%s --sec-severity %s" % (cmd, p_dict["security_severity"])
|
||||
|
||||
return cmd
|
||||
|
||||
|
||||
def exec_cmd(module, params):
|
||||
"""
|
||||
Run the final command
|
||||
get_out is a special value from update_package_db
|
||||
if it's set, we just update the db cache and exit
|
||||
"""
|
||||
get_out = params.get("get_out", False)
|
||||
check_rc = params.get("check_rc", False)
|
||||
|
||||
rc, out, err = module.run_command(params["cmd"], check_rc=check_rc)
|
||||
if rc:
|
||||
module.fail_json(msg=params["msg_f"], stdout=out, stderr=err)
|
||||
elif ("get_out" not in params and rc == 0) or get_out:
|
||||
module.exit_json(changed=True, msg=params["msg_s"], stdout=out, stderr=err)
|
||||
|
||||
|
||||
def update_package_db(module, get_out, p_dict):
|
||||
"""Update tdnf cache metadata"""
|
||||
cmd = "%s makecache --refresh -q" % (p_dict["tdnf"])
|
||||
cmd = prep_tdnf_cmd(cmd, p_dict)
|
||||
|
||||
params = {
|
||||
"cmd": cmd,
|
||||
"msg_s": "Updated package db",
|
||||
"msg_f": "Could not update package db",
|
||||
"get_out": get_out,
|
||||
}
|
||||
exec_cmd(module, params)
|
||||
|
||||
|
||||
def upgrade_packages(module, p_dict):
|
||||
"""Upgrade all packages"""
|
||||
cmd = "%s upgrade -y" % (p_dict["tdnf"])
|
||||
cmd = prep_tdnf_cmd(cmd, p_dict)
|
||||
params = {
|
||||
"cmd": cmd,
|
||||
"msg_s": "Upgraded packages",
|
||||
"msg_f": "Failed to upgrade packages",
|
||||
}
|
||||
|
||||
exec_cmd(module, params)
|
||||
|
||||
|
||||
def install_packages(module, p_dict):
|
||||
"""Install given packages"""
|
||||
packages = " ".join(p_dict["pkglist"])
|
||||
cmd = "%s install -y" % (p_dict["tdnf"])
|
||||
cmd = prep_tdnf_cmd(cmd, p_dict)
|
||||
cmd = "%s %s" % (cmd, packages)
|
||||
|
||||
params = {
|
||||
"cmd": cmd,
|
||||
"msg_s": "Installed %s package(s)" % (packages),
|
||||
"msg_f": "Failed to install %s" % (packages),
|
||||
}
|
||||
|
||||
exec_cmd(module, params)
|
||||
|
||||
|
||||
def remove_packages(module, p_dict):
|
||||
"""Erase/Uninstall packages"""
|
||||
packages = " ".join(p_dict["pkglist"])
|
||||
cmd = "%s erase -y %s" % (p_dict["tdnf"], packages)
|
||||
|
||||
params = {
|
||||
"cmd": cmd,
|
||||
"msg_s": "Removed %s package(s)" % (packages),
|
||||
"msg_f": "Failed to remove %s package(s)" % (packages),
|
||||
}
|
||||
|
||||
exec_cmd(module, params)
|
||||
|
||||
|
||||
def convert_to_list(input_list):
|
||||
"""Convert nested list into flat list"""
|
||||
flat_list = []
|
||||
|
||||
if not input_list:
|
||||
return flat_list
|
||||
|
||||
for sublist in input_list:
|
||||
if not isinstance(sublist, list):
|
||||
flat_list.append(sublist)
|
||||
continue
|
||||
for item in sublist:
|
||||
flat_list.append(item)
|
||||
|
||||
return flat_list
|
||||
|
||||
|
||||
def main():
|
||||
"""Trigger point function"""
|
||||
choices = ["present", "installed", "absent", "removed", "latest"]
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
state=dict(default="present", choices=choices),
|
||||
name=dict(type="list", elements="str", aliases=["pkg"]),
|
||||
update_cache=dict(default=False, type="bool"),
|
||||
upgrade=dict(default=False, type="bool"),
|
||||
enablerepo=dict(type="list", default=[], elements="str"),
|
||||
disablerepo=dict(type="list", default=[], elements="str"),
|
||||
disable_gpg_check=dict(type="bool", default=False),
|
||||
exclude=dict(type="list", default=[], elements="str"),
|
||||
installroot=dict(type="str", default="/"),
|
||||
security_severity=dict(type="str", default=None),
|
||||
releasever=dict(default=None),
|
||||
conf_file=dict(type="str", default=None),
|
||||
),
|
||||
required_one_of=[["name", "update_cache", "upgrade", "security_severity"]],
|
||||
mutually_exclusive=[["name", "upgrade"], ["name", "security_severity"]],
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
# Set LANG env since we parse stdout
|
||||
module.run_command_environ_update = dict(
|
||||
LANG="C", LC_ALL="C", LC_MESSAGES="C", LC_CTYPE="C"
|
||||
)
|
||||
|
||||
p_dict = module.params
|
||||
|
||||
pkglist = convert_to_list(p_dict["name"])
|
||||
enablerepolist = convert_to_list(p_dict["enablerepo"])
|
||||
disablerepolist = convert_to_list(p_dict["disablerepo"])
|
||||
excludelist = convert_to_list(p_dict["exclude"])
|
||||
|
||||
p_dict["tdnf"] = module.get_bin_path("tdnf", required=True)
|
||||
p_dict["pkglist"] = pkglist
|
||||
p_dict["enablerepolist"] = enablerepolist
|
||||
p_dict["disablerepolist"] = disablerepolist
|
||||
p_dict["excludelist"] = excludelist
|
||||
|
||||
# normalize the state parameter
|
||||
if p_dict["state"] in ["present", "installed", "latest"]:
|
||||
p_dict["state"] = "present"
|
||||
|
||||
if p_dict["state"] in ["absent", "removed"]:
|
||||
p_dict["state"] = "absent"
|
||||
|
||||
if p_dict["update_cache"]:
|
||||
get_out = True
|
||||
for key in ["name", "upgrade", "security_severity"]:
|
||||
if p_dict[key]:
|
||||
get_out = False
|
||||
break
|
||||
update_package_db(module, get_out, p_dict)
|
||||
|
||||
if p_dict["upgrade"]:
|
||||
upgrade_packages(module, p_dict)
|
||||
|
||||
if p_dict["state"] == "present":
|
||||
install_packages(module, p_dict)
|
||||
else:
|
||||
remove_packages(module, p_dict)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
|
@ -1,26 +0,0 @@
|
|||
diff --git a/build.xml b/build.xml
|
||||
index eb6a80b..dcf3522 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -58,8 +58,8 @@
|
||||
destdir="${target.classes.dir}"
|
||||
debug="true"
|
||||
classpathref="compile.classpath"
|
||||
- source="${jdk.source}"
|
||||
- target="${jdk.target}"
|
||||
+ source="1.8"
|
||||
+ target="1.8"
|
||||
/>
|
||||
|
||||
<copy todir="${target.classes.dir}">
|
||||
@@ -73,8 +73,8 @@
|
||||
<javac srcdir="${test.src.dir}"
|
||||
destdir="${target.test-classes.dir}"
|
||||
debug="true"
|
||||
- source="${jdk.source}"
|
||||
- target="${jdk.target}">
|
||||
+ source="1.8"
|
||||
+ target="1.8">
|
||||
<classpath>
|
||||
<path refid="test.classpath" />
|
||||
<pathelement location="${target.classes.dir}" />
|
|
@ -1,96 +0,0 @@
|
|||
%define ant_prefix %{_var}/opt/ant-contrib
|
||||
|
||||
Summary: Ant contrib
|
||||
Name: ant-contrib
|
||||
Version: 1.0b3
|
||||
Release: 18%{?dist}
|
||||
License: Apache
|
||||
URL: http://ant-contrib.sourceforget.net
|
||||
Group: Applications/System
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: https://packages.vmware.com/photon/photon_sources/1.0/%{name}-%{version}-src.tar.gz
|
||||
%define sha512 %{name}=fe59ad4867a00429719a7401701a433a90ed9c6ddb49a37072f8486ae0ca9c3da685a49d9376c8bb7b38f114a5293e1698b7fb314e71198bbb80f729547402eb
|
||||
|
||||
Patch0: use-system-provided-commons-httpclient-jar.patch
|
||||
Patch1: ant-contrib-java-8.patch
|
||||
|
||||
BuildRequires: openjdk11
|
||||
BuildRequires: apache-ant
|
||||
BuildRequires: commons-httpclient
|
||||
|
||||
Requires: (openjdk11-jre or openjdk17-jre)
|
||||
Requires: apache-ant
|
||||
|
||||
%description
|
||||
The Ant Contrib project is a collection of tasks for Apache Ant.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}
|
||||
# Use system provided commons-httpclient jar instead of bundled one
|
||||
find . -name '*.jar' -or -name '*.class' -delete
|
||||
|
||||
cp %{_datadir}/java/commons-httpclient/commons-httpclient.jar \
|
||||
lib/commons-httpclient/jars/commons-httpclient-3.1.jar
|
||||
|
||||
%build
|
||||
export JAVA_HOME=$(echo %{_libdir}/jvm/OpenJDK-*)
|
||||
ant -Ddist.dir="." -Dproject.version=%{version} dist
|
||||
|
||||
%install
|
||||
export JAVA_HOME=$(echo %{_libdir}/jvm/OpenJDK-*)
|
||||
mkdir -p -m 700 %{buildroot}%{_var}/opt
|
||||
|
||||
cd %{buildroot}%{_var}/opt
|
||||
tar xzf %{_builddir}/%{name}/%{name}-%{version}-bin.tar.gz --wildcards "*.jar"
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{ant_prefix}
|
||||
%dir %{ant_prefix}/lib
|
||||
%{ant_prefix}/*.jar
|
||||
%{ant_prefix}/lib/*.jar
|
||||
|
||||
%changelog
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.0b3-18
|
||||
- Require jdk11 or jdk17
|
||||
* Sat Jun 17 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.0b3-17
|
||||
- Bump version as a part of openjdk11 upgrade
|
||||
* Wed Sep 21 2022 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 1.0b3-16
|
||||
- Use openjdk11
|
||||
* Thu Nov 12 2020 Michelle Wang <michellew@vmware.com> 1.0b3-15
|
||||
- Update Source0 use https://packages.vmware.com/photon/photon_sources
|
||||
* Tue Oct 06 2020 Ankit Jain <ankitja@vmware.com> 1.0b3-14
|
||||
- Use systems commons-httpclient
|
||||
* Mon Nov 05 2018 Alexey Makhalov <amakhalov@vmware.com> 1.0b3-13
|
||||
- Removed dependency on JAVA8_VERSION macro
|
||||
* Mon Jun 19 2017 Divya Thaluru <dthaluru@vmware.com> 1.0b3-12
|
||||
- Removed dependency on ANT_HOME
|
||||
* Thu May 18 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.0b3-11
|
||||
- Renamed openjdk to openjdk8
|
||||
* Fri Apr 07 2017 Divya Thaluru <dthaluru@vmware.com> 1.0b3-10
|
||||
- Removed prebuilt binaries from source tar ball
|
||||
* Wed Dec 21 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0b3-9
|
||||
- Updated JAVA_HOME path to point to latest.
|
||||
* Tue Oct 04 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0b3-8
|
||||
- Updated JAVA_HOME path to point to latest.
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0b3-7
|
||||
- GA - Bump release of all rpms
|
||||
* Fri May 20 2016 Divya Thaluru<dthaluru@vmware.com> 1.0b3-6
|
||||
- Updated JAVA_HOME path to point to latest.
|
||||
* Wed Mar 02 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.0b3.0-5
|
||||
- Updated apache-ant to version 1.9.6
|
||||
* Fri Feb 26 2016 Kumar Kaushik <kaushikk@vmware.com> 1.0b3.0-4
|
||||
- Updated JAVA_HOME path to point to latest.
|
||||
* Mon Nov 16 2015 Sharath George <sharathg@vmware.com> 1.0b3.0-2
|
||||
- Change path to /var/opt.
|
||||
* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.0b3.0-1
|
||||
- Updated dependencies after repackaging openjdk.
|
||||
* Tue Jun 9 2015 Sriram Nambakam <snambakam@vmware.com> 1.0b3.0-0
|
||||
- Initial commit
|
|
@ -1,36 +0,0 @@
|
|||
From 90d42d989d926612f7f2eb7dbd4d6d4d0f1d0808 Mon Sep 17 00:00:00 2001
|
||||
From: Ankit Jain <ankitja@vmware.com>
|
||||
Date: Thu, 4 Jun 2020 13:41:02 +0000
|
||||
Subject: [PATCH] Use system provided commons-httpclient jar
|
||||
|
||||
---
|
||||
build.xml | 2 +-
|
||||
ivy.xml | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/build.xml b/build.xml
|
||||
index eb6a80b..e1ada5e 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -25,7 +25,7 @@
|
||||
<fileset dir="lib/ivy/jars" includes="ivy-1.3.1.jar"/>
|
||||
<fileset dir="lib/commons-cli/jars" includes="commons-cli-1.0.jar"/>
|
||||
<fileset dir="lib/commons-codec/jars" includes="commons-codec-1.3.jar"/>
|
||||
- <fileset dir="lib/commons-httpclient/jars" includes="commons-httpclient-3.0.1.jar"/>
|
||||
+ <fileset dir="lib/commons-httpclient/jars" includes="commons-httpclient-3.1.jar"/>
|
||||
<fileset dir="lib/commons-logging/jars" includes="commons-logging-1.0.4.jar"/>
|
||||
<fileset dir="lib/oro/jars" includes="oro-2.0.8.jar"/>
|
||||
</path>
|
||||
diff --git a/ivy.xml b/ivy.xml
|
||||
index d92c9b6..4ffed92 100644
|
||||
--- a/ivy.xml
|
||||
+++ b/ivy.xml
|
||||
@@ -26,7 +26,7 @@
|
||||
conf="provided->default" />
|
||||
<dependency org="apache"
|
||||
name="commons-httpclient"
|
||||
- rev="3.0.1"
|
||||
+ rev="3.1"
|
||||
conf="default->default" />
|
||||
<dependency org="apache"
|
||||
name="commons-logging"
|
|
@ -1,200 +0,0 @@
|
|||
%define hamcrest_ver 2.2
|
||||
%define maven_tasks_ver 2.1.3
|
||||
|
||||
%define ant_prefix %{_var}/opt/%{name}
|
||||
%define ant_bindir %{ant_prefix}/bin
|
||||
%define ant_libdir %{ant_prefix}/lib
|
||||
|
||||
Summary: Apache Ant
|
||||
Name: apache-ant
|
||||
Version: 1.10.12
|
||||
Release: 3%{?dist}
|
||||
License: Apache
|
||||
URL: http://ant.apache.org
|
||||
Group: Applications/System
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://apache.mirrors.lucidnetworks.net/ant/source/%{name}-%{version}-src.tar.gz
|
||||
%define sha512 %{name}=1cfd31f9b19475bd94bcf59722cfc7aade58a5bb2a4f0cd6f3b90682ac6ef4cda3596269b4a91e09f2afd1be9123d4ef80db9f3c481dc34d8685b6e020a8ba11
|
||||
|
||||
Source1: https://repo1.maven.org/maven2/org/hamcrest/hamcrest/%{hamcrest_ver}/hamcrest-%{hamcrest_ver}.jar
|
||||
%define sha512 hamcrest=6b1141329b83224f69f074cb913dbff6921d6b8693ede8d2599acb626481255dae63de42eb123cbd5f59a261ac32faae012be64e8e90406ae9215543fbca5546
|
||||
|
||||
Source2: https://packages.vmware.com/photon/photon_sources/1.0/maven-ant-tasks-%{maven_tasks_ver}.tar.gz
|
||||
%define sha512 maven-ant-tasks=4df5b96a11819f82732c54656db8b0e0f4697079113d644622b4f82dc218ac1829b97aa8dc2427d3903ebdb0eb82e2ee35f9d3160647edb09bb243d8ba266fd8
|
||||
|
||||
BuildRequires: openjdk11
|
||||
|
||||
Requires: (openjdk11 or openjdk17)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
The Ant package contains binaries for a build system
|
||||
|
||||
%package -n ant-scripts
|
||||
Summary: Additional scripts for ant
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: python3
|
||||
|
||||
%description -n ant-scripts
|
||||
Apache Ant is a Java-based build tool.
|
||||
This package contains additional perl and python scripts for Apache Ant.
|
||||
|
||||
%prep
|
||||
# Using autosetup is not feasible
|
||||
%setup -q -T -D -b0 -a2
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
ANT_DIST_DIR=%{buildroot}%{ant_prefix}
|
||||
cp %{SOURCE1} ./lib/optional
|
||||
export JAVA_HOME=$(echo %{_libdir}/jvm/OpenJDK-*)
|
||||
mkdir -p -m 700 ${ANT_DIST_DIR}
|
||||
./bootstrap.sh && ./build.sh -Ddist.dir=${ANT_DIST_DIR}
|
||||
|
||||
cp %{_builddir}/%{name}-%{version}/maven-ant-tasks-%{maven_tasks_ver}/maven-ant-tasks-%{maven_tasks_ver}.jar \
|
||||
%{buildroot}%{ant_libdir}
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/java/ant %{buildroot}%{_bindir}
|
||||
|
||||
for jar in %{buildroot}%{ant_libdir}/*.jar; do
|
||||
jarname=$(basename $jar .jar)
|
||||
ln -sfv %{ant_libdir}/${jarname}.jar %{buildroot}%{_datadir}/java/ant/${jarname}.jar
|
||||
done
|
||||
|
||||
rm -f %{buildroot}%{ant_bindir}/*.bat \
|
||||
%{buildroot}%{ant_bindir}/*.cmd
|
||||
|
||||
for b in %{buildroot}%{ant_bindir}/*; do
|
||||
binaryname=$(basename $b)
|
||||
ln -sfv %{ant_bindir}/${binaryname} %{buildroot}%{_bindir}/${binaryname}
|
||||
done
|
||||
|
||||
MAVEN_ANT_TASKS_DIR=%{buildroot}%{ant_prefix}/maven-ant-tasks
|
||||
|
||||
mkdir -p -m 700 ${MAVEN_ANT_TASKS_DIR}
|
||||
|
||||
cp %{_builddir}/%{name}-%{version}/maven-ant-tasks-%{maven_tasks_ver}/LICENSE \
|
||||
%{_builddir}/%{name}-%{version}/maven-ant-tasks-%{maven_tasks_ver}/NOTICE \
|
||||
%{_builddir}/%{name}-%{version}/maven-ant-tasks-%{maven_tasks_ver}/README.txt \
|
||||
${MAVEN_ANT_TASKS_DIR}
|
||||
|
||||
chown -R root:root ${MAVEN_ANT_TASKS_DIR}
|
||||
chmod 644 ${MAVEN_ANT_TASKS_DIR}/*
|
||||
|
||||
%check
|
||||
# Disable following tests which are currently failing in chrooted environment -
|
||||
# - org.apache.tools.ant.types.selectors.OwnedBySelectorTest
|
||||
# - org.apache.tools.ant.types.selectors.PosixGroupSelectorTest
|
||||
# - org.apache.tools.mail.MailMessageTest
|
||||
# - org.apache.tools.ant.AntClassLoaderTest
|
||||
# - org.apache.tools.ant.taskdefs.optional.XsltTest
|
||||
if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
|
||||
rm -f src/tests/junit/org/apache/tools/ant/types/selectors/OwnedBySelectorTest.java \
|
||||
src/tests/junit/org/apache/tools/ant/types/selectors/PosixGroupSelectorTest.java \
|
||||
src/tests/junit/org/apache/tools/mail/MailMessageTest.java \
|
||||
src/tests/junit/org/apache/tools/ant/AntClassLoaderTest.java \
|
||||
src/tests/junit/org/apache/tools/ant/taskdefs/optional/XsltTest.java
|
||||
fi
|
||||
|
||||
export JAVA_HOME=$(echo %{_libdir}/jvm/OpenJDK-*)
|
||||
bootstrap/bin/ant -v run-tests
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{ant_bindir}
|
||||
%dir %{ant_libdir}
|
||||
%dir %{_datadir}/java/ant
|
||||
%dir %{ant_prefix}/maven-ant-tasks
|
||||
%{_bindir}/ant
|
||||
%{_bindir}/antRun
|
||||
%{ant_bindir}/ant
|
||||
%{ant_bindir}/antRun
|
||||
%{ant_libdir}/*
|
||||
%{_datadir}/java/ant/*.jar
|
||||
%{ant_prefix}/maven-ant-tasks/LICENSE
|
||||
%{ant_prefix}/maven-ant-tasks/README.txt
|
||||
%{ant_prefix}/maven-ant-tasks/NOTICE
|
||||
|
||||
%files -n ant-scripts
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/antRun.pl
|
||||
%{_bindir}/complete-ant-cmd.pl
|
||||
%{_bindir}/runant.py
|
||||
%{_bindir}/runant.pl
|
||||
%{ant_bindir}/antRun.pl
|
||||
%{ant_bindir}/complete-ant-cmd.pl
|
||||
%{ant_bindir}/runant.py
|
||||
%{ant_bindir}/runant.pl
|
||||
|
||||
%changelog
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.10.12-3
|
||||
- Require jdk11 or jdk17
|
||||
* Sat Jun 17 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.10.12-2
|
||||
- Bump version as a part of openjdk11 upgrade
|
||||
* Mon Nov 07 2022 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 1.10.12-1
|
||||
- Bump to version 1.10.12
|
||||
- Update hamcrest to latest version
|
||||
* Wed Sep 21 2022 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 1.10.11-3
|
||||
- Use openjdk11
|
||||
* Wed Feb 23 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.10.11-2
|
||||
- Fix binary path
|
||||
* Tue Jul 20 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.10.11-1
|
||||
- Bump to version 1.10.11 to fix CVE CVE-2021-36373, CVE-2021-36374
|
||||
* Tue Jun 01 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.10.10-1
|
||||
- Bump to version 1.10.10
|
||||
* Mon Dec 14 2020 Shreenidhi Shedi <sshedi@vmware.com> 1.10.8-3
|
||||
- Fix build with new rpm
|
||||
* Thu Nov 12 2020 Michelle Wang <michellew@vmware.com> 1.10.8-2
|
||||
- Update Source0 with using https://packages.vmware.com/photon
|
||||
* Mon Jul 27 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.10.8-1
|
||||
- Bump to version 1.10.8
|
||||
* Tue Jun 23 2020 Tapas Kundu <tkundu@vmware.com> 1.10.5-5
|
||||
- Require python3
|
||||
* Wed Sep 11 2019 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.10.5-4
|
||||
- Fix Make check
|
||||
* Tue Dec 04 2018 Dweep Advani <dadvani@vmware.com> 1.10.5-3
|
||||
- Adding MakeCheck tests
|
||||
* Mon Nov 05 2018 Alexey Makhalov <amakhalov@vmware.com> 1.10.5-2
|
||||
- Removed dependency on JAVA8_VERSION macro
|
||||
* Mon Sep 17 2018 Ankit Jain <ankitja@vmware.com> 1.10.5-1
|
||||
- Updated Apache Ant to 1.10.5
|
||||
* Wed Jun 28 2017 Kumar Kaushik <kaushikk@vmware.com> 1.10.1-5
|
||||
- Base package does not require python2.
|
||||
* Mon Jun 19 2017 Divya Thaluru <dthaluru@vmware.com> 1.10.1-4
|
||||
- Removed dependency on ANT_HOME
|
||||
- Moved perl and python scripts to ant-scripts package
|
||||
* Mon Jun 05 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.10.1-3
|
||||
- Fixed the profile.d/apache-ant.sh script to include ant in $PATH
|
||||
* Thu May 18 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.10.1-2
|
||||
- Renamed openjdk to openjdk8
|
||||
* Mon Apr 17 2017 Chang Lee <changlee@vmware.com> 1.10.1-1
|
||||
- Updated Apache Ant to 1.10.1
|
||||
* Fri Mar 31 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.9.6-6
|
||||
- use java rpm macros to determine versions
|
||||
* Wed Dec 21 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.9.6-5
|
||||
- Updated JAVA_HOME path to point to latest JDK.
|
||||
* Tue Oct 04 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.9.6-4
|
||||
- Updated JAVA_HOME path to point to latest JDK.
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.9.6-3
|
||||
- GA - Bump release of all rpms
|
||||
* Fri May 20 2016 Divya Thaluru <dthaluru@vmware.com> 1.9.6-2
|
||||
- Updated JAVA_HOME path to point to latest JDK.
|
||||
* Mon Feb 29 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.9.6-1
|
||||
- Updated to version 1.9.6
|
||||
* Fri Feb 26 2016 Kumar Kaushik <kaushikk@vmware.com> 1.9.4-4
|
||||
- Updated JAVA_HOME path to point to latest JDK.
|
||||
* Mon Nov 16 2015 Sharath George <sharathg@vmware.com> 1.9.4-3
|
||||
- Changed path to /var/opt.
|
||||
* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.9.4-2
|
||||
- Updated dependencies after repackaging openjdk.
|
||||
* Wed Aug 12 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4
|
||||
- Added maven ant tasks
|
||||
* Fri May 22 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4
|
||||
- Initial build. First version
|
|
@ -1,143 +0,0 @@
|
|||
%define debug_package %{nil}
|
||||
|
||||
Summary: Apache Maven
|
||||
Name: apache-maven
|
||||
Version: 3.9.0
|
||||
Release: 3%{?dist}
|
||||
License: Apache License 2.0
|
||||
URL: http://maven.apache.org
|
||||
Group: Applications/System
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/apache/maven/archive/refs/tags/maven-%{version}.tar.gz
|
||||
%define sha512 maven=488a47b9f04889b12c2c62ea1ffec3aa071dbdd6def384b77dce259249ca49e92d7cc211a0711ff69f3b54ac7c5171bff22809089807cdaa96fc9d337fbd150c
|
||||
|
||||
BuildRequires: openjdk11
|
||||
BuildRequires: apache-ant
|
||||
BuildRequires: wget
|
||||
|
||||
Requires: (openjdk11 or openjdk17)
|
||||
Requires: /usr/bin/which
|
||||
|
||||
%define ExtraBuildRequires apache-maven
|
||||
|
||||
%define maven_prefix %{_var}/opt/%{name}
|
||||
%define maven_bindir %{maven_prefix}/bin
|
||||
%define maven_libdir %{maven_prefix}/lib
|
||||
|
||||
%description
|
||||
The Maven package contains binaries for a build system
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n maven-maven-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
MAVEN_DIST_DIR=%{buildroot}%{maven_prefix}
|
||||
export JAVA_HOME=$(echo %{_libdir}/jvm/OpenJDK-*)
|
||||
mvn -DdistributionTargetDir=$MAVEN_DIST_DIR clean package
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/java/maven \
|
||||
%{buildroot}%{_bindir}
|
||||
|
||||
for jar in %{buildroot}%{maven_libdir}/*.jar; do
|
||||
jarname=$(basename $jar .jar)
|
||||
ln -sfv %{maven_libdir}/${jarname}.jar %{buildroot}%{_datadir}/java/maven/${jarname}.jar
|
||||
done
|
||||
|
||||
for b in %{buildroot}%{maven_bindir}/*; do
|
||||
binaryname=$(basename $b)
|
||||
ln -sfv %{maven_bindir}/${binaryname} %{buildroot}%{_bindir}/${binaryname}
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{maven_libdir}
|
||||
%dir %{maven_bindir}
|
||||
%dir %{maven_prefix}/conf
|
||||
%dir %{maven_prefix}/boot
|
||||
%dir %{_datadir}/java/maven
|
||||
%{maven_libdir}/*
|
||||
%{maven_bindir}/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/java/maven/*.jar
|
||||
%{maven_prefix}/boot/plexus-classworlds-2.6.0.jar
|
||||
%{maven_prefix}/boot/plexus-classworlds.license
|
||||
%{maven_prefix}/conf/logging/simplelogger.properties
|
||||
%{maven_prefix}/conf/settings.xml
|
||||
%{maven_prefix}/conf/toolchains.xml
|
||||
%{maven_prefix}/LICENSE
|
||||
%{maven_prefix}/NOTICE
|
||||
%{maven_prefix}/README.txt
|
||||
%exclude %{maven_libdir}/jansi-native
|
||||
|
||||
%changelog
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 3.9.0-3
|
||||
- Require jdk11 or jdk17
|
||||
* Sat Jun 17 2023 Shreenidhi Shedi <sshedi@vmware.com> 3.9.0-2
|
||||
- Bump version as a part of openjdk11 upgrade
|
||||
* Fri Mar 03 2023 Srish Srinivasan <ssrish@vmware.com> 3.9.0-1
|
||||
- Upgrade to v3.9.0
|
||||
* Wed Sep 21 2022 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 3.8.6-2
|
||||
- Use openjdk11
|
||||
* Sat Sep 03 2022 Shreenidhi Shedi <sshedi@vmware.com> 3.8.6-1
|
||||
- Upgrade to v3.8.6
|
||||
* Wed Feb 23 2022 Shreenidhi Shedi <sshedi@vmware.com> 3.6.3-3
|
||||
- Fix binary path
|
||||
* Tue Dec 15 2020 Shreenidhi Shedi <sshedi@vmware.com> 3.6.3-2
|
||||
- Fix build with new rpm
|
||||
* Tue Jun 30 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 3.6.3-1
|
||||
- Update to 3.6.3
|
||||
* Fri Apr 17 2020 Tapas Kundu <tkundu@vmware.com> 3.5.4-4
|
||||
- Fix apache-maven build failure
|
||||
* Mon Nov 05 2018 Alexey Makhalov <amakhalov@vmware.com> 3.5.4-3
|
||||
- Removed dependency on JAVA8_VERSION macro
|
||||
* Mon Oct 29 2018 Alexey Makhalov <amakhalov@vmware.com> 3.5.4-2
|
||||
- Use ExtraBuildRequires
|
||||
* Tue Sep 18 2018 Ankit Jain <ankitja@vmware.com> 3.5.4-1
|
||||
- Updated apache-maven to version 3.5.4
|
||||
* Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 3.5.0-5
|
||||
- Remove BuildArch
|
||||
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 3.5.0-4
|
||||
- Requires /usr/bin/which
|
||||
* Mon Jun 19 2017 Divya Thaluru <dthaluru@vmware.com> 3.5.0-3
|
||||
- Removed dependency on ANT_HOME
|
||||
- Removed apache-maven profile file
|
||||
- Removed version from directory path
|
||||
* Thu May 18 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.5.0-2
|
||||
- Renamed openjdk to openjdk8
|
||||
* Mon Apr 24 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.5.0-1
|
||||
- Updated apache-maven to version 3.5.0
|
||||
* Fri Mar 31 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.3.9-8
|
||||
- use java rpm macros to determine versions
|
||||
* Wed Dec 21 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.3.9-7
|
||||
- Updated JAVA_HOME path to point to latest JDK.
|
||||
* Thu Oct 27 2016 Alexey Makhalov <amakhalov@vmware.com> 3.3.9-6
|
||||
- Fix build issue - unable to fetch opensource.org/.../mit-license.php
|
||||
* Tue Oct 04 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.3.9-5
|
||||
- Updated JAVA_HOME path to point to latest JDK.
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.3.9-4
|
||||
- GA - Bump release of all rpms
|
||||
* Fri May 20 2016 Divya Thaluru <dthaluru@vmware.com> 3.3.9-3
|
||||
- Updated JAVA_HOME path to point to latest JDK.
|
||||
* Tue Mar 01 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.3.9-2
|
||||
- Updated the apache-ant version to 1.9.6
|
||||
* Fri Feb 26 2016 Kumar Kaushik <kaushikk@vmware.com> 3.3.9-2
|
||||
- Updated JAVA_HOME path to point to latest JDK.
|
||||
* Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 3.3.9-1
|
||||
- Updated to version 3.3.9
|
||||
* Tue Jan 5 2016 Xiaolin Li <xiaolinl@vmware.com> 3.3.3-4
|
||||
- Increase build timeout from 600000 to 1200000
|
||||
* Mon Nov 16 2015 Sharath George <sharathg@vmware.com> 3.3.3-3
|
||||
- Change path to /var/opt.
|
||||
* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.3.3-2
|
||||
- Updated dependencies after repackaging openjdk.
|
||||
* Thu Jul 9 2015 Sarah Choi<sarahc@vmware.com> 3.3.3-1
|
||||
- Add a script to set environment variables for MAVEN
|
||||
* Fri May 22 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4
|
||||
- Initial build. First version
|
|
@ -1,89 +0,0 @@
|
|||
%define srcname tomcat-native
|
||||
|
||||
Summary: Apache Tomcat Native
|
||||
Name: apache-tomcat-native
|
||||
Version: 2.0.3
|
||||
Release: 4%{?dist}
|
||||
License: Apache 2.0
|
||||
URL: https://tomcat.apache.org/native-doc/
|
||||
Group: Applications/System
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
BuildArch: x86_64
|
||||
|
||||
Source0: https://dlcdn.apache.org/tomcat/tomcat-connectors/native/%{version}/source/%{srcname}-%{version}-src.tar.gz
|
||||
%define sha512 %{srcname}=d80e6b76295bb253eaf6eab4d722f3ba2f683f33a96310838b4c44b99f0b47a49ed9c09bb53ed23698db057ce765e3fcbfcd4ac4b75d2bdbe691f916be3be339
|
||||
|
||||
Patch0: openssl_3_0_7_compatibility.patch
|
||||
|
||||
BuildRequires: (openjdk11 or openjdk117)
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: apr-devel
|
||||
|
||||
Requires: apr
|
||||
Requires: openssl
|
||||
|
||||
%description
|
||||
The Apache Tomcat Native Library is an optional component for use with Apache Tomcat
|
||||
that allows Tomcat to use certain native resources for performance, compatibility, etc.
|
||||
|
||||
%package devel
|
||||
Summary: Apache Tomcat Native development package
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Conflicts: %{name} < 2.0.3-3%{?dist}
|
||||
|
||||
%description devel
|
||||
Apache Tomcat Native development package
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{srcname}-%{version}-src
|
||||
|
||||
%build
|
||||
export JAVA_HOME=$(echo %{_libdir}/jvm/OpenJDK*)
|
||||
|
||||
cd native
|
||||
%configure --with-apr=%{_prefix} \
|
||||
--with-java-home=$JAVA_HOME \
|
||||
--with-ssl=%{_prefix}
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
cd native
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libtcnative*.so.*
|
||||
%exclude %{_libdir}/libtcnative-2.a
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libtcnative*.so
|
||||
|
||||
%changelog
|
||||
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.0.3-4
|
||||
- Bump version as a part of openssl upgrade
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.0.3-3
|
||||
- Require jdk11 or jdk17
|
||||
* Sat Jun 17 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.0.3-2
|
||||
- Bump version as a part of openjdk11 upgrade
|
||||
* Fri Mar 03 2023 Srish Srinivasan <ssrish@vmware.com> 2.0.3-1
|
||||
- Update to v2.0.3
|
||||
* Wed Sep 21 2022 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 1.2.24-4
|
||||
- Use openjdk11
|
||||
* Wed Aug 04 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.2.24-3
|
||||
- Bump up release for openssl
|
||||
* Thu Sep 10 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.2.24-2
|
||||
- Openssl 1.1.1 compatibility
|
||||
* Wed Jun 17 2020 Tapas Kundu <tkundu@vmware.com> 1.2.24-1
|
||||
- Initial build. First version
|
|
@ -1,15 +0,0 @@
|
|||
--- a/native/include/ssl_private.h 2020-09-10 11:28:36.955167151 +0530
|
||||
+++ b/native/include/ssl_private.h 2020-09-10 11:14:32.155146168 +0530
|
||||
@@ -217,6 +217,13 @@ extern ENGINE *tcn_ssl_engine;
|
||||
|
||||
#endif /* !defined(OPENSSL_NO_TLSEXT) && defined(SSL_set_tlsext_host_name) */
|
||||
|
||||
+#define BN_get_rfc2409_prime_1024 get_rfc2409_prime_1024
|
||||
+#define BN_get_rfc3526_prime_2048 get_rfc3526_prime_2048
|
||||
+#define BN_get_rfc3526_prime_3072 get_rfc3526_prime_3072
|
||||
+#define BN_get_rfc3526_prime_4096 get_rfc3526_prime_4096
|
||||
+#define BN_get_rfc3526_prime_6144 get_rfc3526_prime_6144
|
||||
+#define BN_get_rfc3526_prime_8192 get_rfc3526_prime_8192
|
||||
+
|
||||
#define MAX_ALPN_PROTO_SIZE 65535
|
||||
#define SSL_SELECTOR_FAILURE_CHOOSE_MY_LAST_PROTOCOL 1
|
|
@ -1,229 +0,0 @@
|
|||
%define _use_internal_dependency_generator 0
|
||||
%define _origname apache-tomcat
|
||||
%define _prefix /var/opt/%{name}
|
||||
%define _origprefix /var/opt/%{_origname}
|
||||
%define _bindir %{_prefix}/bin
|
||||
%define _confdir %{_prefix}/conf
|
||||
%define _libdir %{_prefix}/lib
|
||||
%define _webappsdir %{_prefix}/webapps
|
||||
%define _logsdir %{_prefix}/logs
|
||||
%define _tempdir %{_prefix}/temp
|
||||
|
||||
Summary: Apache Tomcat 9
|
||||
Name: apache-tomcat-9
|
||||
Version: 9.0.80
|
||||
Release: 1%{?dist}
|
||||
License: Apache
|
||||
URL: http://tomcat.apache.org
|
||||
Group: Applications/System
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://archive.apache.org/dist/tomcat/tomcat-9/v%{version}/src/%{_origname}-%{version}-src.tar.gz
|
||||
%define sha512 %{_origname}=a2fb298c1fd2615e1a69371b5f84eb569e897faad3cbe17e3626460f5ce311085c120dd3f62c255fde87e6517915365ab52ada613776d45185b8e53624935114
|
||||
# base-for-apache-tomcat is a cached -Dbase.path folder
|
||||
# generate base-for-apache-tomcat code with following steps:
|
||||
# 1. tar -xvzf Source0 to $HOME
|
||||
# 2. cd %{_origname}-%{version}-src && ant deploy dist-prepare dist-source
|
||||
# 3. generated code will be exist to default location $HOME/tomcat-build-libs
|
||||
# 4. mv tomcat-build-libs base-for-%{_origname}-%{version}
|
||||
# 5. tar -cvzf base-for-%{_origname}-%{version}.tar.gz base-for-%{_origname}-%{version}
|
||||
Source1: base-for-%{_origname}-%{version}.tar.gz
|
||||
%define sha512 base=a9af5a439100d05e0efd9246aaef59824fab9e9f453c513ccfc196a87058510d0d3f9974c16fe2aab81fa9f137f52b913ac4e353a32cbcf01f4e07551553110f
|
||||
|
||||
Patch0: apache-tomcat-use-jks-as-inmem-keystore.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: openjdk11
|
||||
BuildRequires: apache-ant
|
||||
|
||||
Requires: jre >= 8.0
|
||||
Requires: apache-ant
|
||||
Requires: chkconfig
|
||||
|
||||
%description
|
||||
The Apache Tomcat package contains binaries for the Apache Tomcat servlet container.
|
||||
|
||||
%package webapps
|
||||
Summary: Web application for Apache Tomcat
|
||||
Group: Applications/System
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description webapps
|
||||
The web application for Apache Tomcat.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{_origname}-%{version}-src -p1 -b1
|
||||
# remove pre-built binaries and windows files
|
||||
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
|
||||
-name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
|
||||
|
||||
%build
|
||||
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
|
||||
-Dbase.path="../base-for-%{_origname}-%{version}" deploy dist-prepare dist-source
|
||||
|
||||
%install
|
||||
install -vdm 755 %{buildroot}%{_prefix}
|
||||
install -vdm 755 %{buildroot}%{_bindir}
|
||||
install -vdm 755 %{buildroot}%{_libdir}
|
||||
install -vdm 755 %{buildroot}%{_confdir}
|
||||
install -vdm 755 %{buildroot}%{_webappsdir}
|
||||
install -vdm 755 %{buildroot}%{_logsdir}
|
||||
install -vdm 755 %{buildroot}%{_tempdir}
|
||||
cp -r %{_builddir}/%{_origname}-%{version}-src/output/build/bin/* %{buildroot}%{_bindir}
|
||||
cp -r %{_builddir}/%{_origname}-%{version}-src/output/build/lib/* %{buildroot}%{_libdir}
|
||||
cp -r %{_builddir}/%{_origname}-%{version}-src/output/build/conf/* %{buildroot}%{_confdir}
|
||||
cp -r %{_builddir}/%{_origname}-%{version}-src/output/build/webapps/* %{buildroot}%{_webappsdir}
|
||||
|
||||
cp %{_builddir}/%{_origname}-%{version}-src/LICENSE %{buildroot}%{_prefix}
|
||||
cp %{_builddir}/%{_origname}-%{version}-src/NOTICE %{buildroot}%{_prefix}
|
||||
|
||||
touch %{buildroot}%{_logsdir}/catalina.out
|
||||
rm -rf %{buildroot}%{_prefix}/webapps/{examples,docs}
|
||||
|
||||
install -vdm 644 %{buildroot}%{_datadir}/java/tomcat9
|
||||
|
||||
for jar in %{buildroot}/%{_libdir}/*.jar
|
||||
do
|
||||
jarname=$(basename $jar .jar)
|
||||
ln -sfv %{_libdir}/${jarname}.jar %{buildroot}%{_datadir}/java/tomcat9/${jarname}.jar
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_bindir}
|
||||
%dir %{_libdir}
|
||||
%dir %{_confdir}
|
||||
%dir %{_webappsdir}/ROOT
|
||||
%dir %{_logsdir}
|
||||
%dir %{_tempdir}
|
||||
%{_bindir}/*
|
||||
%config(noreplace) %{_confdir}/catalina.policy
|
||||
%config(noreplace) %{_confdir}/catalina.properties
|
||||
%config(noreplace) %{_confdir}/context.xml
|
||||
%config(noreplace) %{_confdir}/jaspic-providers.xml
|
||||
%config(noreplace) %{_confdir}/jaspic-providers.xsd
|
||||
%config(noreplace) %{_confdir}/logging.properties
|
||||
%config(noreplace) %{_confdir}/server.xml
|
||||
%config(noreplace) %{_confdir}/tomcat-users.xml
|
||||
%config(noreplace) %{_confdir}/tomcat-users.xsd
|
||||
%config(noreplace) %{_confdir}/web.xml
|
||||
%{_libdir}/*
|
||||
%{_datadir}/java/tomcat9/*.jar
|
||||
%{_prefix}/LICENSE
|
||||
%{_prefix}/NOTICE
|
||||
%{_logsdir}/catalina.out
|
||||
|
||||
%files webapps
|
||||
%defattr(-,root,root)
|
||||
%dir %{_webappsdir}/manager
|
||||
%dir %{_webappsdir}/host-manager
|
||||
%{_webappsdir}/ROOT/*
|
||||
%{_webappsdir}/manager/*
|
||||
%{_webappsdir}/host-manager/*
|
||||
|
||||
%post
|
||||
alternatives --install %{_origprefix} apache-tomcat %{_prefix} 10000 \
|
||||
--slave %{_datadir}/java/tomcat tomcat %{_datadir}/java/tomcat9
|
||||
|
||||
%postun
|
||||
# Do alternative remove only in case of uninstall
|
||||
if [ $1 -eq 0 ]; then
|
||||
alternatives --remove apache-tomcat %{_prefix}
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Mon Sep 04 2023 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 9.0.80-1
|
||||
- Upgrade to 9.0.80
|
||||
* Wed Sep 21 2022 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 8.5.78-2
|
||||
- Use openjdk11
|
||||
* Mon Apr 04 2022 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.78-1
|
||||
- Version Bump to 8.5.78
|
||||
* Thu Feb 10 2022 Nitesh Kumar <kunitesh@vmware.com> 8.5.72-1
|
||||
- Upgrade to 8.5.72, Fix CVE-2022-23181
|
||||
* Tue Jul 20 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.68-1
|
||||
- Version Bump to 8.5.68 to fix CVE-2021-30639
|
||||
* Wed Mar 31 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.64-1
|
||||
- Version Bump to 8.5.64
|
||||
* Wed Oct 07 2020 Dweep Advani <dadvani@vmware.com> 8.5.58-1
|
||||
- Version Bump to 8.5.58
|
||||
* Wed Aug 05 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.57-1
|
||||
- Version Bump to 8.5.57
|
||||
* Wed Jul 08 2020 Dweep Advani <dadvani@vmware.com> 8.5.51-3
|
||||
- Patched for CVE-2020-11996
|
||||
* Wed May 27 2020 Dweep Advani <dadvani@vmware.com> 8.5.51-2
|
||||
- Patched for CVE-2020-9484
|
||||
* Mon Mar 16 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.51-1
|
||||
- Update to version 8.5.51 to fix CVE-2020-1938
|
||||
* Mon Jan 06 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.50-1
|
||||
- Update to version 8.5.50 to fix CVE-2019-17563
|
||||
* Tue Jul 16 2019 Dweep Advani <dadvani@vmware.com> 8.5.40-2
|
||||
- Fix CVE-2019-10072
|
||||
* Tue Apr 23 2019 Dweep Advani <dadvani@vmware.com> 8.5.40-1
|
||||
- Upgrading to version 8.5.40
|
||||
* Thu Jan 10 2019 Dweep Advani <dadvani@vmware.com> 8.5.37-1
|
||||
- Upgrade to version 8.5.37
|
||||
* Fri Dec 07 2018 Dweep Advani <dadvani@vmware.com> 8.5.35-1
|
||||
- Upgrade to version 8.5.35
|
||||
* Wed Nov 21 2018 Dweep Advani <dadvani@vmware.com> 8.5.31-3
|
||||
- Fix CVE-2018-8014
|
||||
* Thu May 17 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.31-2
|
||||
- Mark configuration files as config(noreplace)
|
||||
* Mon May 07 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.31-1
|
||||
- Upgraded to version 8.5.31
|
||||
* Mon Apr 30 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.30-1
|
||||
- Upgraded to version 8.5.30
|
||||
* Tue Mar 20 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.29-1
|
||||
- Upgraded to version 8.5.29
|
||||
* Wed Feb 28 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.28-1
|
||||
- Upgraded to version 8.5.28
|
||||
* Fri Feb 02 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.27-1
|
||||
- Upgraded to version 8.5.27
|
||||
* Thu Dec 21 2017 Anish Swaminathan <anishs@vmware.com> 8.5.24-1
|
||||
- Upgraded to version 8.5.24
|
||||
* Mon Oct 16 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.5.23-2
|
||||
- patch to keep using inmem keystore as jks.
|
||||
* Tue Oct 10 2017 Anish Swaminathan <anishs@vmware.com> 8.5.23-1
|
||||
- Upgraded to version 8.5.23
|
||||
* Wed Sep 27 2017 Alexey Makhalov <amakhalov@vmware.com> 8.5.20-3
|
||||
- Offline build, deactivate javadoc target
|
||||
* Wed Sep 13 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 8.5.20-2
|
||||
- Updated the permissions on directories packaged
|
||||
* Tue Aug 15 2017 Anish Swaminathan <anishs@vmware.com> 8.5.20-1
|
||||
- Upgraded to version 8.5.20
|
||||
* Thu Jul 6 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.16-1
|
||||
- Upgraded to version 8.5.16
|
||||
* Tue Jun 20 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.15-2
|
||||
- Removed version from directory path
|
||||
- Removed dependency on ANT_HOME
|
||||
* Tue Jun 6 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.15-1
|
||||
- Upgraded to version 8.5.15
|
||||
* Thu May 18 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 8.5.13-3
|
||||
- Renamed openjdk to openjdk8
|
||||
* Tue Apr 18 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.13-2
|
||||
- Added logic to package directories
|
||||
* Mon Apr 10 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.13-1
|
||||
- Upgraded to version 8.5.13 and also added logic to build binaries from source
|
||||
* Tue Nov 22 2016 Anish Swaminathan <anishs@vmware.com> 8.5.8-1
|
||||
- Upgraded to version 8.5.8
|
||||
* Wed Oct 05 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.0.37-1
|
||||
- Update to version 8.0.37. Change openjre requires to latest
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.0.35-2
|
||||
- GA - Bump release of all rpms
|
||||
* Fri May 20 2016 Divya Thaluru <dthaluru@vmware.com> 8.0.35-1
|
||||
- Upgraded to version 8.0.35
|
||||
* Tue May 03 2016 Anish Swaminathan <anishs@vmware.com> 8.0.33-1
|
||||
- Upgraded to version 8.0.33
|
||||
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 7.0.68-1
|
||||
- Upgraded to version 7.0.68
|
||||
* Mon Nov 16 2015 Sharath George <sharathg@vmware.com> 7.0.63-3
|
||||
- Change path to /var/opt.
|
||||
* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 7.0.63-2
|
||||
- Updated dependency after repackaging openjdk.
|
||||
* Wed Jul 8 2015 Sriram Nambakam <snambakam@vmware.com> 7.0.63
|
||||
- Initial build. First version
|
|
@ -1,18 +0,0 @@
|
|||
diff -Naurp a/java/org/apache/tomcat/util/net/SSLUtilBase.java b/java/org/apache/tomcat/util/net/SSLUtilBase.java
|
||||
--- a/java/org/apache/tomcat/util/net/SSLUtilBase.java
|
||||
+++ b/java/org/apache/tomcat/util/net/SSLUtilBase.java
|
||||
@@ -335,13 +335,7 @@ public abstract class SSLUtilBase implem
|
||||
if (k != null && !"DKS".equalsIgnoreCase(certificate.getCertificateKeystoreType()) &&
|
||||
"PKCS#8".equalsIgnoreCase(k.getFormat())) {
|
||||
// Switch to in-memory key store
|
||||
- String provider = certificate.getCertificateKeystoreProvider();
|
||||
- if (provider == null) {
|
||||
- ksUsed = KeyStore.getInstance(certificate.getCertificateKeystoreType());
|
||||
- } else {
|
||||
- ksUsed = KeyStore.getInstance(certificate.getCertificateKeystoreType(),
|
||||
- provider);
|
||||
- }
|
||||
+ ksUsed = KeyStore.getInstance("JKS");
|
||||
ksUsed.load(null, null);
|
||||
ksUsed.setKeyEntry(keyAlias, k, keyPassArray, ks.getCertificateChain(keyAlias));
|
||||
}
|
|
@ -1,240 +0,0 @@
|
|||
%define _use_internal_dependency_generator 0
|
||||
%define _longname apache-tomcat-10
|
||||
%define _prefix /var/opt/%{_longname}
|
||||
%define _altprefix /var/opt/%{name}
|
||||
%define _bindir %{_prefix}/bin
|
||||
%define _confdir %{_prefix}/conf
|
||||
%define _libdir %{_prefix}/lib
|
||||
%define _webappsdir %{_prefix}/webapps
|
||||
%define _logsdir %{_prefix}/logs
|
||||
%define _tempdir %{_prefix}/temp
|
||||
|
||||
Summary: Apache Tomcat
|
||||
Name: apache-tomcat
|
||||
Version: 10.1.13
|
||||
Release: 1%{?dist}
|
||||
License: Apache
|
||||
URL: http://tomcat.apache.org
|
||||
Group: Applications/System
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://archive.apache.org/dist/tomcat/tomcat-10/v%{version}/src/%{name}-%{version}-src.tar.gz
|
||||
%define sha512 %{name}=e44e2dba618f70d9a39e976cc07d33fc9cbead2169e24d6ea2051c8db20601f63ee7bc657245869450c82cf0ceb272501066b77ae45265d19b7964f5ed0e85b1
|
||||
# base-for-apache-tomcat is a cached -Dbase.path folder
|
||||
# generate base-for-apache-tomcat code with following steps:
|
||||
# 1. tar -xvzf Source0 to $HOME
|
||||
# 2. cd %{name}-%{version}-src && ant deploy dist-prepare dist-source
|
||||
# 3. generated code will be exist to default location $HOME/tomcat-build-libs
|
||||
# 4. mv tomcat-build-libs base-for-%{name}-%{version}
|
||||
# 5. tar -cvzf base-for-%{name}-%{version}.tar.gz base-for-%{name}-%{version}
|
||||
Source1: base-for-%{name}-%{version}.tar.gz
|
||||
%define sha512 base=0a4e9b7c2e1abd2070f97be319611a38a71216227d398410e93edff8c37097718c1a330e7615b5f92b60b44022e17d0aee66424af91261642c03bfdc421f8796
|
||||
|
||||
Patch0: apache-tomcat-use-jks-as-inmem-keystore.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: openjdk11
|
||||
BuildRequires: apache-ant
|
||||
|
||||
Requires: (openjdk11-jre or openjdk17-jre)
|
||||
Requires: apache-ant
|
||||
|
||||
%description
|
||||
The Apache Tomcat package contains binaries for the Apache Tomcat servlet container.
|
||||
|
||||
%package webapps
|
||||
Summary: Web application for Apache Tomcat
|
||||
Group: Applications/System
|
||||
Requires: apache-tomcat = %{version}-%{release}
|
||||
|
||||
%description webapps
|
||||
The web application for Apache Tomcat.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version}-src -p1 -b1
|
||||
# remove pre-built binaries and windows files
|
||||
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
|
||||
-name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
|
||||
|
||||
%build
|
||||
ant -Dbase.path="../base-for-%{name}-%{version}" deploy dist-prepare dist-source
|
||||
|
||||
%install
|
||||
install -vdm 755 %{buildroot}%{_prefix}
|
||||
install -vdm 755 %{buildroot}%{_bindir}
|
||||
install -vdm 755 %{buildroot}%{_libdir}
|
||||
install -vdm 755 %{buildroot}%{_confdir}
|
||||
install -vdm 755 %{buildroot}%{_webappsdir}
|
||||
install -vdm 755 %{buildroot}%{_logsdir}
|
||||
install -vdm 755 %{buildroot}%{_tempdir}
|
||||
cp -r %{_builddir}/%{name}-%{version}-src/output/build/bin/* %{buildroot}%{_bindir}
|
||||
cp -r %{_builddir}/%{name}-%{version}-src/output/build/lib/* %{buildroot}%{_libdir}
|
||||
cp -r %{_builddir}/%{name}-%{version}-src/output/build/conf/* %{buildroot}%{_confdir}
|
||||
cp -r %{_builddir}/%{name}-%{version}-src/output/build/webapps/* %{buildroot}%{_webappsdir}
|
||||
|
||||
cp %{_builddir}/%{name}-%{version}-src/LICENSE %{buildroot}%{_prefix}
|
||||
cp %{_builddir}/%{name}-%{version}-src/NOTICE %{buildroot}%{_prefix}
|
||||
|
||||
touch %{buildroot}%{_logsdir}/catalina.out
|
||||
rm -rf %{buildroot}%{_prefix}/webapps/{examples,docs}
|
||||
|
||||
install -vdm 644 %{buildroot}%{_datadir}/java/tomcat10
|
||||
|
||||
for jar in %{buildroot}/%{_libdir}/*.jar
|
||||
do
|
||||
jarname=$(basename $jar .jar)
|
||||
ln -sfv %{_libdir}/${jarname}.jar %{buildroot}%{_datadir}/java/tomcat10/${jarname}.jar
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_bindir}
|
||||
%dir %{_libdir}
|
||||
%dir %{_confdir}
|
||||
%dir %{_webappsdir}/ROOT
|
||||
%dir %{_logsdir}
|
||||
%dir %{_tempdir}
|
||||
%{_bindir}/*
|
||||
%config(noreplace) %{_confdir}/catalina.policy
|
||||
%config(noreplace) %{_confdir}/catalina.properties
|
||||
%config(noreplace) %{_confdir}/context.xml
|
||||
%config(noreplace) %{_confdir}/jaspic-providers.xml
|
||||
%config(noreplace) %{_confdir}/jaspic-providers.xsd
|
||||
%config(noreplace) %{_confdir}/logging.properties
|
||||
%config(noreplace) %{_confdir}/server.xml
|
||||
%config(noreplace) %{_confdir}/tomcat-users.xml
|
||||
%config(noreplace) %{_confdir}/tomcat-users.xsd
|
||||
%config(noreplace) %{_confdir}/web.xml
|
||||
%{_libdir}/*
|
||||
%{_datadir}/java/tomcat10/*.jar
|
||||
%{_prefix}/LICENSE
|
||||
%{_prefix}/NOTICE
|
||||
%{_logsdir}/catalina.out
|
||||
|
||||
%files webapps
|
||||
%defattr(-,root,root)
|
||||
%dir %{_webappsdir}/manager
|
||||
%dir %{_webappsdir}/host-manager
|
||||
%{_webappsdir}/ROOT/*
|
||||
%{_webappsdir}/manager/*
|
||||
%{_webappsdir}/host-manager/*
|
||||
|
||||
%post
|
||||
alternatives --install %{_altprefix} apache-tomcat %{_prefix} 20000 \
|
||||
--slave %{_datadir}/java/tomcat tomcat %{_datadir}/java/tomcat10
|
||||
|
||||
%postun
|
||||
# Do alternative remove only in case of uninstall
|
||||
if [ $1 -eq 0 ]; then
|
||||
alternatives --remove apache-tomcat %{_prefix}
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Wed Sep 06 2023 Prashant S Chauhan <psinghchauh@vmware.com> 10.1.13-1
|
||||
- Update to v10.1.13, Fixes CVE-2023-34981
|
||||
- Introduce alternatives
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 10.1.8-3
|
||||
- Require jdk11 or jdk17
|
||||
* Sat Jun 17 2023 Shreenidhi Shedi <sshedi@vmware.com> 10.1.8-2
|
||||
- Bump version as a part of openjdk11 upgrade
|
||||
* Wed Jun 14 2023 Nitesh Kumar <kunitesh@vmware.com> 10.1.8-1
|
||||
- Upgrade to v10.1.8 to address CVE-2023-28709
|
||||
* Tue May 16 2023 Nitesh Kumar <kunitesh@vmware.com> 10.1.6-1
|
||||
- Upgrade to v10.1.6 to address CVE-2023-28708
|
||||
* Thu Feb 16 2023 Prashant <psinghchauha@vmware.com> 10.1.1-2
|
||||
- Package webapps as a subpackage
|
||||
* Thu Nov 10 2022 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 10.1.1-1
|
||||
- Upgrade to 10.1.1
|
||||
* Wed Sep 21 2022 Vamsi Krishna Brahmajosuyula <vbrahmajosyula@vmware.com> 8.5.78-2
|
||||
- Use openjdk11
|
||||
* Mon Apr 04 2022 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.78-1
|
||||
- Version Bump to 8.5.78
|
||||
* Thu Feb 10 2022 Nitesh Kumar <kunitesh@vmware.com> 8.5.72-1
|
||||
- Upgrade to 8.5.72, Fix CVE-2022-23181
|
||||
* Tue Jul 20 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.68-1
|
||||
- Version Bump to 8.5.68 to fix CVE-2021-30639
|
||||
* Wed Mar 31 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.64-1
|
||||
- Version Bump to 8.5.64
|
||||
* Wed Oct 07 2020 Dweep Advani <dadvani@vmware.com> 8.5.58-1
|
||||
- Version Bump to 8.5.58
|
||||
* Wed Aug 05 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.57-1
|
||||
- Version Bump to 8.5.57
|
||||
* Wed Jul 08 2020 Dweep Advani <dadvani@vmware.com> 8.5.51-3
|
||||
- Patched for CVE-2020-11996
|
||||
* Wed May 27 2020 Dweep Advani <dadvani@vmware.com> 8.5.51-2
|
||||
- Patched for CVE-2020-9484
|
||||
* Mon Mar 16 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.51-1
|
||||
- Update to version 8.5.51 to fix CVE-2020-1938
|
||||
* Mon Jan 06 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 8.5.50-1
|
||||
- Update to version 8.5.50 to fix CVE-2019-17563
|
||||
* Tue Jul 16 2019 Dweep Advani <dadvani@vmware.com> 8.5.40-2
|
||||
- Fix CVE-2019-10072
|
||||
* Tue Apr 23 2019 Dweep Advani <dadvani@vmware.com> 8.5.40-1
|
||||
- Upgrading to version 8.5.40
|
||||
* Thu Jan 10 2019 Dweep Advani <dadvani@vmware.com> 8.5.37-1
|
||||
- Upgrade to version 8.5.37
|
||||
* Fri Dec 07 2018 Dweep Advani <dadvani@vmware.com> 8.5.35-1
|
||||
- Upgrade to version 8.5.35
|
||||
* Wed Nov 21 2018 Dweep Advani <dadvani@vmware.com> 8.5.31-3
|
||||
- Fix CVE-2018-8014
|
||||
* Thu May 17 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.31-2
|
||||
- Mark configuration files as config(noreplace)
|
||||
* Mon May 07 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.31-1
|
||||
- Upgraded to version 8.5.31
|
||||
* Mon Apr 30 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.30-1
|
||||
- Upgraded to version 8.5.30
|
||||
* Tue Mar 20 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.29-1
|
||||
- Upgraded to version 8.5.29
|
||||
* Wed Feb 28 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.28-1
|
||||
- Upgraded to version 8.5.28
|
||||
* Fri Feb 02 2018 Xiaolin Li <xiaolinl@vmware.com> 8.5.27-1
|
||||
- Upgraded to version 8.5.27
|
||||
* Thu Dec 21 2017 Anish Swaminathan <anishs@vmware.com> 8.5.24-1
|
||||
- Upgraded to version 8.5.24
|
||||
* Mon Oct 16 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.5.23-2
|
||||
- patch to keep using inmem keystore as jks.
|
||||
* Tue Oct 10 2017 Anish Swaminathan <anishs@vmware.com> 8.5.23-1
|
||||
- Upgraded to version 8.5.23
|
||||
* Wed Sep 27 2017 Alexey Makhalov <amakhalov@vmware.com> 8.5.20-3
|
||||
- Offline build, deactivate javadoc target
|
||||
* Wed Sep 13 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 8.5.20-2
|
||||
- Updated the permissions on directories packaged
|
||||
* Tue Aug 15 2017 Anish Swaminathan <anishs@vmware.com> 8.5.20-1
|
||||
- Upgraded to version 8.5.20
|
||||
* Thu Jul 6 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.16-1
|
||||
- Upgraded to version 8.5.16
|
||||
* Tue Jun 20 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.15-2
|
||||
- Removed version from directory path
|
||||
- Removed dependency on ANT_HOME
|
||||
* Tue Jun 6 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.15-1
|
||||
- Upgraded to version 8.5.15
|
||||
* Thu May 18 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 8.5.13-3
|
||||
- Renamed openjdk to openjdk8
|
||||
* Tue Apr 18 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.13-2
|
||||
- Added logic to package directories
|
||||
* Mon Apr 10 2017 Divya Thaluru <dthaluru@vmware.com> 8.5.13-1
|
||||
- Upgraded to version 8.5.13 and also added logic to build binaries from source
|
||||
* Tue Nov 22 2016 Anish Swaminathan <anishs@vmware.com> 8.5.8-1
|
||||
- Upgraded to version 8.5.8
|
||||
* Wed Oct 05 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.0.37-1
|
||||
- Update to version 8.0.37. Change openjre requires to latest
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.0.35-2
|
||||
- GA - Bump release of all rpms
|
||||
* Fri May 20 2016 Divya Thaluru <dthaluru@vmware.com> 8.0.35-1
|
||||
- Upgraded to version 8.0.35
|
||||
* Tue May 03 2016 Anish Swaminathan <anishs@vmware.com> 8.0.33-1
|
||||
- Upgraded to version 8.0.33
|
||||
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 7.0.68-1
|
||||
- Upgraded to version 7.0.68
|
||||
* Mon Nov 16 2015 Sharath George <sharathg@vmware.com> 7.0.63-3
|
||||
- Change path to /var/opt.
|
||||
* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 7.0.63-2
|
||||
- Updated dependency after repackaging openjdk.
|
||||
* Wed Jul 8 2015 Sriram Nambakam <snambakam@vmware.com> 7.0.63
|
||||
- Initial build. First version
|
|
@ -1,400 +0,0 @@
|
|||
Name: apparmor
|
||||
Version: 3.1.2
|
||||
Release: 9%{?dist}
|
||||
Summary: AppArmor is an effective and easy-to-use Linux application security system.
|
||||
License: GNU LGPL v2.1
|
||||
URL: https://launchpad.net/apparmor
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
Group: Productivity/Security
|
||||
|
||||
Source0: https://launchpad.net/%{name}/3.1/%{version}/+download/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=e4fa8e0985472c00d3b68044f4150659787cf15b384b901af32b5aba3f0b2839f33bfe0b0675bf8ea7a1f5727152756a276c75b1dec383a33b92b0a1b8615a11
|
||||
|
||||
BuildRequires: perl
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: swig
|
||||
BuildRequires: build-essential
|
||||
BuildRequires: gawk
|
||||
BuildRequires: which
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: httpd
|
||||
BuildRequires: httpd-devel
|
||||
BuildRequires: httpd-tools
|
||||
BuildRequires: apr
|
||||
BuildRequires: apr-util-devel
|
||||
BuildRequires: Linux-PAM-devel
|
||||
BuildRequires: dejagnu
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-xml
|
||||
BuildRequires: bison
|
||||
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-pyflakes
|
||||
BuildRequires: cmake
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: glib-devel
|
||||
%endif
|
||||
|
||||
Requires: openssl
|
||||
|
||||
%description
|
||||
AppArmor is a file and network mandatory access control
|
||||
mechanism. AppArmor confines processes to the resources allowed by the
|
||||
systems administrator and can constrain the scope of potential security
|
||||
vulnerabilities.
|
||||
|
||||
%package -n libapparmor
|
||||
Summary: Utility library for AppArmor
|
||||
License: GNU LGPL v2.1
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description -n libapparmor
|
||||
This package contains the AppArmor library.
|
||||
|
||||
%package -n libapparmor-devel
|
||||
Summary: Development headers and libraries for libapparmor
|
||||
License: GNU LGPL v2.1
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libapparmor = %{version}-%{release}
|
||||
|
||||
%description -n libapparmor-devel
|
||||
This package contains development files for libapparmor.
|
||||
|
||||
%package -n apache2-mod_apparmor
|
||||
Summary: AppArmor module for apache2
|
||||
License: GNU LGPL v2.1
|
||||
Group: Productivity/Security
|
||||
|
||||
%description -n apache2-mod_apparmor
|
||||
This provides the Apache module needed to declare various differing
|
||||
confinement policies when running virtual hosts in the webserver
|
||||
by using the changehat abilities exposed through libapparmor.
|
||||
|
||||
%package profiles
|
||||
Summary: AppArmor profiles that are loaded into the %{name} kernel module
|
||||
License: GNU LGPL v2.1
|
||||
Group: Productivity/Security
|
||||
Requires: %{name}-abstractions = %{version}-%{release}
|
||||
|
||||
%description profiles
|
||||
This package contains the basic AppArmor profiles.
|
||||
|
||||
%package parser
|
||||
Summary: AppArmor userlevel parser utility
|
||||
License: GNU LGPL v2.1
|
||||
Group: Productivity/Security
|
||||
Requires: libapparmor = %{version}-%{release}
|
||||
Requires: systemd
|
||||
Requires: %{name}-profiles = %{version}-%{release}
|
||||
|
||||
%description parser
|
||||
The AppArmor Parser is a userlevel program that is used to load in
|
||||
program profiles to the AppArmor Security kernel module.
|
||||
This package is part of a suite of tools that used to be named
|
||||
SubDomain.
|
||||
|
||||
%package abstractions
|
||||
Summary: AppArmor abstractions and directory structure
|
||||
License: GNU LGPL v2.1
|
||||
Group: Productivity/Security
|
||||
Requires: %{name}-parser = %{version}-%{release}
|
||||
|
||||
%description abstractions
|
||||
AppArmor abstractions (common parts used in various profiles) and
|
||||
the /etc/%{name}.d/ directory structure.
|
||||
|
||||
%package -n pam_apparmor
|
||||
Summary: PAM module for AppArmor change_hat
|
||||
License: GNU LGPL v2.1
|
||||
Group: Productivity/Security
|
||||
Requires: Linux-PAM
|
||||
|
||||
%description -n pam_apparmor
|
||||
The pam_apparmor module provides the means for any PAM applications
|
||||
that call pam_open_session() to automatically perform an AppArmor
|
||||
change_hat operation in order to switch to a user-specific security
|
||||
policy.
|
||||
|
||||
%package utils
|
||||
Summary: AppArmor User-Level Utilities Useful for Creating AppArmor Profiles
|
||||
License: GNU LGPL v2.1
|
||||
Group: Productivity/Security
|
||||
Requires: libapparmor = %{version}-%{release}
|
||||
Requires: audit
|
||||
Requires: python3-%{name} = %{version}-%{release}
|
||||
Requires: %{name}-abstractions = %{version}-%{release}
|
||||
|
||||
%description utils
|
||||
This package contains programs to help create and manage AppArmor
|
||||
profiles.
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Python 3 interface for libapparmor functions
|
||||
License: GNU LGPL v2.1
|
||||
Group: Development/Libraries/Python
|
||||
Requires: libapparmor = %{version}-%{release}
|
||||
Requires: python3
|
||||
|
||||
%description -n python3-%{name}
|
||||
This package provides the python3 interface to AppArmor. It is used for python
|
||||
applications interfacing with AppArmor.
|
||||
|
||||
%package -n perl-%{name}
|
||||
Summary: AppArmor module for perl.
|
||||
License: GNU LGPL v2.1
|
||||
Group: Development/Libraries/Perl
|
||||
Requires: libapparmor = %{version}-%{release}
|
||||
|
||||
%description -n perl-%{name}
|
||||
This package contains the AppArmor module for perl.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
pushd ./libraries/libapparmor
|
||||
sh ./autogen.sh
|
||||
|
||||
%configure \
|
||||
--with-perl \
|
||||
--with-python
|
||||
|
||||
%make_build
|
||||
popd
|
||||
|
||||
for target in binutils \
|
||||
parser \
|
||||
utils \
|
||||
changehat/mod_apparmor \
|
||||
changehat/pam_apparmor \
|
||||
profiles; do
|
||||
%make_build -C ${target}
|
||||
done
|
||||
|
||||
%install
|
||||
for target in libraries/libapparmor \
|
||||
binutils \
|
||||
parser \
|
||||
utils \
|
||||
changehat/mod_apparmor \
|
||||
changehat/pam_apparmor \
|
||||
profiles; do
|
||||
%make_install %{?_smp_mflags} -C ${target}
|
||||
done
|
||||
|
||||
%make_install %{?_smp_mflags} -C parser install-systemd
|
||||
|
||||
mv %{buildroot}/lib/* %{buildroot}%{_libdir}
|
||||
mv %{buildroot}/sbin/* %{buildroot}%{_sbindir}
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
pip3 install notify2 dbus-python psutil
|
||||
ln -sfv %{_bindir}/pyflakes %{_bindir}/pyflakes3
|
||||
|
||||
for target in libraries/libapparmor \
|
||||
binutils \
|
||||
utils; do
|
||||
make check %{?_smp_mflags} -C ${target}
|
||||
done
|
||||
%endif
|
||||
|
||||
%post -n libapparmor
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun -n libapparmor
|
||||
/sbin/ldconfig
|
||||
|
||||
%preun parser
|
||||
%systemd_preun %{name}.service
|
||||
|
||||
%post parser
|
||||
%systemd_post %{name}.service
|
||||
|
||||
%postun parser
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -n libapparmor
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libapparmor.so.*
|
||||
|
||||
%files -n libapparmor-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libapparmor.a
|
||||
%{_libdir}/libapparmor.so
|
||||
%{_libdir}/pkgconfig/libapparmor.pc
|
||||
%dir %{_includedir}/aalogparse
|
||||
%dir %{_includedir}/sys
|
||||
%{_includedir}/aalogparse/*
|
||||
%{_includedir}/sys/*
|
||||
%doc %{_mandir}/man2/aa_change_hat.2.gz
|
||||
%doc %{_mandir}/man2/aa_find_mountpoint.2.gz
|
||||
%doc %{_mandir}/man2/aa_getcon.2.gz
|
||||
%doc %{_mandir}/man2/aa_query_label.2.gz
|
||||
%doc %{_mandir}/man3/aa_features.3.gz
|
||||
%doc %{_mandir}/man3/aa_kernel_interface.3.gz
|
||||
%doc %{_mandir}/man3/aa_policy_cache.3.gz
|
||||
%doc %{_mandir}/man3/aa_splitcon.3.gz
|
||||
|
||||
%files -n apache2-mod_apparmor
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/httpd/modules/mod_apparmor.so
|
||||
%doc %{_mandir}/man8/mod_apparmor.8.gz
|
||||
|
||||
%files profiles
|
||||
%defattr(-,root,root,755)
|
||||
%dir %{_sysconfdir}/%{name}.d/apache2.d
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/apache2.d/phpsysinfo
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/bin.*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/sbin.*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/usr.*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/local/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/samba-*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/zgrep
|
||||
%{_libdir}/%{name}/profile-load
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/extra-profiles/*
|
||||
|
||||
%files parser
|
||||
%defattr(755,root,root,755)
|
||||
%{_sbindir}/%{name}_parser
|
||||
%{_libdir}/%{name}/%{name}.systemd
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_libdir}/%{name}/rc.%{name}.functions
|
||||
%{_bindir}/aa-exec
|
||||
%{_bindir}/aa-enabled
|
||||
%dir %{_sysconfdir}/%{name}
|
||||
%dir %{_sysconfdir}/%{name}.d
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/parser.conf
|
||||
%{_localstatedir}/lib/%{name}
|
||||
%doc %{_mandir}/man5/%{name}.d.5.gz
|
||||
%doc %{_mandir}/man5/%{name}.vim.5.gz
|
||||
%doc %{_mandir}/man7/%{name}.7.gz
|
||||
%doc %{_mandir}/man8/apparmor_parser.8.gz
|
||||
%doc %{_mandir}/man1/aa-enabled.1.gz
|
||||
%doc %{_mandir}/man1/aa-exec.1.gz
|
||||
%doc %{_mandir}/man2/aa_stack_profile.2.gz
|
||||
|
||||
%files abstractions
|
||||
%defattr(644,root,root,755)
|
||||
%dir %{_sysconfdir}/%{name}.d/abstractions
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/abstractions/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/lsb_release
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/nvidia_modprobe
|
||||
%dir %{_sysconfdir}/%{name}.d/disable
|
||||
%dir %{_sysconfdir}/%{name}.d/local
|
||||
%dir %{_sysconfdir}/%{name}.d/tunables
|
||||
%dir %{_sysconfdir}/%{name}.d/abi
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/php-fpm
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/tunables/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.d/abi/*
|
||||
%exclude %{_datadir}/locale
|
||||
|
||||
%files utils
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/easyprof.conf
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/logprof.conf
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/notify.conf
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/severity.db
|
||||
%{_sbindir}/aa-*
|
||||
%{_sbindir}/apparmor_status
|
||||
%{_bindir}/aa-easyprof
|
||||
%{_bindir}/aa-features-abi
|
||||
%{_datadir}/%{name}/easyprof/
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/%{name}.vim
|
||||
%doc %{_mandir}/man1/aa-features-abi.1.gz
|
||||
%doc %{_mandir}/man2/aa_change_profile.2.gz
|
||||
%doc %{_mandir}/man5/logprof.conf.5.gz
|
||||
%doc %{_mandir}/man8/aa-*.gz
|
||||
%doc %{_mandir}/man8/apparmor_status.8.gz
|
||||
%doc %{_mandir}/man7/apparmor_xattrs.7.gz
|
||||
|
||||
%files -n pam_apparmor
|
||||
%defattr(-,root,root,755)
|
||||
%{_libdir}/security/pam_apparmor.so
|
||||
|
||||
%files -n python3-%{name}
|
||||
%defattr(-,root,root)
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files -n perl-%{name}
|
||||
%defattr(-,root,root)
|
||||
%{perl_vendorarch}/auto/LibAppArmor/
|
||||
%{perl_vendorarch}/LibAppArmor.pm
|
||||
%exclude %{perl_archlib}/perllocal.pod
|
||||
|
||||
%changelog
|
||||
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 3.1.2-9
|
||||
- Bump version as a part of openssl upgrade
|
||||
* Mon Oct 30 2023 Nitesh Kumar <kunitesh@vmware.com> 3.1.2-8
|
||||
- Bump version as a part of httpd v2.4.58 upgrade
|
||||
* Fri Sep 29 2023 Nitesh Kumar <kunitesh@vmware.com> 3.1.2-7
|
||||
- Bump version as a part of apr-util v1.6.3 upgrade
|
||||
* Tue Apr 11 2023 Guruswamy Basavaiah <bguruswamy@vmware.com> 3.1.2-6
|
||||
- Added apparmor-parser dependency on apparmor-profiles
|
||||
* Mon Apr 03 2023 Nitesh Kumar <kunitesh@vmware.com> 3.1.2-5
|
||||
- Bump version as a part of httpd v2.4.56 upgrade
|
||||
* Tue Jan 31 2023 Guruswamy Basavaiah <bguruswamy@vmware.com> 3.1.2-4
|
||||
- Added apparmor-utils dependency on python3-apparmor
|
||||
* Mon Jan 30 2023 Nitesh Kumar <kunitesh@vmware.com> 3.1.2-3
|
||||
- Bump version as a part of httpd v2.4.55 upgrade
|
||||
* Thu Jan 12 2023 Him Kalyan Bordoloi <bordoloih@vmware.com> 3.1.2-2
|
||||
- Bump up version no. as part of swig upgrade
|
||||
* Thu Dec 15 2022 Shreenidhi Shedi <sshedi@vmware.com> 3.1.2-1
|
||||
- Upgrade to v3.1.2
|
||||
* Thu Dec 08 2022 Dweep Advani <dadvani@vmware.com> 3.1.1-2
|
||||
- Perl version upgrade to 5.36.0
|
||||
* Thu Nov 03 2022 Nitesh Kumar <kunitesh@vmware.com> 3.1.1-1
|
||||
- Version upgrade to v3.1.1
|
||||
* Sun Aug 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 3.0.4-3
|
||||
- Remove .la files
|
||||
* Mon Jun 20 2022 Nitesh Kumar <kunitesh@vmware.com> 3.0.4-2
|
||||
- Bump version as a part of httpd v2.4.54 upgrade
|
||||
* Mon Apr 18 2022 Gerrit Photon <photon-checkins@vmware.com> 3.0.4-1
|
||||
- Automatic Version Bump
|
||||
* Tue Oct 19 2021 Shreenidhi Shedi <sshedi@vmware.com> 3.0.3-1
|
||||
- Upgrade to 3.0.3
|
||||
* Thu Oct 07 2021 Dweep Advani <dadvani@vmware.com> 3.0.1-3
|
||||
- Rebuild with upgraded httpd 2.4.50
|
||||
* Tue Oct 05 2021 Shreenidhi Shedi <sshedi@vmware.com> 3.0.1-2
|
||||
- Bump version as a part of httpd upgrade
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 3.0.1-1
|
||||
- Automatic Version Bump
|
||||
* Fri Nov 06 2020 Tapas Kundu <tkundu@vmware.com> 3.0.0-3
|
||||
- Build with python 3.9
|
||||
* Fri Oct 23 2020 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 3.0.0-2
|
||||
- Fix build failure in apparmor on linux 5.9-rc7
|
||||
* Thu Oct 01 2020 Gerrit Photon <photon-checkins@vmware.com> 3.0.0-1
|
||||
- Automatic Version Bump
|
||||
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 2.13.4-2
|
||||
- openssl 1.1.1
|
||||
* Wed Aug 26 2020 Gerrit Photon <photon-checkins@vmware.com> 2.13.4-1
|
||||
- Automatic Version Bump
|
||||
* Sun Jul 26 2020 Tapas Kundu <tkundu@vmware.com> 2.13-8
|
||||
- Updated using python 3.8 libs
|
||||
* Tue Mar 05 2019 Siju Maliakkal <smaliakkal@vmware.com> 2.13-7
|
||||
- Excluded conflicting perllocal.pod
|
||||
* Thu Dec 06 2018 Keerthana K <keerthanak@vmware.com> 2.13-6
|
||||
- Fixed make check failures.
|
||||
* Fri Oct 05 2018 Tapas Kundu <tkundu@vmware.com> 2.13-5
|
||||
- Updated using python 3.7 libs
|
||||
* Wed Oct 03 2018 Keerthana K <keerthanak@vmware.com> 2.13-4
|
||||
- Depcrecated ruby apparmor package.
|
||||
- Modified the perl and python path to generic.
|
||||
* Wed Sep 26 2018 Ajay Kaher <akaher@vmware.com> 2.13-3
|
||||
- Fix for aarch64
|
||||
* Thu Sep 20 2018 Keerthana K <keerthanak@vmware.com> 2.13-2
|
||||
- Updated the ruby packagefor latest version.
|
||||
* Thu Aug 30 2018 Keerthana K <keerthanak@vmware.com> 2.13-1
|
||||
- Initial Apparmor package for Photon.
|
|
@ -1,185 +0,0 @@
|
|||
%define apuver 1
|
||||
|
||||
Summary: The Apache Portable Runtime Utility Library
|
||||
Name: apr-util
|
||||
Version: 1.6.3
|
||||
Release: 2%{?dist}
|
||||
License: Apache License 2.0
|
||||
URL: https://apr.apache.org
|
||||
Group: System Environment/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://archive.apache.org/dist/apr/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=25f078413dc552b3391845b3dc1da72773efe181634deb2f88a9c72a1a49c82883113704bf97db8327012ccafb84a68370267925e3c7cc092ed82fc33fd7954e
|
||||
|
||||
BuildRequires: apr-devel
|
||||
BuildRequires: sqlite-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: nss-devel
|
||||
BuildRequires: expat-devel
|
||||
BuildRequires: openldap-devel
|
||||
BuildRequires: postgresql15-devel
|
||||
|
||||
Requires: apr
|
||||
Requires: openssl
|
||||
Requires: expat
|
||||
Requires: nss
|
||||
|
||||
%description
|
||||
The Apache Portable Runtime Utility Library.
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries
|
||||
Summary: APR utility library development kit
|
||||
Requires: apr-devel
|
||||
Requires: expat-devel
|
||||
Requires: util-linux-devel
|
||||
Requires: openldap-devel
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package provides the support files which can be used to
|
||||
build applications using the APR utility library.
|
||||
|
||||
%package ldap
|
||||
Group: Development/Libraries
|
||||
Summary: APR utility library LDAP support
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: openldap
|
||||
|
||||
%description ldap
|
||||
This package provides the LDAP support for the %{name}.
|
||||
|
||||
%package pgsql
|
||||
Group: Development/Libraries
|
||||
Summary: APR utility library PostgreSQL DBD driver
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: (postgresql15 or postgresql14 or postgresql13)
|
||||
|
||||
%description pgsql
|
||||
This package provides the PostgreSQL driver for the %{name} DBD (database abstraction) interface.
|
||||
|
||||
%package sqlite
|
||||
Group: Development/Libraries
|
||||
Summary: APR utility library SQLite DBD driver.
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description sqlite
|
||||
This package provides the SQLite driver for the %{name} DBD
|
||||
(database abstraction) interface.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-apr=%{_prefix} \
|
||||
--with-ldap \
|
||||
--without-gdbm \
|
||||
--with-sqlite3 \
|
||||
--with-pgsql \
|
||||
--without-sqlite2 \
|
||||
--with-openssl=%{_prefix} \
|
||||
--with-nss \
|
||||
--with-crypto
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%make_build check
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/aprutil.exp
|
||||
%{_libdir}/libaprutil-%{apuver}.so.*
|
||||
%{_libdir}/%{name}-%{apuver}/apr_crypto_nss*
|
||||
%{_libdir}/%{name}-%{apuver}/apr_crypto_openssl*
|
||||
%exclude %dir %{_libdir}/debug
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libaprutil-%{apuver}.*a
|
||||
%{_libdir}/libaprutil-%{apuver}.so
|
||||
%{_bindir}/*
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/%{name}-%{apuver}.pc
|
||||
|
||||
%files ldap
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/%{name}-%{apuver}/apr_ldap*
|
||||
|
||||
%files pgsql
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/%{name}-%{apuver}/apr_dbd_pgsql*
|
||||
|
||||
%files sqlite
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/%{name}-%{apuver}/apr_dbd_sqlite*
|
||||
|
||||
%changelog
|
||||
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.6.3-2
|
||||
- Bump version as a part of openssl upgrade
|
||||
* Fri Sep 29 2023 Nitesh Kumar <kunitesh@vmware.com> 1.6.3-1
|
||||
- Version upgrade to v1.6.3 to fix CVE-2022-25147
|
||||
* Tue Sep 19 2023 Nitesh Kumar <kunitesh@vmware.com> 1.6.1-13
|
||||
- Bump version as a part of openldap v2.6.4 upgrade
|
||||
* Fri Aug 25 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.6.1-12
|
||||
- Fix devel package requires
|
||||
* Tue May 09 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.6.1-11
|
||||
- Bump version as a part of nss upgrade
|
||||
* Wed Feb 08 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.6.1-10
|
||||
- Bump version as a part of openldap upgrade
|
||||
* Fri Jan 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.6.1-9
|
||||
- Remove pgsql-12 dependency
|
||||
* Wed Jan 11 2023 Oliver Kurth <okurth@vmware.com> 1.6.1-8
|
||||
- bump release as part of sqlite update
|
||||
* Thu Jan 05 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.6.1-7
|
||||
- Bump version as a part of postgresql fixes
|
||||
* Sat Jul 30 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.6.1-6
|
||||
- Bump version as a part of sqlite upgrade
|
||||
* Mon Feb 28 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.6.1-5
|
||||
- Fix binary path
|
||||
* Wed Aug 04 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.6.1-4
|
||||
- Bump up release for openssl
|
||||
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.6.1-3
|
||||
- openssl 1.1.1
|
||||
* Fri Sep 21 2018 Dweep Advani <dadvani@vmware.com> 1.6.1-2
|
||||
- Consuming postgresql 10.5
|
||||
* Tue Sep 18 2018 Ankit Jain <ankitja@vmware.com> 1.6.1-1
|
||||
- Updated to version 1.6.1
|
||||
* Mon Sep 18 2017 Rui Gu <ruig@vmware.com> 1.5.4-12
|
||||
- Disable smp_flag on make check because of race condition
|
||||
* Thu Jul 6 2017 Divya Thaluru <dthaluru@vmware.com> 1.5.4-11
|
||||
- Added build requires on postgresql-devel
|
||||
* Wed May 10 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.5.4-10
|
||||
- Add missing Requires.
|
||||
* Tue Apr 18 2017 Alexey Makhalov <amakhalov@vmware.com> 1.5.4-9
|
||||
- Add expat-devel build deps otherwise it builds expat from its source tree
|
||||
* Fri Nov 18 2016 Alexey Makhalov <amakhalov@vmware.com> 1.5.4-8
|
||||
- Add sqlite-devel build deps
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.4-7
|
||||
- GA - Bump release of all rpms
|
||||
* Wed Apr 13 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.4-6
|
||||
- remove libexpat files
|
||||
* Tue Sep 22 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.5.4-5
|
||||
- Updated build-requires after creating devel package for apr.
|
||||
* Wed Sep 16 2015 Xiaolin Li <xiaolinl@vmware.com> 1.5.4-4
|
||||
- Seperate Separate apr-util to apr-util, apr-util-devel, aprutil-ldap, apr-util-pgsql, and apr-utilsqlite.
|
||||
* Wed Jul 15 2015 Sarah Choi <sarahc@vmware.com> 1.5.4-4
|
||||
- Use apuver(=1) instead of version for mesos
|
||||
* Mon Jul 13 2015 Alexey Makhalov <amakhalov@vmware.com> 1.5.2-3
|
||||
- Exclude /usr/lib/debug
|
||||
* Wed Jul 01 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.2-2
|
||||
- Fix tags and paths.
|
||||
* Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.4-1
|
||||
- Initial build. First version
|
|
@ -1,27 +0,0 @@
|
|||
diff --git a/test/testsock.c b/test/testsock.c
|
||||
index 09f2a9e..b1cf8ba 100644
|
||||
--- a/test/testsock.c
|
||||
+++ b/test/testsock.c
|
||||
@@ -155,16 +155,22 @@ static void test_serv_by_name(abts_case *tc, void *data)
|
||||
rv = apr_sockaddr_info_get(&sa, NULL, APR_UNSPEC, 0, 0, p);
|
||||
APR_ASSERT_SUCCESS(tc, "Problem generating sockaddr", rv);
|
||||
|
||||
+ /* /etc/services is not available while compiling, so apr_getservbyname
|
||||
+ * will always return APR_ENOENT. */
|
||||
+#if 0
|
||||
rv = apr_getservbyname(sa, "ftp");
|
||||
APR_ASSERT_SUCCESS(tc, "Problem getting ftp service", rv);
|
||||
ABTS_INT_EQUAL(tc, 21, sa->port);
|
||||
+#endif
|
||||
|
||||
rv = apr_getservbyname(sa, "complete_and_utter_rubbish");
|
||||
APR_ASSERT_SUCCESS(tc, "Problem getting non-existent service", !rv);
|
||||
|
||||
+#if 0
|
||||
rv = apr_getservbyname(sa, "telnet");
|
||||
APR_ASSERT_SUCCESS(tc, "Problem getting telnet service", rv);
|
||||
ABTS_INT_EQUAL(tc, 23, sa->port);
|
||||
+#endif
|
||||
}
|
||||
|
||||
static apr_socket_t *setup_socket(abts_case *tc)
|
|
@ -1,94 +0,0 @@
|
|||
%global aprver 1
|
||||
%global __brp_remove_la_files %{nil}
|
||||
|
||||
Summary: The Apache Portable Runtime
|
||||
Name: apr
|
||||
Version: 1.7.0
|
||||
Release: 5%{?dist}
|
||||
License: Apache License 2.0
|
||||
URL: https://apr.apache.org
|
||||
Group: System Environment/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://archive.apache.org/dist/%{name}/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=daa140c83c7e2c45c3980d9dc81d34fa662bebd050653562c39572d0ddf2eaedb71767c518a59d77f59db9b32e00221ef48b9f72ec3666c4521dd511969f3706
|
||||
|
||||
%if 0%{?with_check}
|
||||
Patch0: apr-skip-getservbyname-test.patch
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Apache Portable Runtime.
|
||||
|
||||
%package devel
|
||||
Summary: Header and development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: util-linux-devel
|
||||
|
||||
%description devel
|
||||
It contains the libraries and header files to create applications.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-installbuilddir=%{_libdir}/%{name}/build-%{aprver} \
|
||||
--with-devrandom=/dev/urandom \
|
||||
CC=gcc CXX=g++
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%make_build check
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/%{name}/*
|
||||
%{_libdir}/%{name}.exp
|
||||
%{_libdir}/libapr*.so.*
|
||||
%exclude %dir %{_libdir}/debug
|
||||
%{_bindir}/*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.a
|
||||
%{_libdir}/*.la
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig
|
||||
|
||||
%changelog
|
||||
* Fri Aug 25 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.7.0-5
|
||||
- Fix devel package requires
|
||||
* Sun Aug 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.7.0-4
|
||||
- Don't remove .la files, needed during subversion build
|
||||
* Mon Feb 28 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.7.0-3
|
||||
- Fix binary path
|
||||
* Tue Feb 16 2021 Ankit Jain <ankitja@vmware.com> 1.7.0-2
|
||||
- Fix make check
|
||||
* Mon Jul 13 2020 Gerrit Photon <photon-checkins@vmware.com> 1.7.0-1
|
||||
- Automatic Version Bump
|
||||
* Tue Sep 18 2018 Ankit Jain <ankitja@vmware.com> 1.6.5-1
|
||||
- Updated to version 1.6.5
|
||||
* Fri Dec 08 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-7
|
||||
- Fix CVE-2017-12613
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.2-6
|
||||
- GA - Bump release of all rpms
|
||||
* Mon Sep 21 2015 Harish Udaiya Kumar<hudaiyakumar@vmware.com> 1.5.2-5
|
||||
- Repacked to move the include files in devel package.
|
||||
* Wed Jul 15 2015 Sarah Choi <sarahc@vmware.com> 1.5.2-4
|
||||
- Use aprver(=1) instead of version for mesos
|
||||
* Mon Jul 13 2015 Alexey Makhalov <amakhalov@vmware.com> 1.5.2-3
|
||||
- Exclude /usr/lib/debug
|
||||
* Wed Jul 01 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.2-2
|
||||
- Fix tags and paths.
|
||||
* Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.2-1
|
||||
- Initial build. First version
|
|
@ -1,89 +0,0 @@
|
|||
%global libname libargon2
|
||||
%global soname 1
|
||||
|
||||
Summary: Tools for password hashing
|
||||
Name: argon2
|
||||
Version: 20190702
|
||||
Release: 3%{?dist}
|
||||
License: Apache 2.0
|
||||
Group: System Environment/Base
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
URL: https://github.com/P-H-C/phc-winner-argon2
|
||||
|
||||
Source0: https://github.com/P-H-C/phc-winner-argon2/archive/refs/tags/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=0a4cb89e8e63399f7df069e2862ccd05308b7652bf4ab74372842f66bcc60776399e0eaf979a7b7e31436b5e6913fe5b0a6949549d8c82ebd06e0629b106e85f
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
Requires: libpwquality
|
||||
|
||||
%description
|
||||
Argon2 is a password-hashing function that summarizes the state of the art in the design of memory-hard functions and can be used to hash passwords for credential storage, key derivation, or other applications.
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: Argon2 password hashing library
|
||||
Group: Development/Libraries
|
||||
Provides: %{libname}.so.%{soname}()(64bit)
|
||||
|
||||
%description -n %{libname}
|
||||
Libraries for integrating with Argon2
|
||||
|
||||
%package -n %{libname}-devel
|
||||
Summary: Argon2 password hashing libraries and headers
|
||||
Group: Development/Libraries
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
|
||||
%description -n %{libname}-devel
|
||||
Libraries and Headers for integrating with Argon2
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n phc-winner-%{name}-%{version}
|
||||
|
||||
%build
|
||||
%make_build LIBRARY_REL=lib OPTTARGET=%{_arch}
|
||||
|
||||
%install
|
||||
%make_install LIBRARY_REL=lib OPTTARGET=%{_arch} \
|
||||
PREFIX=%{_prefix} %{?_smp_mflags}
|
||||
|
||||
rm %{buildroot}%{_libdir}/*.a
|
||||
install -Dpm 644 %{libname}.pc %{buildroot}%{_libdir}/pkgconfig/%{libname}.pc
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
make test %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%post -n %{libname}
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun -n %{libname}
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%files -n %{libname}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/%{libname}.so.%{soname}
|
||||
|
||||
%files -n %{libname}-devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/%{name}.h
|
||||
%{_libdir}/%{libname}.so
|
||||
%{_libdir}/pkgconfig/%{libname}.pc
|
||||
|
||||
%changelog
|
||||
* Fri May 05 2023 Shreenidhi Shedi <sshedi@vmware.com> 20190702-3
|
||||
- Remove _isa entries
|
||||
* Thu Jul 29 2021 Vamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com> 20190702-2
|
||||
- Pass OPTTARGET=%{_arch} to make to avoid building package for native instruction set
|
||||
* Thu Apr 8 2021 Vamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com> 20190702-1
|
||||
- Initial package
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/setup.py b/setup.py
|
||||
index babc7f2..c4abbcd 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -109,8 +109,6 @@ for dirprefix in PREFIX_TUPLE:
|
||||
'images/helloworld.jpg',
|
||||
'images/highlighter.png',
|
||||
'images/highlight.jpg',
|
||||
- 'images/latexmath_source.png',
|
||||
- 'images/logo_asciidoc3.png',
|
||||
'images/redsquare.jpg',
|
||||
'images/smallnew.png',
|
||||
'images/tiger.png', ]))
|
|
@ -1,67 +0,0 @@
|
|||
%define debug_package %{nil}
|
||||
|
||||
Summary: AsciiDoc is a human readable text document format
|
||||
Name: asciidoc3
|
||||
Version: 3.2.3
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://gitlab.com/asciidoc3/asciidoc3
|
||||
Group: System Environment/Development
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://asciidoc3.org/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=926f367b1740a40a03beb9c45a05de855e69d8c2ac9b9a66c19dd21f65f8250b3fad02b283f7f8b2fb7ea131d4836d5aa623647e1931b682a9a9e91f62863f6c
|
||||
Patch0: asciidoc3-py311.patch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
Requires: python3-setuptools
|
||||
Requires: python3
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Provides: asciidoc
|
||||
|
||||
%description
|
||||
AsciiDoc3 is a text document format for writing notes, documentation,
|
||||
articles, books, ebooks, slideshows, web pages, man pages and blogs.
|
||||
AsciiDoc3 files can be translated to many formats including HTML, PDF,
|
||||
EPUB, man page, and DocBook markup. AsciiDoc3 is highly configurable:
|
||||
both the AsciiDoc3 source file syntax and the backend output markups
|
||||
(which can be almost any type of SGML/XML markup) can be customized
|
||||
and extended by the user.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-v%{version}
|
||||
|
||||
%build
|
||||
%{py3_build}
|
||||
|
||||
%install
|
||||
%{py3_install}
|
||||
mv %{buildroot}/%{name} %{buildroot}%{python3_sitelib}
|
||||
ln -sfv %{_bindir}/%{name} %{buildroot}%{_bindir}/asciidoc
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/*
|
||||
|
||||
%changelog
|
||||
* Fri Dec 02 2022 Prashant S Chauhan <psinghchauha@vmware.com> 3.2.3-2
|
||||
- Update release to compile with python 3.11
|
||||
* Mon Oct 31 2022 Prashant S Chauhan <psinghchauha@vmware.com> 3.2.3-1
|
||||
- Update to 3.2.3
|
||||
* Thu Sep 29 2022 Shreenidhi Shedi <sshedi@vmware.com> 3.2.0-2
|
||||
- Provde asciidoc from asciidoc3
|
||||
* Sun Jun 21 2020 Tapas Kundu <tkundu@vmware.com> 3.2.0-1
|
||||
- Initial build. First version
|
|
@ -1,110 +0,0 @@
|
|||
Summary: Service Provider Interface for the Assistive Technologies.
|
||||
Name: at-spi2-core
|
||||
Version: 2.46.0
|
||||
Release: 5%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus
|
||||
Group: System Environment/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.46/%{name}-%{version}.tar.xz
|
||||
%define sha512 at-spi2-core=633af2c02fab3b8cb02e37f929ce80dd5ce28ca5641046ef5e25cb29299530b90028e6c6f318a0c098a4270bed3eab48fb55d6967a76bfadd2520f49de47c770
|
||||
|
||||
BuildRequires: meson >= 0.50
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: glib-devel
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libXtst-devel
|
||||
BuildRequires: libXext-devel
|
||||
BuildRequires: libXi-devel
|
||||
|
||||
Requires: dbus
|
||||
Requires: glib
|
||||
Requires: libX11
|
||||
Requires: libXtst
|
||||
Requires: libXext
|
||||
Requires: libXi
|
||||
Requires: atk
|
||||
|
||||
%description
|
||||
The At-Spi2 Core package is a part of the GNOME Accessibility Project. It provides a Service Provider Interface for the Assistive Technologies available on the GNOME platform and a library against which applications can be linked.
|
||||
|
||||
%package devel
|
||||
Summary: Header and development files
|
||||
Requires: %{name} = %{version}
|
||||
Requires: glib-devel
|
||||
Requires: dbus-devel
|
||||
Requires: libX11-devel
|
||||
Requires: libXtst-devel
|
||||
Requires: libXext-devel
|
||||
Requires: libXi-devel
|
||||
Requires: atk-devel
|
||||
|
||||
%description devel
|
||||
It contains the libraries and header files to create applications
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%meson \
|
||||
-Dx11=yes \
|
||||
%{nil}
|
||||
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
rm -rf \
|
||||
%{buildroot}%{_libdir}/libatk-1.0* \
|
||||
%{buildroot}%{_includedir}/atk-1.0/ \
|
||||
%{buildroot}%{_libdir}/pkgconfig/atk.pc
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%check
|
||||
%meson_test
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/*
|
||||
%{_libexecdir}/*
|
||||
%{_libdir}/libatk-bridge*.so.*
|
||||
%{_libdir}/libatspi*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/*
|
||||
%{_includedir}/at-spi-2.0/*
|
||||
%{_includedir}/at-spi2-atk/*
|
||||
%{_libdir}/libatk-bridge*.so
|
||||
%{_libdir}/libatspi*.so
|
||||
%{_libdir}/gtk-2.0/modules/libatk-bridge.so
|
||||
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop
|
||||
%{_libdir}/systemd/user/at-spi-dbus-bus.service
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.46.0-5
|
||||
- Add atk-devel to devel package requires
|
||||
* Wed Jun 21 2023 Kuntal Nayak <nkuntal@vmware.com> 2.46.0-4
|
||||
- Bump version as a part of libXi upgrade
|
||||
* Wed Jun 14 2023 Shivani Agarwal <shivania2@vmware.com> 2.46.0-3
|
||||
- Bump version as a part of libX11 upgrade
|
||||
* Wed Apr 19 2023 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 2.46.0-2
|
||||
- Bump version as a part of libxml2 upgrade
|
||||
* Thu Dec 15 2022 Gerrit Photon <photon-checkins@vmware.com> 2.46.0-1
|
||||
- Automatic Version Bump
|
||||
* Mon Sep 05 2022 Shivani Agarwal <shivania2@vmware.com> 2.45.91-1
|
||||
- Version update
|
||||
* Fri Aug 06 2021 Alexey Makhalov <amakhalov@vmware.com> 2.40.3-1
|
||||
- Version update
|
||||
* Wed May 27 2015 Alexey Makhalov <amakhalov@vmware.com> 2.16.0-1
|
||||
- initial version
|
|
@ -1,170 +0,0 @@
|
|||
Summary: Advanced Trivial File Transfer Protocol (ATFTP) - TFTP server
|
||||
Name: atftp
|
||||
Version: 0.8.0
|
||||
Release: 5%{?dist}
|
||||
URL: http://sourceforge.net/projects/atftp
|
||||
License: GPLv2+ and GPLv3+ and LGPLv2+
|
||||
Group: System Environment/Daemons
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://sourceforge.net/projects/%{name}/files/latest/download/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=b700b3e4182970fb494ffabd49e39d3622b1aff5f69882549eff0b52a01c8c47babe51b451c4829f9b833ea2ea7c590a2f3819f8e3508176fa7d1b5c0e152b68
|
||||
|
||||
Source1: %{name}.sysusers
|
||||
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: pcre2-devel
|
||||
BuildRequires: systemd-devel
|
||||
|
||||
Requires: systemd
|
||||
Requires: pcre2-libs
|
||||
Requires(pre): systemd-rpm-macros
|
||||
|
||||
Provides: tftp-server
|
||||
|
||||
Provides: tftp
|
||||
|
||||
%description
|
||||
Multithreaded TFTP server implementing all options (option extension and
|
||||
multicast) as specified in RFC1350, RFC2090, RFC2347, RFC2348 and RFC2349.
|
||||
Atftpd also support multicast protocol knowed as mtftp, defined in the PXE
|
||||
specification. The server supports being started from inetd(8) as well as
|
||||
a deamon using init scripts.
|
||||
|
||||
%package client
|
||||
Summary: Advanced Trivial File Transfer Protocol (ATFTP) - TFTP client
|
||||
Group: Applications/Internet
|
||||
|
||||
%description client
|
||||
Advanced Trivial File Transfer Protocol client program for requesting
|
||||
files using the TFTP protocol.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
sh ./autogen.sh
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
mkdir -p %{buildroot}%{_sharedstatedir}/tftpboot \
|
||||
%{buildroot}%{_unitdir} \
|
||||
%{buildroot}%{_sysconfdir}/sysconfig \
|
||||
%{buildroot}%{_sysusersdir}
|
||||
|
||||
install -p -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/
|
||||
cat << EOF >> %{buildroot}%{_unitdir}/atftpd.service
|
||||
[Unit]
|
||||
Description=The tftp server serves files using the trivial file transfer protocol.
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=%{_sysconfdir}/sysconfig/atftpd
|
||||
ExecStart=%{_sbindir}/atftpd --user \$ATFTPD_USER --group \$ATFTPD_GROUP \$ATFTPD_DIRECTORY
|
||||
StandardInput=socket
|
||||
|
||||
[Install]
|
||||
Also=atftpd.socket
|
||||
EOF
|
||||
|
||||
cat << EOF >> %{buildroot}%{_unitdir}/atftpd.socket
|
||||
[Unit]
|
||||
Description=Tftp Server Socket
|
||||
|
||||
[Socket]
|
||||
ListenDatagram=69
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
EOF
|
||||
|
||||
cat << EOF >> %{buildroot}%{_sysconfdir}/sysconfig/atftpd
|
||||
ATFTPD_USER=tftp
|
||||
ATFTPD_GROUP=tftp
|
||||
ATFTPD_OPTIONS=
|
||||
ATFTPD_USE_INETD=false
|
||||
ATFTPD_DIRECTORY=%{_sharedstatedir}/tftpboot
|
||||
ATFTPD_BIND_ADDRESSES=
|
||||
EOF
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
%endif
|
||||
|
||||
%pre
|
||||
if [ $1 -eq 1 ] ; then
|
||||
%sysusers_create_compat %{SOURCE1}
|
||||
fi
|
||||
|
||||
%preun
|
||||
%systemd_preun atftpd.socket
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%systemd_post atftpd.socket
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%systemd_postun_with_restart atftpd.socket
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %attr(0750,nobody,nobody) %{_var}/lib/tftpboot
|
||||
%{_mandir}/man8/atftpd.8.gz
|
||||
%{_mandir}/man8/in.tftpd.8.gz
|
||||
%{_sbindir}/atftpd
|
||||
%{_sbindir}/in.tftpd
|
||||
%{_unitdir}/atftpd.service
|
||||
%{_unitdir}/atftpd.socket
|
||||
%{_sysconfdir}/sysconfig/atftpd
|
||||
%{_sysusersdir}/%{name}.sysusers
|
||||
|
||||
%files client
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man1/atftp.1.gz
|
||||
%{_bindir}/atftp
|
||||
|
||||
%changelog
|
||||
* Tue Aug 08 2023 Mukul Sikka <msikka@vmware.com> 0.8.0-5
|
||||
- Resolving systemd-rpm-macros for group creation
|
||||
* Mon Jul 24 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 0.8.0-4
|
||||
- Version bump as part of pcre2 update
|
||||
* Fri Mar 10 2023 Mukul Sikka <msikka@vmware.com> 0.8.0-3
|
||||
- Use systemd-rpm-macros for user creation
|
||||
* Thu Dec 22 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.8.0-2
|
||||
- Bump version as a part of readline upgrade
|
||||
* Thu Dec 15 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.8.0-1
|
||||
- Upgrade to v0.8.0
|
||||
* Mon Sep 27 2021 Shreenidhi Shedi <sshedi@vmware.com> 0.7.5-1
|
||||
- Upgrade to v0.7.5, fixes CVE-2021-41054
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 0.7.4-1
|
||||
- Automatic Version Bump
|
||||
* Wed Jan 20 2021 Tapas Kundu <tkundu@vmware.com> 0.7.2-2
|
||||
- Fix CVE-2020-6097
|
||||
* Tue Jun 25 2019 Tapas Kundu <tkundu@vmware.com> 0.7.2-1
|
||||
- Updated to release 0.7.2
|
||||
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 0.7.1-8
|
||||
- Remove shadow from requires and use explicit tools for post actions
|
||||
* Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com> 0.7.1-7
|
||||
- Fixed logic to restart the active services after upgrade
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.7.1-6
|
||||
- GA - Bump release of all rpms
|
||||
* Fri May 6 2016 Divya Thaluru <dthaluru@vmware.com> 0.7.1-5
|
||||
- Adding post-install run time dependencies
|
||||
* Tue May 3 2016 Divya Thaluru <dthaluru@vmware.com> 0.7.1-4
|
||||
- Fixing spec file to handle rpm upgrade scenario correctly
|
||||
* Thu Dec 10 2015 Xiaolin Li <xiaolinl@vmware.com> 0.7.1-3
|
||||
- Add systemd to Requires and BuildRequires.
|
||||
- Use systemctl to enable/disable service.
|
||||
* Mon Nov 23 2015 Xiaolin Li <xiaolinl@vmware.com> 0.7.1-2
|
||||
- Chang tftpd from xinetd service to systemd service.
|
||||
* Thu Nov 12 2015 Kumar Kaushik <kaushikk@vmware.com> 0.7.1-1
|
||||
- Initial build. First version
|
|
@ -1,2 +0,0 @@
|
|||
g tftp -
|
||||
u tftp - "tftp" /home/tftp /bin/false
|
|
@ -1,65 +0,0 @@
|
|||
Summary: Accessibility interfaces to have full access to view and control running applications.
|
||||
Name: atk
|
||||
Version: 2.38.0
|
||||
Release: 1%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: http://www.gnome.org
|
||||
Group: System Environment/Libraries
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.16/%{name}-%{version}.tar.xz
|
||||
%define sha512 atk=dffd0a0814a9183027c38a985d86cb6544858e9e7d655843e153440467957d6bc1abd9c9479a57078aea018053410438a30a9befb7414dc79020b223cd2c774b
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: meson
|
||||
BuildRequires: glib-devel
|
||||
BuildRequires: gobject-introspection-devel
|
||||
Requires: glib
|
||||
|
||||
%description
|
||||
ATK provides the set of accessibility interfaces that are implemented by other toolkits and applications. Using the ATK interfaces, accessibility tools have full access to view and control running applications.
|
||||
|
||||
%package devel
|
||||
Summary: Header and development files for
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: gobject-introspection-devel
|
||||
|
||||
%description devel
|
||||
It contains the libraries and header files to create applications
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%check
|
||||
%meson_test
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so.*
|
||||
%{_datadir}/*
|
||||
%{_libdir}/girepository-1.0
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig
|
||||
|
||||
%changelog
|
||||
* Fri Aug 19 2022 Shivani Agarwal <shivania2@vmware.com> 2.38.0-1
|
||||
- Upgrade version 2.38.0
|
||||
* Thu May 21 2015 Alexey Makhalov <amakhalov@vmware.com> 2.16.0-1
|
||||
- initial version
|
|
@ -1,92 +0,0 @@
|
|||
Summary: Attr-2.5.1
|
||||
Name: attr
|
||||
Version: 2.5.1
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://savannah.nongnu.org/projects/attr
|
||||
Group: System Environment/Security
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://download.savannah.gnu.org/releases/attr/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=8b4c043d61f8f3e0cd098e701181069f51117b85fd6ba18bfe9af77d894ea671232377d4793ffc822e9259ceee6ac71d75732eb93b2830c6cb5d0d918ba2d21b
|
||||
|
||||
%description
|
||||
The attr package contains utilities to administer the extended attributes on filesystem objects.
|
||||
|
||||
%package devel
|
||||
Summary: Libraries and header files for attr
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Static libraries and header files for the support library for attr.
|
||||
|
||||
%package lang
|
||||
Summary: Additional language files for attr
|
||||
Group: System Environment/Security
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description lang
|
||||
These are the additional language files of attr.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--disable-static
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
install -vdm 755 %{buildroot}%{_sysconfdir}
|
||||
chmod -v 755 %{buildroot}%{_libdir}/libattr.so
|
||||
ln -fsv ../sys/xattr.h %{buildroot}%{_includedir}/%{name}/xattr.h
|
||||
|
||||
#the man pages are already installed by man-pages package
|
||||
rm -fv %{buildroot}/%{_libdir}/*.la \
|
||||
%{buildroot}%{_mandir}/man5/attr.5*
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
%make_build check
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_mandir}/man1/*
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so.*
|
||||
%config(noreplace) %{_sysconfdir}/xattr.conf
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}/*
|
||||
%{_libdir}/*.so
|
||||
%{_mandir}/man3/*
|
||||
%{_includedir}/%{name}/*
|
||||
%{_libdir}/pkgconfig/libattr.pc
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
* Mon Jul 24 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.5.1-2
|
||||
- Fix spec issues
|
||||
- Move *.so to devel package
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 2.5.1-1
|
||||
- Automatic Version Bump
|
||||
* Tue Sep 18 2018 Ankit Jain <ankitja@vmware.com> 2.4.48-1
|
||||
- Updated to version 2.4.48
|
||||
* Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 2.4.47-4
|
||||
- Added -lang and -devel subpackages
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.4.47-3
|
||||
- GA - Bump release of all rpms
|
||||
* Thu Feb 25 2016 Anish Swaminathan <anishs@vmware.com> 2.4.47-2
|
||||
- Remove man pages provided by man-pages
|
||||
* Thu Oct 23 2014 Divya Thaluru <dthaluru@vmware.com> 2.4.47-1
|
||||
- Initial version
|
|
@ -1,41 +0,0 @@
|
|||
From 0d31f225faef8da3fcd0f69f6544aa274102fe53 Mon Sep 17 00:00:00 2001
|
||||
From: Steve Grubb <sgrubb@redhat.com>
|
||||
Date: Feb 23 2022 19:24:50 +0000
|
||||
Subject: workaround a kernel change that breaks the build
|
||||
|
||||
diff -urp audit-3.0.8.orig/bindings/swig/src/auditswig.i audit-3.0.8/bindings/swig/src/auditswig.i
|
||||
--- audit-3.0.8.orig/bindings/swig/src/auditswig.i 2022-03-29 16:52:34.000000000 -0400
|
||||
+++ audit-3.0.8/bindings/swig/src/auditswig.i 2022-03-29 17:31:15.810268855 -0400
|
||||
@@ -39,7 +39,7 @@ signed
|
||||
#define __attribute(X) /*nothing*/
|
||||
typedef unsigned __u32;
|
||||
typedef unsigned uid_t;
|
||||
-%include "/usr/include/linux/audit.h"
|
||||
+%include "../lib/audit.h"
|
||||
#define __extension__ /*nothing*/
|
||||
%include <stdint.i>
|
||||
%include "../lib/libaudit.h"
|
||||
diff -urp audit-3.0.8.orig/lib/audit.h audit-3.0.8/lib/audit.h
|
||||
--- audit-3.0.8.orig/lib/audit.h 2022-03-29 17:29:30.358211892 -0400
|
||||
+++ audit-3.0.8/lib/audit.h 2022-03-29 17:31:15.811268833 -0400
|
||||
@@ -514,7 +514,7 @@ struct audit_rule_data {
|
||||
__u32 values[AUDIT_MAX_FIELDS];
|
||||
__u32 fieldflags[AUDIT_MAX_FIELDS];
|
||||
__u32 buflen; /* total length of string fields */
|
||||
- char buf[]; /* string fields buffer */
|
||||
+ char buf[0]; /* string fields buffer */
|
||||
};
|
||||
|
||||
#endif /* _LINUX_AUDIT_H_ */
|
||||
diff -urp audit-3.0.8.orig/lib/libaudit.h audit-3.0.8/lib/libaudit.h
|
||||
--- audit-3.0.8.orig/lib/libaudit.h 2022-03-29 16:52:34.000000000 -0400
|
||||
+++ audit-3.0.8/lib/libaudit.h 2022-03-29 17:31:15.812268812 -0400
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stdint.h>
|
||||
#include <sys/socket.h>
|
||||
#include <linux/netlink.h>
|
||||
-#include <linux/audit.h>
|
||||
+#include "audit.h"
|
||||
#include <stdarg.h>
|
||||
#include <syslog.h>
|
||||
#ifndef __attr_access
|
|
@ -1,16 +0,0 @@
|
|||
From 04a979b02d3d868b547a4f2ff316006db7c58c09 Mon Sep 17 00:00:00 2001
|
||||
From: Steve Grubb <sgrubb@redhat.com>
|
||||
Date: Feb 24 2022 13:24:30 +0000
|
||||
Subject: Undo fix to libaudit.h before installing
|
||||
|
||||
diff -urp usr.orig/include/libaudit.h.orig usr/include/libaudit.h
|
||||
--- usr.orig/include/libaudit.h.orig 2022-02-14 14:14:08.000000000 -0500
|
||||
+++ usr/include/libaudit.h 2022-02-23 13:35:52.638340789 -0500
|
||||
@@ -39,7 +39,7 @@ extern "C" {
|
||||
#include <stdint.h>
|
||||
#include <sys/socket.h>
|
||||
#include <linux/netlink.h>
|
||||
-#include "audit.h"
|
||||
+#include <linux/audit.h>
|
||||
#include <stdarg.h>
|
||||
#include <syslog.h>
|
|
@ -1,263 +0,0 @@
|
|||
%define with_golang 0
|
||||
|
||||
Summary: Kernel Audit Tool
|
||||
Name: audit
|
||||
Version: 3.0.9
|
||||
Release: 15%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Security
|
||||
URL: http://people.redhat.com/sgrubb/audit
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=5219eb0b41746eca3406008a97731c0083e7be50ec88563a39537de22cb69fe88490f5fe5a11535930f360b11a62538e2ff6cbe39e059cd760038363954ef4d6
|
||||
|
||||
# patches for audit workaround for linux-headers >= 5.17
|
||||
# https://github.com/linux-audit/audit-userspace/issues/252
|
||||
# https://github.com/linux-audit/audit-userspace/issues/236
|
||||
# https://listman.redhat.com/archives/linux-audit/2022-February/msg00085.html
|
||||
# patch source: https://src.fedoraproject.org/rpms/audit/blob/rawhide/f/audit-3.0.8-flex-array-workaround.patch
|
||||
Patch0: audit-3.0.8-flex-array-workaround.patch
|
||||
Patch1: audit-3.0.8-undo-flex-array.patch
|
||||
|
||||
BuildRequires: krb5-devel
|
||||
BuildRequires: openldap-devel
|
||||
BuildRequires: tcp_wrappers-devel
|
||||
BuildRequires: libcap-ng-devel
|
||||
BuildRequires: swig
|
||||
BuildRequires: e2fsprogs-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: systemd-devel
|
||||
|
||||
%if 0%{?with_golang}
|
||||
BuildRequires: go
|
||||
%endif
|
||||
|
||||
Requires: systemd
|
||||
Requires: krb5
|
||||
Requires: openldap
|
||||
Requires: tcp_wrappers
|
||||
Requires: libcap-ng
|
||||
Requires: gawk
|
||||
|
||||
%description
|
||||
The audit package contains the user space utilities for
|
||||
storing and searching the audit records generate by
|
||||
the audit subsystem in the Linux 2.6 kernel.
|
||||
|
||||
%package devel
|
||||
Summary: The libraries and header files needed for audit development.
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The libraries and header files needed for audit development.
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Python3 bindings for libaudit
|
||||
License: LGPLv2+
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: python3
|
||||
|
||||
%description -n python3-%{name}
|
||||
The python3-audit package contains the python2 bindings for libaudit
|
||||
and libauparse.
|
||||
|
||||
%prep
|
||||
# Using autosetup is not feasible
|
||||
%setup -q
|
||||
cp %{_includedir}/linux/%{name}.h lib/
|
||||
%autopatch -p1 -M0
|
||||
|
||||
%build
|
||||
%configure \
|
||||
$(test %{_host} != %{_build} && echo "--with-sysroot=/target-%{_arch}") \
|
||||
--exec_prefix=%{_usr} \
|
||||
--with-python3=yes \
|
||||
--with-libwrap \
|
||||
--enable-gssapi-krb5=yes \
|
||||
--with-libcap-ng=yes \
|
||||
--with-aarch64 \
|
||||
--enable-zos-remote \
|
||||
%if 0%{?with_golang}
|
||||
--with-golang \
|
||||
%endif
|
||||
--enable-systemd \
|
||||
--disable-static
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/{etc/audispd/plugins.d,etc/%{name}/rules.d} \
|
||||
%{buildroot}%{_var}/log/%{name} \
|
||||
%{buildroot}%{_var}/spool/%{name}
|
||||
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
install -vdm755 %{buildroot}%{_presetdir}
|
||||
echo "disable auditd.service" > %{buildroot}%{_presetdir}/50-auditd.preset
|
||||
|
||||
# undo the workaround
|
||||
pushd %{buildroot}
|
||||
patch --fuzz=1 -p0 < %{PATCH1}
|
||||
find . -name '*.orig' -delete
|
||||
popd
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
%endif
|
||||
|
||||
%pretrans -p <lua>
|
||||
path = "/var/log/audit"
|
||||
st = posix.stat(path)
|
||||
if st and st.type == "link" then
|
||||
os.remove(path)
|
||||
end
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%systemd_post auditd.service
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%systemd_postun_with_restart auditd.service
|
||||
|
||||
%preun
|
||||
%systemd_preun auditd.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%{_libdir}/*.so.*
|
||||
%{_unitdir}/auditd.service
|
||||
%{_presetdir}/50-auditd.preset
|
||||
%{_libexecdir}/*
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man7/*
|
||||
%{_mandir}/man8/*
|
||||
%dir %{_var}/log/%{name}
|
||||
%{_var}/spool/%{name}
|
||||
%attr(750,root,root) %dir %{_sysconfdir}/%{name}
|
||||
%attr(750,root,root) %dir %{_sysconfdir}/%{name}/rules.d
|
||||
|
||||
%attr(750,root,root) %dir %{_sysconfdir}/audispd
|
||||
%attr(750,root,root) %dir %{_sysconfdir}/audispd/plugins.d
|
||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/%{name}/auditd.conf
|
||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/%{name}/audisp-remote.conf
|
||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/%{name}/zos-remote.conf
|
||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/%{name}/plugins.d/*.conf
|
||||
%ghost %config(noreplace) %attr(640,root,root) %{_sysconfdir}/%{name}/rules.d/%{name}.rules
|
||||
%ghost %config(noreplace) %attr(640,root,root) %{_sysconfdir}/%{name}/%{name}.rules
|
||||
%ghost %config(noreplace) %attr(640,root,root) %{_sysconfdir}/%{name}/%{name}-stop.rules
|
||||
%ghost %config(noreplace) %attr(640,root,root) %{_datadir}/%{name}/sample-rules/*.rules
|
||||
%ghost %config(noreplace) %attr(640,root,root) %{_datadir}/%{name}/sample-rules/README-rules
|
||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/libaudit.conf
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%if 0%{?with_golang}
|
||||
%{_libdir}/golang/*
|
||||
%endif
|
||||
%{_includedir}/*.h
|
||||
%{_mandir}/man3/*
|
||||
%{_datadir}/aclocal/%{name}.m4
|
||||
|
||||
%files -n python3-%{name}
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Wed Oct 11 2023 Piyush Gupta <gpiyush@vmware.com> 3.0.9-15
|
||||
- Bump up version to compile with new go
|
||||
* Tue Sep 26 2023 Piyush Gupta <gpiyush@vmware.com> 3.0.9-14
|
||||
- Bump up version to compile with new go
|
||||
* Tue Sep 19 2023 Nitesh Kumar <kunitesh@vmware.com> 3.0.9-13
|
||||
- Bump version as a part of openldap v2.6.4 upgrade
|
||||
* Fri Jul 28 2023 Srish Srinivasan <ssrish@vmware.com> 3.0.9-12
|
||||
- Bump version as a part of krb5 upgrade
|
||||
* Mon Jul 17 2023 Piyush Gupta <gpiyush@vmware.com> 3.0.9-11
|
||||
- Bump up version to compile with new go
|
||||
* Mon Jul 03 2023 Piyush Gupta <gpiyush@vmware.com> 3.0.9-10
|
||||
- Bump up version to compile with new go
|
||||
* Sat May 27 2023 Shreenidhi Shedi <sshedi@vmware.com> 3.0.9-9
|
||||
- Fix conflict during upgrade
|
||||
* Wed May 03 2023 Piyush Gupta <gpiyush@vmware.com> 3.0.9-8
|
||||
- Bump up version to compile with new go
|
||||
* Thu Mar 09 2023 Piyush Gupta <gpiyush@vmware.com> 3.0.9-7
|
||||
- Bump up version to compile with new go
|
||||
* Wed Feb 08 2023 Shreenidhi Shedi <sshedi@vmware.com> 3.0.9-6
|
||||
- Bump version as a part of openldap upgrade
|
||||
* Thu Jan 26 2023 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 3.0.9-5
|
||||
- Bump version as a part of krb5 upgrade
|
||||
* Thu Jan 12 2023 Him Kalyan Bordoloi <bordoloih@vmware.com> 3.0.9-4
|
||||
- Bump up version no. as part of swig upgrade
|
||||
* Wed Dec 14 2022 Prashant S Chauhan <psinghchauha@vmware.com> 3.0.9-3
|
||||
- Update release to compile with python 3.11
|
||||
* Tue Dec 06 2022 Keerthana K <keerthanak@vmware.com> 3.0.9-2
|
||||
- Workaround for audit build failures with linux headers >= v5.17
|
||||
* Thu Dec 01 2022 Harinadh D <hdommaraju@vmware.com> 3.0.9-1
|
||||
- Version update
|
||||
* Mon Nov 21 2022 Piyush Gupta <gpiyush@vmware.com> 3.0.8-5
|
||||
- Bump up version to compile with new go
|
||||
* Wed Oct 26 2022 Piyush Gupta <gpiyush@vmware.com> 3.0.8-4
|
||||
- Bump up version to compile with new go
|
||||
* Sun Aug 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 3.0.8-3
|
||||
- Remove .la files
|
||||
* Fri Jun 17 2022 Piyush Gupta <gpiyush@vmware.com> 3.0.8-2
|
||||
- Bump up version to compile with new go
|
||||
* Mon Apr 18 2022 Gerrit Photon <photon-checkins@vmware.com> 3.0.8-1
|
||||
- Automatic Version Bump
|
||||
* Fri Jun 11 2021 Piyush Gupta <gpiyush@vmware.com> 3.0.1-2
|
||||
- Bump up version to compile with new go
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 3.0.1-1
|
||||
- Automatic Version Bump
|
||||
* Fri Feb 05 2021 Harinadh D <hdommaraju@vmware.com> 2.8.5-6
|
||||
- Bump up version to compile with new go
|
||||
* Thu Jan 21 2021 Alexey Makhalov <amakhalov@vmware.com> 2.8.5-5
|
||||
- GCC-10 support
|
||||
* Fri Jan 15 2021 Piyush Gupta<gpiyush@vmware.com> 2.8.5-4
|
||||
- Bump up version to compile with new go
|
||||
* Mon Jun 22 2020 Tapas Kundu <tkundu@vmware.com> 2.8.5-3
|
||||
- Mass removal python2
|
||||
* Tue Nov 26 2019 Alexey Makhalov <amakhalov@vmware.com> 2.8.5-2
|
||||
- Cross compilation support.
|
||||
- Do not use BuildRequires in subpackages.
|
||||
- Disable golang dependency.
|
||||
* Thu Oct 17 2019 Shreyas B <shreyasb@vmware.com> 2.8.5-1
|
||||
- Updated to version 2.8.5.
|
||||
* Mon Sep 3 2018 Keerthana K <keerthanak@vmware.com> 2.8.4-1
|
||||
- Updated to version 2.8.4.
|
||||
* Thu Dec 28 2017 Divya Thaluru <dthaluru@vmware.com> 2.7.5-4
|
||||
- Fixed the log file directory structure
|
||||
* Thu Jun 29 2017 Divya Thaluru <dthaluru@vmware.com> 2.7.5-3
|
||||
- Disabled audit service by default
|
||||
* Thu May 18 2017 Xiaolin Li <xiaolinl@vmware.com> 2.7.5-2
|
||||
- Move python2 requires to python subpackage and added python3.
|
||||
* Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.7.5-1
|
||||
- Version update.
|
||||
* Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 2.5-7
|
||||
- Moved man3 to devel subpackage.
|
||||
* Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 2.5-6
|
||||
- Required krb5-devel.
|
||||
* Fri Jul 22 2016 Xiaolin Li <xiaolinl@vmware.com> 2.5-5
|
||||
- Add gawk requirement.
|
||||
* Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com> 2.5-4
|
||||
- Fixed logic to restart the active services after upgrade
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.5-3
|
||||
- GA - Bump release of all rpms
|
||||
* Tue May 3 2016 Divya Thaluru <dthaluru@vmware.com> 2.5-2
|
||||
- Fixing spec file to handle rpm upgrade scenario correctly
|
||||
* Tue Feb 23 2016 Anish Swaminathan <anishs@vmware.com> 2.5-1
|
||||
- Upgrade to 2.5
|
||||
* Fri Jan 29 2016 Anish Swaminathan <anishs@vmware.com> 2.4.4-4
|
||||
- Add directories for auditd service.
|
||||
* Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com> 2.4.4-3
|
||||
- Change config file attributes.
|
||||
* Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 2.4.4-2
|
||||
- Add systemd requirement.
|
||||
* Fri Aug 28 2015 Divya Thaluru <dthaluru@vmware.com> 2.4.4-1
|
||||
- Initial version
|
|
@ -1,61 +0,0 @@
|
|||
Summary: Utilities for aufs
|
||||
Name: aufs-util
|
||||
Version: 6.0
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2
|
||||
URL: https://sourceforge.net/p/aufs/aufs-util/ref/master/branches/
|
||||
Group: System Environment
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=550f66d837fc840af1dfb3e518cbb6e6faff51ef46a1328719e6d04ac8aa8256c0fa75c878cb627d80ceb3caa2cc88198c09ed4bc0ea936824bfea87046467e6
|
||||
Source1: aufs-standalone-aufs6.0.tar.gz
|
||||
%define sha512 aufs-standalone-aufs6.0=7028ad5671a4d0b473e6c7613bad18a6fcf0b01d9e908b4d5851bba4f686c01da157ab55a9f15448ac9575e63fa5fe6d0ebee4a4f9d2f7a93d6902462d1b6612
|
||||
|
||||
BuildArch: x86_64
|
||||
|
||||
Requires: linux-secure
|
||||
|
||||
%description
|
||||
These utilities are always necessary for aufs.
|
||||
|
||||
%prep
|
||||
# Using autosetup is not feasible
|
||||
%setup -q
|
||||
# Using autosetup is not feasible
|
||||
%setup -q -T -D -b 1
|
||||
sed -i 's/__user//' ../aufs-standalone-aufs6.0/include/uapi/linux/aufs_type.h
|
||||
sed -i '/override LDFLAGS += -static -s/d' Makefile
|
||||
|
||||
%build
|
||||
make CPPFLAGS="-I ${PWD}/../aufs-standalone-aufs6.0/include/uapi" DESTDIR=%{buildroot} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make CPPFLAGS="-I ${PWD}/../aufs-standalone-aufs6.0/include/uapi" DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
mv %{buildroot}/sbin %{buildroot}%{_usr}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/*
|
||||
%{_sbindir}/*
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so*
|
||||
%{_mandir}/*
|
||||
%exclude %dir %{_libdir}/debug
|
||||
|
||||
%changelog
|
||||
* Tue Dec 13 2022 Ajay Kaher <akaher@vmware.com> 6.0-1
|
||||
- Update to version 6.0
|
||||
* Mon Feb 28 2022 Shreenidhi Shedi <sshedi@vmware.com> 5.0-2
|
||||
- Fix binary path
|
||||
* Fri Oct 09 2020 Ajay Kaher <akaher@vmware.com> 5.0-1
|
||||
- Update to version 5.0
|
||||
* Mon Oct 22 2018 Ajay Kaher <akaher@vmware.com> 4.14-2
|
||||
- Adding BuildArch
|
||||
* Wed Sep 19 2018 Ajay Kaher <akaher@vmware.com> 4.14-1
|
||||
- Update to version 4.14
|
||||
* Fri Jul 14 2017 Alexey Makhalov <amakhalov@vmware.com> 20170206-2
|
||||
- Remove aufs source tarballs from git repo
|
||||
* Fri Feb 10 2017 Alexey Makhalov <amakhalov@vmware.com> 20170206-1
|
||||
- Initial build. First version
|
|
@ -1,91 +0,0 @@
|
|||
From e03689d480e0e3fd0388e8af8c233e68bdb78722 Mon Sep 17 00:00:00 2001
|
||||
From: Shreenidhi Shedi <sshedi@vmware.com>
|
||||
Date: Sat, 26 Aug 2023 20:40:52 +0530
|
||||
Subject: [PATCH] adjust makefile to help build rpms
|
||||
|
||||
Taken from:
|
||||
https://src.fedoraproject.org/rpms/authbind/raw/rawhide/f/authbind-makefile-fixes.patch
|
||||
|
||||
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
|
||||
---
|
||||
Makefile | 36 +++++++++++++++++++-----------------
|
||||
1 file changed, 19 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 37a8673..1bed36f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
# Makefile for authbind
|
||||
-#
|
||||
+#
|
||||
# authbind is Copyright (C) 1998 Ian Jackson
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -14,7 +14,9 @@
|
||||
#
|
||||
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
+
|
||||
+DESTDIR ?=
|
||||
|
||||
prefix=/usr/local
|
||||
|
||||
@@ -29,9 +31,9 @@ man8_dir=$(man_dir)/man8
|
||||
|
||||
etc_dir=/etc/authbind
|
||||
|
||||
-INSTALL_FILE ?= install -o root -g root -m 644
|
||||
-INSTALL_PROGRAM ?= install -o root -g root -m 755 -s
|
||||
-INSTALL_DIR ?= install -o root -g root -m 755 -d
|
||||
+INSTALL_FILE ?= install -m 644 -p
|
||||
+INSTALL_PROGRAM ?= install -m 755 -p
|
||||
+INSTALL_DIR ?= install -m 755 -p -d
|
||||
STRIP ?= strip
|
||||
|
||||
OPTIMISE= -O2
|
||||
@@ -59,19 +61,19 @@ MANPAGES_8= authbind-helper.8
|
||||
all: $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
- $(INSTALL_DIR) $(lib_dir) $(man1_dir) $(man8_dir)
|
||||
- $(INSTALL_PROGRAM) $(BINTARGETS) $(bin_dir)/.
|
||||
- $(INSTALL_FILE) $(LIBTARGET) $(lib_dir)/.
|
||||
- $(STRIP) --strip-unneeded $(lib_dir)/$(LIBTARGET)
|
||||
- ln -sf $(LIBTARGET) $(lib_dir)/$(LIBCANON)
|
||||
- $(INSTALL_PROGRAM) $(HELPER) $(libexec_dir)/.
|
||||
- chmod u+s $(libexec_dir)/$(HELPER)
|
||||
- $(INSTALL_DIR) $(etc_dir) \
|
||||
- $(etc_dir)/byport $(etc_dir)/byaddr $(etc_dir)/byuid
|
||||
+ $(INSTALL_DIR) $(DESTDIR)$(bin_dir) $(DESTDIR)$(lib_dir) $(DESTDIR)$(libexec_dir) $(DESTDIR)$(man1_dir) $(DESTDIR)$(man8_dir)
|
||||
+ $(INSTALL_PROGRAM) $(BINTARGETS) $(DESTDIR)$(bin_dir)/.
|
||||
+ $(INSTALL_PROGRAM) $(LIBTARGET) $(DESTDIR)$(lib_dir)/.
|
||||
+ $(STRIP) --strip-unneeded $(DESTDIR)$(lib_dir)/$(LIBTARGET)
|
||||
+ ln -sf $(LIBTARGET) $(DESTDIR)$(lib_dir)/$(LIBCANON)
|
||||
+ $(INSTALL_PROGRAM) $(HELPER) $(DESTDIR)$(libexec_dir)/.
|
||||
+ chmod u+s $(DESTDIR)$(libexec_dir)/$(HELPER)
|
||||
+ $(INSTALL_DIR) $(DESTDIR)$(etc_dir) \
|
||||
+ $(DESTDIR)$(etc_dir)/byport $(DESTDIR)$(etc_dir)/byaddr $(DESTDIR)$(etc_dir)/byuid
|
||||
|
||||
install_man: $(MANPAGES_1) $(MANPAGES_8)
|
||||
- $(INSTALL_FILE) $(MANPAGES_1) $(man1_dir)/.
|
||||
- $(INSTALL_FILE) $(MANPAGES_8) $(man8_dir)/.
|
||||
+ $(INSTALL_FILE) $(MANPAGES_1) $(DESTDIR)$(man1_dir)/.
|
||||
+ $(INSTALL_FILE) $(MANPAGES_8) $(DESTDIR)$(man8_dir)/.
|
||||
|
||||
libauthbind.o: libauthbind.c authbind.h
|
||||
$(CC) -D_REENTRANT $(CFLAGS) $(CPPFLAGS) -c -o $@ -fPIC $<
|
||||
@@ -82,7 +84,7 @@ helper: helper.o
|
||||
helper.o authbind.o: authbind.h
|
||||
|
||||
$(LIBTARGET): libauthbind.o
|
||||
- $(LD) -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
|
||||
+ $(CC) -nostartfiles -shared -Wl,-soname $(LIBCANON) $(LDFLAGS) -o $@ $< $(LIBS)
|
||||
|
||||
clean distclean:
|
||||
rm -f $(TARGETS) *.o *~ ./#*# *.bak *.new core
|
||||
--
|
||||
2.41.0
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
From 6d9c64b80759834955a2f4f6cd8c841b191ad204 Mon Sep 17 00:00:00 2001
|
||||
From: Shreenidhi Shedi <sshedi@vmware.com>
|
||||
Date: Sat, 26 Aug 2023 16:38:04 +0530
|
||||
Subject: [PATCH] make file adjustments for building rpm properly
|
||||
|
||||
taken from:
|
||||
https://src.fedoraproject.org/rpms/authbind/raw/rawhide/f/authbind-makefile-fixes.patch
|
||||
|
||||
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
|
||||
---
|
||||
Makefile | 36 +++++++++++++++++++-----------------
|
||||
1 file changed, 19 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 37a8673..1bed36f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
# Makefile for authbind
|
||||
-#
|
||||
+#
|
||||
# authbind is Copyright (C) 1998 Ian Jackson
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -14,7 +14,9 @@
|
||||
#
|
||||
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
+
|
||||
+DESTDIR ?=
|
||||
|
||||
prefix=/usr/local
|
||||
|
||||
@@ -29,9 +31,9 @@ man8_dir=$(man_dir)/man8
|
||||
|
||||
etc_dir=/etc/authbind
|
||||
|
||||
-INSTALL_FILE ?= install -o root -g root -m 644
|
||||
-INSTALL_PROGRAM ?= install -o root -g root -m 755 -s
|
||||
-INSTALL_DIR ?= install -o root -g root -m 755 -d
|
||||
+INSTALL_FILE ?= install -m 644 -p
|
||||
+INSTALL_PROGRAM ?= install -m 755 -p
|
||||
+INSTALL_DIR ?= install -m 755 -p -d
|
||||
STRIP ?= strip
|
||||
|
||||
OPTIMISE= -O2
|
||||
@@ -59,19 +61,19 @@ MANPAGES_8= authbind-helper.8
|
||||
all: $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
- $(INSTALL_DIR) $(lib_dir) $(man1_dir) $(man8_dir)
|
||||
- $(INSTALL_PROGRAM) $(BINTARGETS) $(bin_dir)/.
|
||||
- $(INSTALL_FILE) $(LIBTARGET) $(lib_dir)/.
|
||||
- $(STRIP) --strip-unneeded $(lib_dir)/$(LIBTARGET)
|
||||
- ln -sf $(LIBTARGET) $(lib_dir)/$(LIBCANON)
|
||||
- $(INSTALL_PROGRAM) $(HELPER) $(libexec_dir)/.
|
||||
- chmod u+s $(libexec_dir)/$(HELPER)
|
||||
- $(INSTALL_DIR) $(etc_dir) \
|
||||
- $(etc_dir)/byport $(etc_dir)/byaddr $(etc_dir)/byuid
|
||||
+ $(INSTALL_DIR) $(DESTDIR)$(bin_dir) $(DESTDIR)$(lib_dir) $(DESTDIR)$(libexec_dir) $(DESTDIR)$(man1_dir) $(DESTDIR)$(man8_dir)
|
||||
+ $(INSTALL_PROGRAM) $(BINTARGETS) $(DESTDIR)$(bin_dir)/.
|
||||
+ $(INSTALL_PROGRAM) $(LIBTARGET) $(DESTDIR)$(lib_dir)/.
|
||||
+ $(STRIP) --strip-unneeded $(DESTDIR)$(lib_dir)/$(LIBTARGET)
|
||||
+ ln -sf $(LIBTARGET) $(DESTDIR)$(lib_dir)/$(LIBCANON)
|
||||
+ $(INSTALL_PROGRAM) $(HELPER) $(DESTDIR)$(libexec_dir)/.
|
||||
+ chmod u+s $(DESTDIR)$(libexec_dir)/$(HELPER)
|
||||
+ $(INSTALL_DIR) $(DESTDIR)$(etc_dir) \
|
||||
+ $(DESTDIR)$(etc_dir)/byport $(DESTDIR)$(etc_dir)/byaddr $(DESTDIR)$(etc_dir)/byuid
|
||||
|
||||
install_man: $(MANPAGES_1) $(MANPAGES_8)
|
||||
- $(INSTALL_FILE) $(MANPAGES_1) $(man1_dir)/.
|
||||
- $(INSTALL_FILE) $(MANPAGES_8) $(man8_dir)/.
|
||||
+ $(INSTALL_FILE) $(MANPAGES_1) $(DESTDIR)$(man1_dir)/.
|
||||
+ $(INSTALL_FILE) $(MANPAGES_8) $(DESTDIR)$(man8_dir)/.
|
||||
|
||||
libauthbind.o: libauthbind.c authbind.h
|
||||
$(CC) -D_REENTRANT $(CFLAGS) $(CPPFLAGS) -c -o $@ -fPIC $<
|
||||
@@ -82,7 +84,7 @@ helper: helper.o
|
||||
helper.o authbind.o: authbind.h
|
||||
|
||||
$(LIBTARGET): libauthbind.o
|
||||
- $(LD) -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
|
||||
+ $(CC) -nostartfiles -shared -Wl,-soname $(LIBCANON) $(LDFLAGS) -o $@ $< $(LIBS)
|
||||
|
||||
clean distclean:
|
||||
rm -f $(TARGETS) *.o *~ ./#*# *.bak *.new core
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
%global build_flags prefix=%{_prefix} lib_dir=%{_libdir} libexec_dir=%{_libexecdir}/%{name} etc_dir=%{_sysconfdir}/%{name}
|
||||
|
||||
Summary: Operating system utility that allows programs to run as non-previleged user.
|
||||
Name: authbind
|
||||
Version: 2.1.3
|
||||
Release: 2%{?dist}
|
||||
License: GPL
|
||||
URL: http://www.chiark.greenend.org.uk/ucgi/~ian/git/authbind.git
|
||||
Group: Applications/utils
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://ftp.debian.org/debian/pool/main/a/%{name}/%{name}_%{version}.tar.gz
|
||||
%define sha512 %{name}=357c8f5c5ad446e75a597d5bc5bb5af7db17de771643a39976b5ac1425f03bf44f322c8dd07b0e1b04a0bf78d5000841b4866e0d0945584689e99291156dfac1
|
||||
|
||||
Patch0: 0001-adjust-makefile-to-help-build-rpms.patch
|
||||
|
||||
%description
|
||||
The authbind software allows a program that would normally require
|
||||
superuser privileges to access privileged network services to run as
|
||||
a non-privileged user.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n work
|
||||
|
||||
%build
|
||||
%make_build %{build_flags}
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags} %{build_flags} STRIP=/bin/true
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/%{name}
|
||||
%{_libdir}/libauthbind.so.*
|
||||
%{_libexecdir}/%{name}/helper
|
||||
%{_sysconfdir}/%{name}
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.1.3-2
|
||||
- Fix build & packaging
|
||||
* Thu May 26 2022 Gerrit Photon <photon-checkins@vmware.com> 2.1.3-1
|
||||
- Automatic Version Bump
|
||||
* Thu Oct 22 2020 Dweep Advani <dadvani@vmware.com> 2.1.2-2
|
||||
- Fixed install failure
|
||||
* Fri Jul 14 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.1.2-1
|
||||
- Initial build. First version
|
|
@ -1,48 +0,0 @@
|
|||
%define debug_package %{nil}
|
||||
|
||||
Summary: Autoconf macro archive
|
||||
Name: autoconf-archive
|
||||
Version: 2022.09.03
|
||||
Release: 1%{?dist}
|
||||
License: GPLv3+
|
||||
URL: http://www.gnu.org/software/autoconf-archive
|
||||
Group: System Environment/Base
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=157b5b6a979d5ec5bfab6ddf34422da620fec1e95f4c901821abbb7361544af77747b4a449029b84750d75679d6130a591e98da8772de2c121ecdea163f0340b
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: autoconf
|
||||
|
||||
%description
|
||||
The package contains programs for producing shell scripts that can automatically configure source code.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{_smp_mflags} INSTALL="install -p"
|
||||
rm -rf %{buildroot}%{_infodir}
|
||||
# doc and license files are installed elsewhere
|
||||
rm -frv %{buildroot}%{_docdir}/%{name}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/aclocal/*.m4
|
||||
|
||||
%changelog
|
||||
* Sun Nov 13 2022 Shreenidhi Shedi <sshedi@vmware.com> 2022.09.03-1
|
||||
- Upgrade to v2022.09.03
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 2021.02.19-1
|
||||
- Automatic Version Bump
|
||||
* Wed Jul 22 2020 Gerrit Photon <photon-checkins@vmware.com> 2019.01.06-1
|
||||
- Automatic Version Bump
|
||||
* Mon Sep 10 2018 Anish Swaminathan <anishs@vmware.com> 2018.03.13-1
|
||||
- Initial build
|
|
@ -1,67 +0,0 @@
|
|||
Summary: The package automatically configure source code
|
||||
Name: autoconf
|
||||
Version: 2.71
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2
|
||||
URL: http://www.gnu.org/software/autoconf
|
||||
Group: System Environment/Base
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://ftp.gnu.org/gnu/autoconf/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=73d32b4adcbe24e3bafa9f43f59ed3b6efbd3de0f194e5ec90375f35da1199c583f5d3e89139b7edbad35171403709270e339ffa56a2ecb9b3123e9285021ff0
|
||||
|
||||
Requires: perl
|
||||
Requires: m4
|
||||
|
||||
BuildRequires: m4
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
The package contains programs for producing shell scripts that can
|
||||
automatically configure source code.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --disable-silent-rules
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
rm -rf %{buildroot}%{_infodir}
|
||||
|
||||
%check
|
||||
make -k check %{?_smp_mflags} TESTSUITEFLAGS="1-500"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_mandir}/*/*
|
||||
%{_datadir}/autoconf/*
|
||||
|
||||
%changelog
|
||||
* Thu Nov 10 2022 Dweep Advani <dadvani@vmware.com> 2.71-2
|
||||
- Rebuild with perl 5.36.0
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 2.71-1
|
||||
- Automatic Version Bump
|
||||
* Sun Nov 15 2020 Prashant Singh Chauhan <psinghchauha@vmware.com> 2.69-9
|
||||
- Fix for make check failure port test to bash 5.0
|
||||
* Wed Sep 11 2019 Prashant Singh Chauhan <psinghchauha@vmware.com> 2.69-8
|
||||
- Fix for make check failure
|
||||
* Wed Oct 17 2018 Dweep Advani <dadvani@vmware.com> 2.69-7
|
||||
- Build section is changed to used %configure
|
||||
* Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.69-6
|
||||
- Fix arch
|
||||
* Tue Dec 6 2016 Dheeraj Shetty <dheerajs@vmware.com> 2.69-5
|
||||
- Fixed Bug 1718089 make check failure
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.69-4
|
||||
- GA - Bump release of all rpms
|
||||
* Fri Jun 5 2015 Divya Thaluru <dthaluru@vmware.com> 2.69-3
|
||||
- Adding m4 package to build and run time required package
|
||||
* Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 2.69-2
|
||||
- Adding perl packages to required packages
|
||||
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.69-1
|
||||
- Initial build. First version
|
|
@ -1,15 +0,0 @@
|
|||
[Unit]
|
||||
Description=Automounts filesystems on demand
|
||||
After=network.target ypbind.service sssd.service network-online.target remote-fs.target rpc-statd.service rpcbind.service
|
||||
Wants=network-online.target rpc-statd.service rpcbind.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/autofs.pid
|
||||
EnvironmentFile=-/etc/sysconfig/autofs
|
||||
ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid
|
||||
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||
TimeoutSec=180
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,102 +0,0 @@
|
|||
%global debug_package %{nil}
|
||||
|
||||
Summary: A kernel-based automounter for Linux
|
||||
Name: autofs
|
||||
Version: 5.1.8
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+
|
||||
URL: http://www.kernel.org/pub/linux/daemons/autofs
|
||||
Group: System Environment/Daemons
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: http://www.kernel.org/pub/linux/daemons/%{name}/v5/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=6ee6283c0977c82848a654dc24745ee687f6916de441c3688fa91f67ca7295e632ee3808cc2358984a4b9f19841e6e1a91ab48aad6341ac8e63827fe8c32d223
|
||||
|
||||
Source1: %{name}.service
|
||||
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: rpcsvc-proto-devel
|
||||
BuildRequires: libtirpc-devel
|
||||
BuildRequires: bison
|
||||
|
||||
Requires: systemd
|
||||
Requires: libtirpc
|
||||
|
||||
%description
|
||||
Automounting is the process of automatically mounting and unmounting of file systems by a daemon. Autofs includes both a user-space daemon and code in the kernel that assists the daemon.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --with-libtirpc
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
mkdir -p -m755 %{buildroot}%{_unitdir} \
|
||||
%{buildroot}%{_sysconfdir}/auto.master.d
|
||||
|
||||
%make_install mandir=%{_mandir} INSTALLROOT=%{buildroot}
|
||||
|
||||
mkdir -p -m755 %{buildroot}%{_sysconfdir}/sysconfig
|
||||
make -C redhat %{?_smp_mflags}
|
||||
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}
|
||||
install -m 644 redhat/autofs.conf %{buildroot}%{_sysconfdir}/autofs.conf
|
||||
install -m 644 redhat/autofs.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/autofs
|
||||
install -m 644 samples/auto.master %{buildroot}%{_sysconfdir}/auto.master
|
||||
install -m 644 samples/auto.misc %{buildroot}%{_sysconfdir}/auto.misc
|
||||
install -m 755 samples/auto.net %{buildroot}%{_sysconfdir}/auto.net
|
||||
install -m 755 samples/auto.smb %{buildroot}%{_sysconfdir}/auto.smb
|
||||
install -m 600 samples/autofs_ldap_auth.conf %{buildroot}%{_sysconfdir}/autofs_ldap_auth.conf
|
||||
rm -rf %{buildroot}%{_sysconfdir}/rc.d
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%systemd_post autofs.service
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%systemd_postun_with_restart autofs.service
|
||||
|
||||
%preun
|
||||
%systemd_preun autofs.service
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/auto.master
|
||||
%config(noreplace) %{_sysconfdir}/auto.misc
|
||||
%config(noreplace) %{_sysconfdir}/auto.net
|
||||
%config(noreplace) %{_sysconfdir}/auto.smb
|
||||
%config(noreplace) %{_sysconfdir}/autofs.conf
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/autofs
|
||||
%config(noreplace) %{_sysconfdir}/autofs_ldap_auth.conf
|
||||
%{_sbindir}/automount
|
||||
%{_libdir}/autofs/*
|
||||
%{_libdir}/libautofs.so
|
||||
%dir %{_sysconfdir}/auto.master.d
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/*
|
||||
%{_unitdir}/autofs.service
|
||||
|
||||
%changelog
|
||||
* Sun Nov 13 2022 Shreenidhi Shedi <sshedi@vmware.com> 5.1.8-2
|
||||
- Bump version as a part of libtirpc upgrade
|
||||
* Thu Aug 25 2022 Vamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com> 5.1.8-1
|
||||
- Update version to 5.1.8
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 5.1.7-1
|
||||
- Automatic Version Bump
|
||||
* Mon Aug 10 2020 Shreyas B <shreyasb@vmware.com> 5.1.6-2
|
||||
- Fix service start issue
|
||||
* Fri Oct 18 2019 Shreyas B <shreyasb@vmware.com> 5.1.6-1
|
||||
- Update version to 5.1.6
|
||||
* Fri Sep 21 2018 Alexey Makhalov <amakhalov@vmware.com> 5.1.4-2
|
||||
- Use rpcsvc-proto and libtirpc
|
||||
* Thu Sep 06 2018 Anish Swaminathan <anishs@vmware.com> 5.1.4-1
|
||||
- Update version to 5.1.4
|
||||
* Thu Jul 06 2017 Xiaolin Li <xiaolinl@vmware.com> 5.1.3-1
|
||||
- Initial build. First version
|
|
@ -1,118 +0,0 @@
|
|||
Summary: The Automated Text and Program Generation Tool
|
||||
Name: autogen
|
||||
Version: 5.18.16
|
||||
# TODO: try to remove CFLAGS on next version update
|
||||
Release: 6%{?dist}
|
||||
License: GPLv3+
|
||||
URL: http://www.gnu.org/software/autogen
|
||||
Group: System Environment/Tools
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=5f12c982dbe27873f5649a96049bf019ff183c90cc0c8a9196556b0ca02e72940cd422f6d6601f68cc7d8763b1124f2765c3b1a6335fc92ba07f84b03d2a53a1
|
||||
|
||||
BuildRequires: guile-devel
|
||||
BuildRequires: gc-devel
|
||||
BuildRequires: which
|
||||
BuildRequires: libffi-devel
|
||||
|
||||
Requires: libffi
|
||||
Requires: guile
|
||||
Requires: gc
|
||||
Requires: gmp
|
||||
Requires: %{name}-libopts
|
||||
|
||||
%description
|
||||
AutoGen is a tool designed to simplify the creation and maintenance of programs that contain large amounts of repetitious text. It is especially valuable in programs that have several blocks of text that must be kept synchronized.
|
||||
|
||||
%package libopts
|
||||
Summary: Automated option processing library.
|
||||
License: LGPLv3+
|
||||
Group: System Environment/Libraries
|
||||
|
||||
%description libopts
|
||||
Libopts is very powerful command line option parser.
|
||||
|
||||
%package libopts-devel
|
||||
Summary: Development files for libopts
|
||||
License: LGPLv3+
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-libopts = %{version}-%{release}
|
||||
|
||||
%description libopts-devel
|
||||
This package contains development files for libopts.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --disable-dependency-tracking
|
||||
# TODO: try to remove CFLAGS on next version update
|
||||
%make_build CFLAGS="-g -O2 -Wno-format-contains-nul -fno-strict-aliasing -Wno-error=format-overflow"
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
# make doesn't support _smp_mflags
|
||||
make check
|
||||
%endif
|
||||
|
||||
%post libopts -p /sbin/ldconfig
|
||||
%postun libopts -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%exclude %{_bindir}/autoopts-config
|
||||
%{_libdir}/autogen/*.tlib
|
||||
%{_datadir}/autogen/*
|
||||
%{_mandir}/man1/*
|
||||
%exclude %{_mandir}/man1/autoopts-config.1.gz
|
||||
|
||||
%files libopts
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files libopts-devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/autoopts/*.h
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_bindir}/autoopts-config
|
||||
%{_datadir}/aclocal/*
|
||||
%{_mandir}/man1/autoopts-config.1.gz
|
||||
%{_mandir}/man3/*
|
||||
%{_libdir}/*.a
|
||||
|
||||
%changelog
|
||||
* Sat Oct 01 2022 Shreenidhi Shedi <sshedi@vmware.com> 5.18.16-6
|
||||
- Bump version as a part of gc upgrade
|
||||
* Sun Aug 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 5.18.16-5
|
||||
- Remove .la files
|
||||
* Tue May 10 2022 Shreenidhi Shedi <sshedi@vmware.com> 5.18.16-4
|
||||
- Bump version as a part of libffi upgrade
|
||||
* Mon Sep 28 2020 Prashant S Chauhan <psinghchauha@vmware.com> 5.18.16-3
|
||||
- Remove %{?_smp_mflags} from check
|
||||
* Wed Apr 01 2020 Alexey Makhalov <amakhalov@vmware.com> 5.18.16-2
|
||||
- Fix compilation issue with gcc-8.4.0
|
||||
* Wed Sep 12 2018 Anish Swaminathan <anishs@vmware.com> 5.18.16-1
|
||||
- Upgrade to 5.18.16
|
||||
* Mon May 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 5.18.12-2
|
||||
- Adding Make Check
|
||||
* Tue Apr 18 2017 Dheeraj Shetty <dheerajs@vmware.com> 5.18.12-1
|
||||
- Updated version to 5.18.12
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.18.7-2
|
||||
- GA - Bump release of all rpms
|
||||
* Wed Feb 24 2016 Kumar Kaushik <kaushikk@vmware.com> 5.18.7-1
|
||||
- Updated version tp 5.16.7.
|
||||
* Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 5.18.6-1
|
||||
- Updated to version 5.18.6
|
||||
* Tue Sep 29 2015 Xiaolin Li <xiaolinl@vmware.com> 5.18.5-2
|
||||
- Create a seperate libopts package.
|
||||
* Thu Jun 18 2015 Divya Thaluru <dthaluru@vmware.com> 5.18.5-1
|
||||
- Initial build. First version
|
|
@ -1,75 +0,0 @@
|
|||
%define maj_ver 1.16
|
||||
|
||||
Summary: Programs for generating Makefiles
|
||||
Name: automake
|
||||
Version: 1.16.5
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
URL: http://www.gnu.org/software/automake
|
||||
Group: System Environment/Base
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://ftp.gnu.org/gnu/automake/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=3084ae543aa3fb5a05104ffb2e66cfa9a53080f2343c44809707fd648516869511500dba50dae67ff10f92a1bf3b5a92b2a0fa01cda30adb69b9da03994d9d88
|
||||
|
||||
BuildRequires: autoconf
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Contains programs for generating Makefiles for use with Autoconf.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
sed -i 's:/\\\${:/\\\$\\{:' bin/automake.in
|
||||
%configure \
|
||||
--docdir=%{_docdir}/%{name}-%{version} \
|
||||
--disable-silent-rules
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
rm -rf %{buildroot}%{_infodir}
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
sed -i "s:./configure:LEXLIB=/usr/lib/libfl.a &:" t/lex-{clean,depend}-cxx.sh
|
||||
sed -i "s|test ! -s stderr||g" t/distcheck-no-prefix-or-srcdir-override.sh
|
||||
sed -i '53d' t/nobase-python.sh
|
||||
make %{?_smp_mflags} check
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_datadir}/aclocal/README
|
||||
%{_datadir}/%{name}-%{maj_ver}/*
|
||||
%{_datadir}/aclocal-%{maj_ver}/*
|
||||
%{_docdir}/%{name}-%{version}/*
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Fri Oct 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.16.5-1
|
||||
- Upgrade to v1.16.5
|
||||
* Sun Nov 15 2020 Prashant S Chauhan <psinghchauha@vmware.com> 1.16.1-2
|
||||
- Added patch,Fix make check failure in python tests
|
||||
* Thu Sep 06 2018 Anish Swaminathan <anishs@vmware.com> 1.16.1-1
|
||||
- Update version to 1.16.1
|
||||
* Tue Jan 02 2018 Alexey Makhalov <amakhalov@vmware.com> 1.15.1-1
|
||||
- Version update
|
||||
* Fri Aug 04 2017 Danut Moraru <dmoraru@vmware.com> 1.15-4
|
||||
- Disable check that fails test case
|
||||
* Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.15-3
|
||||
- Fix arch
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.15-2
|
||||
- GA - Bump release of all rpms
|
||||
* Thu Jul 23 2015 Divya Thaluru <dthaluru@vmware.com> 1.15-1
|
||||
- Updated to version 1.15
|
||||
* Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 1.14.1-2
|
||||
- Adding autoconf package to build time requires packages
|
||||
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.14.1-1
|
||||
- Initial build. First version
|
|
@ -1,244 +0,0 @@
|
|||
%define debug_package %{nil}
|
||||
|
||||
Summary: aws sdk for c++
|
||||
Group: Development/Libraries
|
||||
Name: aws-sdk-cpp
|
||||
Version: 1.11.117
|
||||
Release: 3%{?dist}
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
License: Apache 2.0
|
||||
URL: https://github.com/aws/aws-sdk-cpp
|
||||
|
||||
# Steps to create source tarball
|
||||
# Download the tag from github, extract it
|
||||
# Then run `prefetch_crt_dependency.sh` script to get all dependencies
|
||||
# Example:
|
||||
# wget https://github.com/aws/aws-sdk-cpp/archive/refs/tags/1.10.20.tar.gz
|
||||
# tar xf 1.10.20.tar.gz
|
||||
# cd aws-sdk-cpp-1.10.20 && ./prefetch_crt_dependency.sh && cd -
|
||||
# tar -I 'gzip -9' -cpf aws-sdk-cpp-1.10.20.tar.gz aws-sdk-cpp-1.10.20
|
||||
Source0: https://github.com/aws/aws-sdk-cpp/archive/refs/tags/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=c398d2e5176d7369ea571aaa58ac240876929d5f97226de17282baeaadc0d7e20a3f2e8d4d348fbd3eaa365e09ad55631c0f6bb0d52b8a38c3ac935def5165c6
|
||||
|
||||
Requires: openssl-devel
|
||||
Requires: curl-devel
|
||||
Requires: zlib-devel
|
||||
Requires: aws-sdk-core = %{version}-%{release}
|
||||
Requires: aws-sdk-kinesis = %{version}-%{release}
|
||||
Requires: aws-sdk-s3 = %{version}-%{release}
|
||||
Requires: aws-crt-cpp = %{version}-%{release}
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
%description
|
||||
The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface for Amazon Web Services (AWS).
|
||||
|
||||
%package -n aws-sdk-core
|
||||
Summary: aws sdk core
|
||||
Group: Development/Libraries
|
||||
Requires: aws-core-libs = %{version}-%{release}
|
||||
Requires: aws-crt-cpp = %{version}-%{release}
|
||||
|
||||
%description -n aws-sdk-core
|
||||
aws sdk cpp core
|
||||
|
||||
%package -n aws-core-libs
|
||||
Summary: aws core libs
|
||||
Group: Development/Libraries
|
||||
Requires: openssl-devel
|
||||
Requires: curl-devel
|
||||
Requires: zlib-devel
|
||||
|
||||
%description -n aws-core-libs
|
||||
aws core libs
|
||||
|
||||
%package -n aws-sdk-kinesis
|
||||
Summary: aws sdk kinesis
|
||||
Group: Development/Libraries
|
||||
Requires: aws-sdk-core = %{version}-%{release}
|
||||
Requires: aws-kinesis-libs = %{version}-%{release}
|
||||
Requires: aws-crt-cpp = %{version}-%{release}
|
||||
|
||||
%description -n aws-sdk-kinesis
|
||||
aws sdk cpp for kinesis
|
||||
|
||||
%package -n aws-kinesis-libs
|
||||
Summary: aws kinesis libs
|
||||
Group: Development/Libraries
|
||||
Requires: aws-core-libs = %{version}-%{release}
|
||||
|
||||
%description -n aws-kinesis-libs
|
||||
aws kinesis libs
|
||||
|
||||
%package -n aws-sdk-s3
|
||||
Summary: aws sdk s3
|
||||
Group: Development/Libraries
|
||||
Requires: aws-sdk-core = %{version}-%{release}
|
||||
Requires: aws-s3-libs = %{version}-%{release}
|
||||
Requires: aws-crt-cpp = %{version}-%{release}
|
||||
|
||||
%description -n aws-sdk-s3
|
||||
aws sdk cpp for s3
|
||||
|
||||
%package -n aws-s3-libs
|
||||
Summary: aws s3 libs
|
||||
Group: Development/Libraries
|
||||
Requires: aws-core-libs = %{version}-%{release}
|
||||
|
||||
%description -n aws-s3-libs
|
||||
aws s3 libs
|
||||
|
||||
%package -n aws-crt-cpp
|
||||
Summary: aws crt cpp
|
||||
Group: Development/Libraries
|
||||
|
||||
%description -n aws-crt-cpp
|
||||
C++ wrapper around the aws-c-* libraries.
|
||||
Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
# TODO: try to remove -Wno-stringop-truncation flag in future version upgrades
|
||||
export CXXFLAGS="%{optflags} -Wno-stringop-truncation"
|
||||
%{cmake} \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
||||
|
||||
cd %{__cmake_builddir}
|
||||
|
||||
pushd ./src/aws-cpp-sdk-core
|
||||
%make_build
|
||||
popd
|
||||
|
||||
pushd ./crt/aws-crt-cpp/
|
||||
%make_build
|
||||
popd
|
||||
|
||||
for component in "kinesis" "s3"; do
|
||||
pushd ./generated/src/aws-cpp-sdk-${component}
|
||||
%make_build
|
||||
popd
|
||||
done
|
||||
|
||||
%install
|
||||
cd %{__cmake_builddir}
|
||||
|
||||
pushd ./src/aws-cpp-sdk-core
|
||||
%make_install %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
pushd ./crt/aws-crt-cpp/
|
||||
%make_install %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
for component in "kinesis" "s3"; do
|
||||
pushd ./generated/src/aws-cpp-sdk-${component}
|
||||
%make_install %{?_smp_mflags}
|
||||
popd
|
||||
done
|
||||
|
||||
rm -rf %{buildroot}%{_libdir}/cmake
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,0755)
|
||||
|
||||
%files -n aws-sdk-core
|
||||
%defattr(-,root,root,0755)
|
||||
%{_includedir}/aws/core/*
|
||||
%{_includedir}/smithy/*
|
||||
%{_libdir}/pkgconfig/aws-cpp-sdk-core.pc
|
||||
|
||||
%files -n aws-core-libs
|
||||
%defattr(-,root,root,0755)
|
||||
%{_libdir}/libaws-cpp-sdk-core.so
|
||||
|
||||
%files -n aws-sdk-kinesis
|
||||
%defattr(-,root,root,0755)
|
||||
%{_includedir}/aws/kinesis/*
|
||||
%{_libdir}/pkgconfig/aws-cpp-sdk-kinesis.pc
|
||||
|
||||
%files -n aws-kinesis-libs
|
||||
%defattr(-,root,root,0755)
|
||||
%{_libdir}/libaws-cpp-sdk-kinesis.so
|
||||
|
||||
%files -n aws-sdk-s3
|
||||
%defattr(-,root,root,0755)
|
||||
%{_includedir}/aws/s3/*
|
||||
%{_libdir}/pkgconfig/aws-cpp-sdk-s3.pc
|
||||
|
||||
%files -n aws-s3-libs
|
||||
%defattr(-,root,root,0755)
|
||||
%{_libdir}/libaws-cpp-sdk-s3.so
|
||||
|
||||
%files -n aws-crt-cpp
|
||||
%defattr(-,root,root,0755)
|
||||
%{_includedir}/aws/auth/*
|
||||
%{_includedir}/aws/cal/*
|
||||
%{_includedir}/aws/checksums/*
|
||||
%{_includedir}/aws/common/*
|
||||
%{_includedir}/aws/compression/*
|
||||
%{_includedir}/aws/crt/*
|
||||
%{_includedir}/aws/event-stream/*
|
||||
%{_includedir}/aws/http/*
|
||||
%{_includedir}/aws/io/*
|
||||
%{_includedir}/aws/iot/*
|
||||
%{_includedir}/aws/mqtt/*
|
||||
%{_includedir}/aws/sdkutils/*
|
||||
%{_includedir}/aws/testing/*
|
||||
%{_includedir}/s2n.h
|
||||
%{_includedir}/s2n/*
|
||||
%{_libdir}/aws-c-auth/cmake/*
|
||||
%{_libdir}/aws-c-cal/cmake/*
|
||||
%{_libdir}/aws-c-common/cmake/*
|
||||
%{_libdir}/aws-c-compression/cmake/*
|
||||
%{_libdir}/aws-c-event-stream/cmake/*
|
||||
%{_libdir}/aws-c-http/cmake/*
|
||||
%{_libdir}/aws-c-io/cmake/*
|
||||
%{_libdir}/aws-c-mqtt/cmake/*
|
||||
%{_libdir}/aws-c-s3/cmake/*
|
||||
%{_libdir}/aws-c-sdkutils/cmake/*
|
||||
%{_libdir}/aws-checksums/cmake/*
|
||||
%{_libdir}/aws-crt-cpp/cmake/*
|
||||
%{_libdir}/s2n/cmake/*
|
||||
%exclude %{_libdir}/*.a
|
||||
|
||||
%changelog
|
||||
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.11.117-3
|
||||
- Bump version as a part of openssl upgrade
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.11.117-2
|
||||
- Build CRT deps
|
||||
* Wed Jul 12 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.11.117-1
|
||||
- Upgrade to v1.11.117
|
||||
* Fri Apr 14 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.10.30-2
|
||||
- Bump version as a part of zlib upgrade
|
||||
* Thu Dec 15 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.10.30-1
|
||||
- Upgrade to v1.10.30
|
||||
* Thu Dec 01 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.10.20-1
|
||||
- Upgrade to v1.10.20
|
||||
* Mon Sep 19 2022 Vamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com> 1.4.33-6
|
||||
- Fix build with latest toolchain
|
||||
* Mon Jun 20 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.4.33-5
|
||||
- Use cmake macros for build and install
|
||||
* Wed Aug 04 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.4.33-4
|
||||
- Bump up release for openssl
|
||||
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.4.33-3
|
||||
- openssl 1.1.1
|
||||
* Fri Apr 03 2020 Alexey Makhalov <amakhalov@vmware.com> 1.4.33-2
|
||||
- Fix compilation issue with gcc-8.4.0
|
||||
* Thu Aug 30 2018 Anish Swaminathan <anishs@vmware.com> 1.4.33-1
|
||||
- Initial build. First version
|
|
@ -1,72 +0,0 @@
|
|||
%global debug_package %{nil}
|
||||
|
||||
Summary: Pretty stack trace printer for C++.
|
||||
Name: backward-cpp
|
||||
Version: 1.6
|
||||
Release: 2%{?dist}
|
||||
License: MIT
|
||||
URL: https://github.com/bombela/backward-cpp
|
||||
Group: Development/Tools
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/bombela/backward-cpp/archive/refs/tags/%{name}-v%{version}.tar.gz
|
||||
%define sha512 %{name}=db0256a54819952ff1d92e05d6ab81fe979d4826ebb6651b6b08c30e7a0091879dfeff33d81f9599462152ce68e61e2c8c42bf039129bc6b28d1e68b1eab039b
|
||||
|
||||
BuildArch: x86_64
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
Backward is a beautiful stack trace pretty printer for C++.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
||||
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
install -vm644 %{__cmake_builddir}/libbackward.so %{buildroot}%{_libdir}
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
cd %{__cmake_builddir}
|
||||
# By default builds.sh returns exit status of cmds from do_action()
|
||||
# exit 0 added explicitly for clean exit from the script else cmake fails
|
||||
echo "exit 0" >> builds.sh
|
||||
sh builds.sh cmake make
|
||||
make %{?_smp_mflags}
|
||||
make test %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/backward.hpp
|
||||
%{_libdir}/backward/BackwardConfig.cmake
|
||||
%{_libdir}/libbackward.so
|
||||
|
||||
%changelog
|
||||
* Mon Jun 20 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.6-2
|
||||
- Use cmake macros for build and install
|
||||
* Mon Apr 18 2022 Gerrit Photon <photon-checkins@vmware.com> 1.6-1
|
||||
- Automatic Version Bump
|
||||
* Mon Jun 22 2020 Gerrit Photon <photon-checkins@vmware.com> 1.5-1
|
||||
- Automatic Version Bump
|
||||
* Tue Nov 20 2018 Sujay G <gsujay@vmware.com> 1.4-3
|
||||
- Added %check section
|
||||
* Mon Oct 22 2018 Ajay Kaher <akaher@vmware.com> 1.4-2
|
||||
- Adding BuildArch
|
||||
* Mon Sep 03 2018 Keerthana K <keerthanak@vmware.com> 1.4-1
|
||||
- Updated to version 1.4.
|
||||
* Wed Jul 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.3-1
|
||||
- Initial version of backward-cpp package for Photon.
|
|
@ -1,64 +0,0 @@
|
|||
Summary: Programmable completion for Bash
|
||||
Name: bash-completion
|
||||
Version: 2.11
|
||||
Release: 1%{?dist}
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/scop/bash-completion
|
||||
Group: Applications/System
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||
%define sha512 %{name}=41585f730b5114d397831ba36d10d05643c6a6179e746ddc49aa1cbef61ea5525fd2f09b2e474adee14e647f99df8d5983ee48e29a59d8a30e1daf7fb1837e06
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: make
|
||||
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-pexpect
|
||||
%endif
|
||||
|
||||
Requires: bash
|
||||
|
||||
Conflicts: bash < 5.2-2
|
||||
|
||||
%description
|
||||
%{name} is a collection of shell functions that take advantage
|
||||
of the programmable completion feature of bash.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi -v
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
rm %{buildroot}%{_datadir}/%{name}/completions/{cowsay,cowthink} \
|
||||
%{buildroot}%{_datadir}/%{name}/completions/makepkg \
|
||||
%{buildroot}%{_datadir}/%{name}/completions/prelink
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
make check %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/profile.d/bash_completion.sh
|
||||
%{_datadir}/%{name}/
|
||||
%{_datadir}/cmake/
|
||||
%{_datadir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Sun May 28 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.11-1
|
||||
- Initial version.
|
|
@ -1,384 +0,0 @@
|
|||
Summary: Bourne-Again SHell
|
||||
Name: bash
|
||||
Version: 5.2
|
||||
Release: 2%{?dist}
|
||||
License: GPLv3
|
||||
URL: http://www.gnu.org/software/bash
|
||||
Group: System Environment/Base
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://ftp.gnu.org/gnu/bash/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=5647636223ba336bf33e0c65e516d8ebcf6932de8b44f37bc468eedb87579c628ad44213f78534beb10f47aebb9c6fa670cb0bed3b4e7717e5faf7e9a1ef81ae
|
||||
|
||||
Patch0: enable-SYS_BASHRC-SSH_SOURCE_BASHRC.patch
|
||||
|
||||
Provides: /bin/sh
|
||||
Provides: /bin/bash
|
||||
|
||||
BuildRequires: readline
|
||||
|
||||
Requires: readline
|
||||
Requires(post): /bin/grep
|
||||
Requires(post): /usr/bin/cp
|
||||
Requires(postun): /bin/grep
|
||||
Requires(postun): /usr/bin/mv
|
||||
|
||||
%description
|
||||
The package contains the Bourne-Again SHell
|
||||
|
||||
%package devel
|
||||
Summary: Header and development files for bash
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description devel
|
||||
It contains the libraries and header files to create applications
|
||||
|
||||
%package lang
|
||||
Summary: Additional language files for bash
|
||||
Group: System Environment/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description lang
|
||||
These are the additional language files of bash.
|
||||
|
||||
%package docs
|
||||
Summary: bash docs
|
||||
Group: Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%description docs
|
||||
The package contains bash doc files.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%configure \
|
||||
"CFLAGS=-fPIC" \
|
||||
--htmldir=%{_docdir}/%{name}-%{version} \
|
||||
--without-bash-malloc \
|
||||
--with-installed-readline
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
ln -sv bash %{buildroot}%{_bindir}/sh
|
||||
install -vdm 755 %{buildroot}%{_sysconfdir}
|
||||
install -vdm 755 %{buildroot}%{_sysconfdir}/profile.d
|
||||
install -vdm 755 %{buildroot}%{_sysconfdir}/skel
|
||||
rm %{buildroot}%{_libdir}/bash/Makefile.inc
|
||||
|
||||
# Create dircolors
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/dircolors.sh << "EOF"
|
||||
# Setup for /bin/ls and /bin/grep to support color, the alias is in /etc/bashrc.
|
||||
if [ -f "%{_sysconfdir}/dircolors" ]; then
|
||||
eval $(dircolors -b %{_sysconfdir}/dircolors)
|
||||
|
||||
if [ -f "$HOME/.dircolors" ]; then
|
||||
eval $(dircolors -b $HOME/.dircolors)
|
||||
fi
|
||||
fi
|
||||
alias ls='ls --color=auto'
|
||||
grep --help | grep color >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
alias grep='grep --color=auto'
|
||||
fi
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/extrapaths.sh << "EOF"
|
||||
if [ -d /usr/local/lib/pkgconfig ]; then
|
||||
pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH
|
||||
fi
|
||||
if [ -d /usr/local/bin ]; then
|
||||
pathprepend /usr/local/bin
|
||||
fi
|
||||
if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then
|
||||
pathprepend /usr/local/sbin
|
||||
fi
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/readline.sh << "EOF"
|
||||
# Setup the INPUTRC environment variable.
|
||||
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
|
||||
INPUTRC=%{_sysconfdir}/inputrc
|
||||
fi
|
||||
export INPUTRC
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/umask.sh << "EOF"
|
||||
# By default, the umask should be set.
|
||||
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ]; then
|
||||
umask 002
|
||||
else
|
||||
umask 022
|
||||
fi
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/profile.d/i18n.sh << "EOF"
|
||||
# Begin /etc/profile.d/i18n.sh
|
||||
|
||||
unset LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES \
|
||||
LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
|
||||
|
||||
if [ -n "$XDG_CONFIG_HOME" ] && [ -r "$XDG_CONFIG_HOME/locale.conf" ]; then
|
||||
. "$XDG_CONFIG_HOME/locale.conf"
|
||||
elif [ -r %{_sysconfdir}/locale.conf ]; then
|
||||
. %{_sysconfdir}/locale.conf
|
||||
fi
|
||||
|
||||
export LANG="${LANG:-C}"
|
||||
[ -n "$LC_CTYPE" ] && export LC_CTYPE
|
||||
[ -n "$LC_NUMERIC" ] && export LC_NUMERIC
|
||||
[ -n "$LC_TIME" ] && export LC_TIME
|
||||
[ -n "$LC_COLLATE" ] && export LC_COLLATE
|
||||
[ -n "$LC_MONETARY" ] && export LC_MONETARY
|
||||
[ -n "$LC_MESSAGES" ] && export LC_MESSAGES
|
||||
[ -n "$LC_PAPER" ] && export LC_PAPER
|
||||
[ -n "$LC_NAME" ] && export LC_NAME
|
||||
[ -n "$LC_ADDRESS" ] && export LC_ADDRESS
|
||||
[ -n "$LC_TELEPHONE" ] && export LC_TELEPHONE
|
||||
[ -n "$LC_MEASUREMENT" ] && export LC_MEASUREMENT
|
||||
[ -n "$LC_IDENTIFICATION" ] && export LC_IDENTIFICATION
|
||||
|
||||
# End /etc/profile.d/i18n.sh
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/bash.bashrc << "EOF"
|
||||
# Begin /etc/bash.bashrc
|
||||
# Written for Beyond Linux From Scratch
|
||||
# by James Robertson <jameswrobertson@earthlink.net>
|
||||
# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
|
||||
|
||||
# System wide aliases and functions.
|
||||
|
||||
# System wide environment variables and startup programs should go into
|
||||
# /etc/profile. Personal environment variables and startup programs
|
||||
# should go into ~/.bash_profile. Personal aliases and functions should
|
||||
# go into ~/.bashrc
|
||||
|
||||
# Provides colored /bin/ls and /bin/grep commands. Used in conjunction
|
||||
# with code in /etc/profile.
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
grep --help | grep color >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
alias grep='grep --color=auto'
|
||||
fi
|
||||
|
||||
# Provides prompt for non-login shells, specifically shells started
|
||||
# in the X environment. [Review the LFS archive thread titled
|
||||
# PS1 Environment Variable for a great case study behind this script
|
||||
# addendum.]
|
||||
|
||||
NORMAL="\[\e[0m\]"
|
||||
RED="\[\e[1;31m\]"
|
||||
GREEN="\[\e[1;32m\]"
|
||||
if [[ $EUID = 0 ]]; then
|
||||
PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
|
||||
else
|
||||
PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
|
||||
fi
|
||||
|
||||
unset RED GREEN NORMAL
|
||||
|
||||
if test -n "$SSH_CONNECTION" -a -z "$PROFILEREAD"; then
|
||||
. %{_sysconfdir}/profile > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# End /etc/bash.bashrc
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/skel/.bash_profile << "EOF"
|
||||
# Begin ~/.bash_profile
|
||||
# Written for Beyond Linux From Scratch
|
||||
# by James Robertson <jameswrobertson@earthlink.net>
|
||||
# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
|
||||
|
||||
# Personal environment variables and startup programs.
|
||||
|
||||
# Personal aliases and functions should go in ~/.bashrc. System wide
|
||||
# environment variables and startup programs are in /etc/profile.
|
||||
# System wide aliases and functions are in /etc/bashrc.
|
||||
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
source $HOME/.bashrc
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/bin" ]; then
|
||||
pathprepend $HOME/bin
|
||||
fi
|
||||
|
||||
# Having . in the PATH is dangerous
|
||||
#if [ $EUID -gt 99 ]; then
|
||||
# pathappend .
|
||||
#fi
|
||||
|
||||
# End ~/.bash_profile
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/skel/.bashrc << "EOF"
|
||||
# Begin ~/.bashrc
|
||||
# Written for Beyond Linux From Scratch
|
||||
# by James Robertson <jameswrobertson@earthlink.net>
|
||||
|
||||
# Personal aliases and functions.
|
||||
|
||||
# Personal environment variables and startup programs should go in
|
||||
# ~/.bash_profile. System wide environment variables and startup
|
||||
# programs are in /etc/profile. System wide aliases and functions are
|
||||
# in /etc/bashrc.
|
||||
|
||||
if [ -f "%{_sysconfdir}/bash.bashrc" ]; then
|
||||
source %{_sysconfdir}/bash.bashrc
|
||||
fi
|
||||
|
||||
# End ~/.bashrc
|
||||
EOF
|
||||
|
||||
cat > %{buildroot}%{_sysconfdir}/skel/.bash_logout << "EOF"
|
||||
# Begin ~/.bash_logout
|
||||
# Written for Beyond Linux From Scratch
|
||||
# by James Robertson <jameswrobertson@earthlink.net>
|
||||
|
||||
# Personal items to perform on logout.
|
||||
|
||||
# End ~/.bash_logout
|
||||
EOF
|
||||
|
||||
dircolors -p > %{buildroot}%{_sysconfdir}/dircolors
|
||||
%find_lang %{name}
|
||||
rm -rf %{buildroot}%{_infodir}
|
||||
|
||||
%if 0%{?with_check}
|
||||
%check
|
||||
make NON_ROOT_USERNAME=nobody %{?_smp_mflags} check
|
||||
%endif
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
if [ ! -f "/root/.bash_logout" ]; then
|
||||
cp %{_sysconfdir}/skel/.bash_logout /root/.bash_logout
|
||||
fi
|
||||
|
||||
if [ ! -f %{_sysconfdir}/shells ]; then
|
||||
echo "/bin/sh" >> %{_sysconfdir}/shells
|
||||
echo "/bin/bash" >> %{_sysconfdir}/shells
|
||||
echo "%{_bindir}/sh" >> %{_sysconfdir}/shells
|
||||
echo "%{_bindir}/bash" >> %{_sysconfdir}/shells
|
||||
else
|
||||
grep -q '^/bin/sh$' %{_sysconfdir}/shells || \
|
||||
echo "/bin/sh" >> %{_sysconfdir}/shells
|
||||
grep -q '^/bin/bash$' %{_sysconfdir}/shells || \
|
||||
echo "/bin/bash" >> %{_sysconfdir}/shells
|
||||
grep -q '^%{_bindir}/sh$' %{_sysconfdir}/shells || \
|
||||
echo "%{_bindir}/sh" >> %{_sysconfdir}/shells
|
||||
grep -q '^%{_bindir}/bash$' %{_sysconfdir}/shells || \
|
||||
echo "%{_bindir}/bash" >> %{_sysconfdir}/shells
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
if [ -f "/root/.bash_logout" ]; then
|
||||
rm -f /root/.bash_logout
|
||||
fi
|
||||
if [ ! -x /bin/sh ]; then
|
||||
grep -v '^/bin/sh$' %{_sysconfdir}/shells | \
|
||||
grep -v '^/bin/sh$' > %{_sysconfdir}/shells.rpm && \
|
||||
mv %{_sysconfdir}/shells.rpm %{_sysconfdir}/shells
|
||||
fi
|
||||
if [ ! -x /bin/bash ]; then
|
||||
grep -v '^/bin/bash$' %{_sysconfdir}/shells | \
|
||||
grep -v '^/bin/bash$' > %{_sysconfdir}/shells.rpm && \
|
||||
mv %{_sysconfdir}/shells.rpm %{_sysconfdir}/shells
|
||||
fi
|
||||
if [ ! -x %{_bindir}/sh ]; then
|
||||
grep -v '^%{_bindir}/sh$' %{_sysconfdir}/shells | \
|
||||
grep -v '^%{_bindir}/sh$' > %{_sysconfdir}/shells.rpm && \
|
||||
mv %{_sysconfdir}/shells.rpm %{_sysconfdir}/shells
|
||||
fi
|
||||
if [ ! -x %{_bindir}/bash ]; then
|
||||
grep -v '^%{_bindir}/bash$' %{_sysconfdir}/shells | \
|
||||
grep -v '^%{_bindir}/bash$' > %{_sysconfdir}/shells.rpm && \
|
||||
mv %{_sysconfdir}/shells.rpm %{_sysconfdir}/shells
|
||||
fi
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_libdir}/%{name}/*
|
||||
%{_sysconfdir}/*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/%{name}/*
|
||||
%{_libdir}/pkgconfig/*
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files docs
|
||||
%defattr(-,root,root)
|
||||
%{_docdir}/%{name}-%{version}/*
|
||||
%{_docdir}/%{name}/*
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Mon May 29 2023 Shreenidhi Shedi <sshedi@vmware.com> 5.2-2
|
||||
- Remove bash-completion related files
|
||||
- bash-completion is a new package now
|
||||
* Mon Jan 09 2023 Susant Sahani <ssahani@vmware.com> 5.2-1
|
||||
- Update version
|
||||
* Tue Dec 20 2022 Guruswamy Basavaiah <bguruswamy@vmware.com> 5.1.16-2
|
||||
- Bump release as a part of readline upgrade
|
||||
* Wed Aug 24 2022 Shreenidhi Shedi <sshedi@vmware.com> 5.1.16-1
|
||||
- Upgrade to v5.1.16
|
||||
* Wed Feb 23 2022 Shreenidhi Shedi <sshedi@vmware.com> 5.0-3
|
||||
- Fix binary path
|
||||
* Fri Feb 19 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 5.0-2
|
||||
- Move documents to docs sub-package
|
||||
* Wed Jul 08 2020 Gerrit Photon <photon-checkins@vmware.com> 5.0-1
|
||||
- Automatic Version Bump
|
||||
* Mon Sep 24 2018 Sujay G <gsujay@vmware.com> 4.4.18-1
|
||||
- Bump bash version to 4.4.18
|
||||
* Fri Jan 26 2018 Alexey Makhalov <amakhalov@vmware.com> 4.4.12-3
|
||||
- Run bash_completion only for bash interactive shell
|
||||
* Mon Dec 11 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.4.12-2
|
||||
- conditionally apply grep color alias
|
||||
* Mon Nov 13 2017 Xiaolin Li <xiaolinl@vmware.com> 4.4.12-1
|
||||
- Upstream patch level 12 applied
|
||||
* Mon Oct 02 2017 Kumar Kaushik <kaushikk@vmware.com> 4.4-6
|
||||
- Adding security fix for CVE-2017-5932.
|
||||
* Thu Jun 8 2017 Bo Gan <ganb@vmware.com> 4.4-5
|
||||
- Fix dependency again
|
||||
* Wed Jun 7 2017 Divya Thaluru <dthaluru@vmware.com> 4.4-4
|
||||
- Added /usr/bin/sh and /bin/sh entries in /etc/shells
|
||||
* Sun Jun 4 2017 Bo Gan <ganb@vmware.com> 4.4-3
|
||||
- Fix dependency
|
||||
* Thu Feb 2 2017 Divya Thaluru <dthaluru@vmware.com> 4.4-2
|
||||
- Modified bash entry in /etc/shells
|
||||
* Fri Jan 13 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.4-1
|
||||
- Upgraded version to 4.4
|
||||
* Tue Jan 10 2017 Divya Thaluru <dthaluru@vmware.com> 4.3.30-7
|
||||
- Added bash entry to /etc/shells
|
||||
* Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 4.3.30-6
|
||||
- Add readline requirements
|
||||
* Fri Aug 19 2016 Alexey Makhalov <amakhalov@vmware.com> 4.3.30-5
|
||||
- Enable bash completion support
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.3.30-4
|
||||
- GA - Bump release of all rpms
|
||||
* Tue May 3 2016 Divya Thaluru <dthaluru@vmware.com> 4.3.30-3
|
||||
- Fixing spec file to handle rpm upgrade scenario correctly
|
||||
* Thu Mar 10 2016 Divya Thaluru <dthaluru@vmware.com> 4.3.30-2
|
||||
- Adding compile options to load bash.bashrc file and
|
||||
loading source file during non-inetractive non-login shell
|
||||
* Tue Jan 12 2016 Xiaolin Li <xiaolinl@vmware.com> 4.3.30-1
|
||||
- Updated to version 4.3.30
|
||||
* Wed Aug 05 2015 Kumar Kaushik <kaushikk@vmware.com> 4.3-4
|
||||
- Adding post unstall section.
|
||||
* Wed Jul 22 2015 Alexey Makhalov <amakhalov@vmware.com> 4.3-3
|
||||
- Fix segfault in save_bash_input.
|
||||
* Tue Jun 30 2015 Alexey Makhalov <amakhalov@vmware.com> 4.3-2
|
||||
- /etc/profile.d permission fix. Pack /etc files into rpm
|
||||
* Wed Oct 22 2014 Divya Thaluru <dthaluru@vmware.com> 4.3-1
|
||||
- Initial version
|
|
@ -1,35 +0,0 @@
|
|||
From 036216b03d55db0396a9e1bb246503ad58398088 Mon Sep 17 00:00:00 2001
|
||||
From: Shreenidhi Shedi <sshedi@vmware.com>
|
||||
Date: Wed, 24 Aug 2022 15:39:59 +0530
|
||||
Subject: [PATCH] config-top.h: enable SYS_BASHRC & SSH_SOURCE_BASHRC
|
||||
|
||||
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
|
||||
---
|
||||
config-top.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/config-top.h b/config-top.h
|
||||
index 735f75e..5934fe5 100644
|
||||
--- a/config-top.h
|
||||
+++ b/config-top.h
|
||||
@@ -91,7 +91,7 @@
|
||||
#define DEFAULT_BASHRC "~/.bashrc"
|
||||
|
||||
/* System-wide .bashrc file for interactive shells. */
|
||||
-/* #define SYS_BASHRC "/etc/bash.bashrc" */
|
||||
+#define SYS_BASHRC "/etc/bash.bashrc"
|
||||
|
||||
/* System-wide .bash_logout for login shells. */
|
||||
/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
|
||||
@@ -104,7 +104,7 @@
|
||||
sshd and source the .bashrc if so (like the rshd behavior). This checks
|
||||
for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
|
||||
which can be fooled under certain not-uncommon circumstances. */
|
||||
-/* #define SSH_SOURCE_BASHRC */
|
||||
+#define SSH_SOURCE_BASHRC
|
||||
|
||||
/* Define if you want the case-toggling operators (~[~]) and the
|
||||
`capcase' variable attribute (declare -c). */
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
Name: basic
|
||||
Summary: Metapackage to install minimal profile
|
||||
Version: 5.0
|
||||
Release: 2%{?dist}
|
||||
License: Apache 2.0
|
||||
Group: System Environment/Base
|
||||
URL: https://vmware.github.io/photon
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Requires: Linux-PAM
|
||||
Requires: bash
|
||||
Requires: bash-completion
|
||||
Requires: coreutils-selinux
|
||||
Requires: cracklib
|
||||
Requires: cracklib-dicts
|
||||
Requires: dbus
|
||||
Requires: filesystem
|
||||
Requires: findutils
|
||||
Requires: grep
|
||||
Requires: grub2-efi-image
|
||||
Requires: grub2-theme
|
||||
Requires: openssh
|
||||
Requires: photon-release
|
||||
Requires: photon-repos
|
||||
Requires: sed
|
||||
Requires: systemd
|
||||
Requires: systemd-udev
|
||||
Requires: tdnf
|
||||
|
||||
%description
|
||||
Metapackage to install minimal profile
|
||||
|
||||
%prep
|
||||
%build
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,0755)
|
||||
|
||||
%changelog
|
||||
* Tue Aug 15 2023 Shreenidhi Shedi <sshedi@vmware.com> 5.0-2
|
||||
- Add bash-completion to requires
|
||||
* Sat Jul 15 2023 Shreenidhi Shedi <sshedi@vmware.com> 5.0-1
|
||||
- Basic set packages required for Photon
|
|
@ -1,53 +0,0 @@
|
|||
Summary: Bash Automated Testing System
|
||||
Name: bats
|
||||
Version: 1.8.2
|
||||
Release: 1%{?dist}
|
||||
License: MIT
|
||||
Group: System Environment/Tool
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
URL: https://github.com/bats-core/bats-core
|
||||
SOURCE0: https://github.com/bats-core/bats-core/archive/refs/tags/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=7eace32f19789e081112af1ce8ab33ff210d52bd3ea84962bbec226349b3b8d8912b6a495f5524f9cc7cfe692f1d23d684c93c24e182752e2b30731670d6eeea
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: parallel
|
||||
BuildRequires: procps-ng
|
||||
|
||||
Requires: bash
|
||||
Requires: parallel
|
||||
|
||||
%description
|
||||
Bats is a TAP-compliant testing framework for Bash. It provides a simple way to
|
||||
verify that the UNIX programs you write behave as expected. Bats is most useful
|
||||
when testing software written in Bash, but you can use it to test any UNIX
|
||||
program.
|
||||
|
||||
%prep
|
||||
%autosetup -n bats-core-%{version}
|
||||
|
||||
%install
|
||||
./install.sh %{buildroot}%{_prefix}
|
||||
|
||||
%check
|
||||
./bin/bats test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS README.md docs/CHANGELOG.md
|
||||
%license LICENSE.md
|
||||
%{_bindir}/%{name}
|
||||
%{_libexecdir}/%{name}-core
|
||||
%{_prefix}/lib/%{name}-core
|
||||
%{_mandir}/man1/%{name}.1.gz
|
||||
%{_mandir}/man7/%{name}.7.gz
|
||||
|
||||
%changelog
|
||||
* Tue Oct 25 2022 Gerrit Photon <photon-checkins@vmware.com> 1.8.2-1
|
||||
- Automatic Version Bump
|
||||
* Thu Oct 06 2022 Gerrit Photon <photon-checkins@vmware.com> 1.8.0-1
|
||||
- Automatic Version Bump
|
||||
* Fri Sep 02 2022 Nitesh Kumar <kunitesh@vmware.com> 1.7.0-1
|
||||
- Initial version, Needed by podman-tests
|
|
@ -1,80 +0,0 @@
|
|||
%global debug_package %{nil}
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
Summary: Build software of any size, quickly and reliably, just as engineers do at Google.
|
||||
Name: bazel
|
||||
Version: 5.3.2
|
||||
Release: 4%{?dist}
|
||||
License: Apache License 2.0
|
||||
Group: Development/Tools
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
URL: http://bazel.build/
|
||||
|
||||
Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{name}-%{version}-dist.zip
|
||||
%define sha512 %{name}=a63895c224d51619cf83e6e55872aa6d55d17c7dcea59eaf467069d2c95259f5964fbf8fa5994df0e3c030234a7adf70a2715edb4edbbe2bf69d21dd698c0833
|
||||
|
||||
BuildRequires: openjdk11
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: which
|
||||
BuildRequires: findutils
|
||||
BuildRequires: tar
|
||||
BuildRequires: gzip
|
||||
BuildRequires: zip
|
||||
BuildRequires: unzip
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python3
|
||||
|
||||
Requires: (openjdk11 or openjdk17)
|
||||
|
||||
%description
|
||||
Bazel is Google's own build tool, now publicly available in Beta. Bazel has
|
||||
built-in support for building both client and server software, including client
|
||||
applications for both Android and iOS platforms. It also provides an extensible
|
||||
framework that you can use to develop your own build rules.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -c -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
export JAVA_HOME=$(echo %{_libdir}/jvm/OpenJDK*)
|
||||
export TMPDIR=%{_usr}/tmp
|
||||
|
||||
mkdir $TMPDIR
|
||||
|
||||
./compile.sh
|
||||
|
||||
pushd output
|
||||
./bazel
|
||||
popd
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
cp output/bazel %{buildroot}%{_bindir}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%attr(755,root,root) %{_bindir}/bazel
|
||||
|
||||
%changelog
|
||||
* Sat Aug 26 2023 Shreenidhi Shedi <sshedi@vmware.com> 5.3.2-4
|
||||
- Require jdk11 or jdk17
|
||||
* Sat Jun 17 2023 Shreenidhi Shedi <sshedi@vmware.com> 5.3.2-3
|
||||
- Bump version as a part of openjdk11 upgrade
|
||||
* Tue Dec 06 2022 Prashant S Chauhan <psinghchauha@vmware.com> 5.3.2-2
|
||||
- Update release to compile with python 3.11
|
||||
* Mon Oct 31 2022 Gerrit Photon <photon-checkins@vmware.com> 5.3.2-1
|
||||
- Automatic Version Bump
|
||||
* Sun Sep 18 2022 Vamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com> 5.3.0-1
|
||||
- Upgrade to latest version
|
||||
- Use openjdk11
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 4.0.0-1
|
||||
- Automatic Version Bump
|
||||
* Thu Jan 14 2021 Alexey Makhalov <amakhalov@vmware.com> 3.5.0-2
|
||||
- GCC-10 support.
|
||||
* Mon Sep 21 2020 Harinadh Dommaraju <hdommaraju@vmware.com> 3.5.0-1
|
||||
- Update bazel version
|
||||
* Fri Apr 24 2020 Ankit Jain <ankitja@vmware.com> 2.0.0-2
|
||||
- Changed openjdk install directory name
|
||||
* Fri Feb 7 2020 Harinadh Dommaraju <hdommaraju@vmware.com> 2.0.0-1
|
||||
- Initial release
|
|
@ -1,78 +0,0 @@
|
|||
Summary: precision numeric processing language
|
||||
Name: bc
|
||||
Version: 1.07.1
|
||||
Release: 4%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://ftp.gnu.org/gnu/bc/
|
||||
Group: System Environment/base
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
Source0: https://ftp.gnu.org/gnu/bc/%{name}-%{version}.tar.gz
|
||||
%define sha1 bc=b4475c6d66590a5911d30f9747361db47231640a
|
||||
BuildRequires: ed
|
||||
Requires: flex
|
||||
Patch0: do-not-generate-libmath-h.patch
|
||||
Patch1: pregenerated-libmath-h.patch
|
||||
|
||||
%description
|
||||
The Bc package contains an arbitrary precision numeric processing language.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
if [ %{_host} != %{_build} ]; then
|
||||
# bc is not cross-compile friendly.
|
||||
# it generates libmath.h using built in tree ./fdc tool
|
||||
# which can't be run
|
||||
# Use pre-generated libmath.h
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
else
|
||||
# put pregenerated libmath.h to the src root
|
||||
%patch1 -p2
|
||||
fi
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
--disable-silent-rules
|
||||
make %{?_smp_mflags}
|
||||
# check that our pregenerated libmath.h is up to date.
|
||||
if [ %{_host} = %{_build} ]; then
|
||||
diff libmath.h bc/libmath.h
|
||||
fi
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install
|
||||
install -vdm 755 %{buildroot}/%{_mandir}
|
||||
rm -rf %{buildroot}%{_infodir}
|
||||
|
||||
%check
|
||||
cd Test
|
||||
./timetest
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 28 2020 Sujay G <gsujay@vmware.com> 1.07.1-4
|
||||
- Fix %check
|
||||
* Fri Nov 01 2019 Alexey Makhalov <amakhalov@vmware.com> 1.07.1-3
|
||||
- Cross compilation support
|
||||
* Mon Oct 14 2019 Piyush Gupta <guptapi@vmware.com> 1.07.1-2
|
||||
- Added Requires flex
|
||||
* Mon Oct 1 2018 Sujay G <gsujay@vmware.com> 1.07.1-1
|
||||
- Bump bc version to 1.07.1
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.06.95-3
|
||||
- GA - Bump release of all rpms
|
||||
* Tue Aug 4 2015 Kumar Kaushik <kaushikk@vmware.com> 1.06.95-2
|
||||
- Adding the post uninstall section.
|
||||
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.06.95-1
|
||||
- initial version
|
|
@ -1,18 +0,0 @@
|
|||
diff -Naur a/bc/Makefile.am b/bc/Makefile.am
|
||||
--- a/bc/Makefile.am 2017-04-07 13:09:29.000000000 -0700
|
||||
+++ b/bc/Makefile.am 2018-11-14 14:49:51.457915578 -0800
|
||||
@@ -31,14 +31,6 @@
|
||||
|
||||
fbcOBJ = main.o bc.o scan.o execute.o load.o storage.o util.o warranty.o
|
||||
|
||||
-libmath.h: libmath.b $(fbcOBJ) $(LIBBC)
|
||||
- echo '{0}' > libmath.h
|
||||
- $(MAKE) global.o
|
||||
- $(LINK) -o fbc $(fbcOBJ) global.o $(LIBBC) $(LIBL) $(READLINELIB) $(LIBS)
|
||||
- ./fbc -c $(srcdir)/libmath.b </dev/null >libmath.h
|
||||
- $(srcdir)/fix-libmath_h
|
||||
- rm -f ./fbc ./global.o
|
||||
-
|
||||
sbcOBJ = main.o sbc.o scan.o execute.o global.o load.o storage.o util.o \
|
||||
warranty.o
|
||||
sbc.o: sbc.c
|
|
@ -1,50 +0,0 @@
|
|||
diff -Naur a/bc/libmath.h b/bc/libmath.h
|
||||
--- a/bc/libmath.h 1969-12-31 16:00:00.000000000 -0800
|
||||
+++ b/bc/libmath.h 2018-11-14 14:47:16.000000000 -0800
|
||||
@@ -0,0 +1,46 @@
|
||||
+{"@iK20:s2:p@r",
|
||||
+"@iF1,5.6,7,8,9,10,11,12,13,14,15[l0:KA:#Z1:l0:s7:pKA:s0:pl5:C1,0:",
|
||||
+"s14:pl7:s0:pl14:RN1:l5:0<Z2:1s12:pl5:ns5:pN2:l2:s15:pK6:l15:+",
|
||||
+"K.44:l5:*+s13:pl5:cS1+s2:pN3:l5:1>Z4:l10:1+s10:pl5:K2:/s5:pl2:",
|
||||
+"1+s2:pJ3:N4:l13:s2:p1l5:+s14:pl5:s6:p1s8:pK2:s11:pN6:1B7:J5:N8:",
|
||||
+"l11:i11:pJ6:N7:l6:l5:*s6:l8:l11:*s8:/s9:pl9:0=Z9:l10:0>Z10:N11:",
|
||||
+"l10:d10:Z12:l14:l14:*s14:pJ11:N12:N10:l15:s2:pl12:Z13:1l14:/R",
|
||||
+"N13:l14:1/RN9:l14:l9:+s14:pJ8:N5:0R]@r",
|
||||
+"@iF2,5.7,9,10,11,12,13,14,15[l0:KA:#Z1:l0:s7:pKA:s0:pl5:C2,0:",
|
||||
+"s14:pl7:s0:pl14:RN1:l5:0{Z2:1K10:l2:^-1/RN2:l2:s15:pK6:l2:+s2:",
|
||||
+"pK2:s10:p0s11:pN3:l5:K2:}Z4:l10:K2:*s10:pl5:cRs5:pJ3:N4:N5:l5:",
|
||||
+"K.5:{Z6:l10:K2:*s10:pl5:cRs5:pJ5:N6:l5:1-l5:1+/s13:s14:pl13:l13:",
|
||||
+"*s12:pK3:s11:pN8:1B9:J7:N10:l11:K2:+s11:pJ8:N9:l13:l12:*s13:l11:",
|
||||
+"/s9:pl9:0=Z11:l10:l14:*s14:pl15:s2:pl14:1/RN11:l14:l9:+s14:pJ10:N7:",
|
||||
+"0R]@r",
|
||||
+"@iF3,5.7,9,11,12,13,16,14,15[l0:KA:#Z1:l0:s7:pKA:s0:pl5:C3,0:",
|
||||
+"s14:pl7:s0:pl14:RN1:l2:s15:pK1.1:l15:*K2:+s2:p1C4,0:s14:pl5:0",
|
||||
+"<Z2:1s12:pl5:ns5:pN2:0s2:pl5:l14:/K2:+K4:/s13:pl5:K4:l13:*l14:",
|
||||
+"*-s5:pl13:K2:%Z3:l5:ns5:pN3:l15:K2:+s2:pl5:s9:s14:pl5:nl5:*s16:",
|
||||
+"pK3:s11:pN5:1B6:J4:N7:l11:K2:+s11:pJ5:N6:l9:l16:l11:l11:1-*/*",
|
||||
+"s9:pl9:0=Z8:l15:s2:pl12:Z9:l14:n1/RN9:l14:1/RN8:l14:l9:+s14:p",
|
||||
+"J7:N4:0R]@r",
|
||||
+"@iF5,5.7,14,15[l0:KA:#Z1:l0:s7:pKA:s0:pl5:C5,0:s14:pl7:s0:pl14:",
|
||||
+"RN1:l2:s15:pl2:K1.2:*s2:pl5:1C4,0:K2:*+C3,0:s14:pl15:s2:pl14:",
|
||||
+"1/R0R]@r",
|
||||
+"@iF4,5.6,7,9,10,11,12,13,16,14,15[l0:KA:#Z1:l0:s7:pKA:s0:pl5:",
|
||||
+"C4,0:s14:pl7:s0:pl14:RN1:1s12:pl5:0<Z2:1ns12:pl5:ns5:pN2:l5:1",
|
||||
+"=Z3:l2:K25:{Z4:K.7853981633974483096156608:l12:/RN4:l2:K40:{Z5:",
|
||||
+"K.7853981633974483096156608458198757210492:l12:/RN5:l2:K60:{Z6:",
|
||||
+"K.785398163397448309615660845819875721049292349843776455243736",
|
||||
+":l12:/RN6:N3:l5:K.2:=Z7:l2:K25:{Z8:K.1973955598498807583700497",
|
||||
+":l12:/RN8:l2:K40:{Z9:K.1973955598498807583700497651947902934475",
|
||||
+":l12:/RN9:l2:K60:{Z10:K.197395559849880758370049765194790293447585103787852101517688",
|
||||
+":l12:/RN10:N7:l2:s15:pl5:K.2:>Z11:l15:K5:+s2:pK.2:C4,0:s6:pN11:",
|
||||
+"l15:K3:+s2:pN12:l5:K.2:>Z13:l10:1+s10:pl5:K.2:-1l5:K.2:*+/s5:",
|
||||
+"pJ12:N13:l5:s13:s14:pl5:nl5:*s16:pK3:s11:pN15:1B16:J14:N17:l11:",
|
||||
+"K2:+s11:pJ15:N16:l13:l16:*s13:l11:/s9:pl9:0=Z18:l15:s2:pl10:l6:",
|
||||
+"*l14:+l12:/RN18:l14:l9:+s14:pJ17:N14:0R]@r",
|
||||
+"@iF6,13,5.6,7,8,9,10,11,12,16,14,15[l0:KA:#Z1:l0:s7:pKA:s0:pl13:",
|
||||
+"l5:C6,00:s14:pl7:s0:pl14:RN1:l2:s15:p0s2:pl13:1/s13:pl13:0<Z2:",
|
||||
+"l13:ns13:pl13:K2:%1=Z3:1s12:pN3:N2:1s10:pK2:s11:pN5:l11:l13:{",
|
||||
+"B6:J4:N7:l11:i11:pJ5:N6:l10:l11:*s10:pJ7:N4:K1.5:l15:*s2:pl5:",
|
||||
+"l13:^K2:l13:^/l10:/s10:p1s9:s14:pl5:nl5:*K4:/s16:pK1.5:l15:*l10:",
|
||||
+"cL+l10:cS-s2:p1s11:pN9:1B10:J8:N11:l11:i11:pJ9:N10:l9:l16:*l11:",
|
||||
+"/l13:l11:+/s9:pl9:0=Z12:l15:s2:pl12:Z13:l10:nl14:*1/RN13:l10:",
|
||||
+"l14:*1/RN12:l14:l9:+s14:pJ11:N8:0R]@r",0}
|
|
@ -1,142 +0,0 @@
|
|||
%global debug_package %{nil}
|
||||
|
||||
Name: bcc
|
||||
Summary: BPF Compiler Collection (BCC)
|
||||
Version: 0.28.0
|
||||
Release: 1%{?dist}
|
||||
License: ASL 2.0
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
Group: Development/Languages
|
||||
URL: https://github.com/iovisor/bcc
|
||||
|
||||
Source0: https://github.com/iovisor/bcc/archive/%{name}-%{version}.tar.gz
|
||||
%define sha512 %{name}=792ce93dba64b1f87390b2602dcaeba04ac8b2863652b06eb9a907b93bc6137a944b856cc6fa9c7a38671c89814740967561ca4f3b29c267babca7dc5e78aa02
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: build-essential
|
||||
BuildRequires: libstdc++
|
||||
BuildRequires: elfutils-libelf-devel-static
|
||||
BuildRequires: elfutils-libelf-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: llvm-devel
|
||||
BuildRequires: clang-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: libbpf-devel
|
||||
BuildRequires: zip
|
||||
|
||||
Requires: curl-libs
|
||||
|
||||
%description
|
||||
BCC is a toolkit for creating efficient kernel tracing and manipulation programs,
|
||||
and includes several useful tools and examples. It makes use of
|
||||
extended BPF (Berkeley Packet Filters), formally known as eBPF,
|
||||
a new feature that was first added to Linux 3.15.
|
||||
Much of what BCC uses requires Linux 4.1 and above.
|
||||
|
||||
%package devel
|
||||
Summary: Shared Library for BPF Compiler Collection (BCC)
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
%{name}-devel contains shared libraries and header files for
|
||||
developing application.
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Python3 bindings for BPF Compiler Collection (BCC)
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description -n python3-%{name}
|
||||
Python bindings for BPF Compiler Collection (BCC)
|
||||
|
||||
%package examples
|
||||
Summary: Examples for BPF Compiler Collection (BCC)
|
||||
Requires: python3-%{name} = %{version}-%{release}
|
||||
|
||||
%description examples
|
||||
Examples for BPF Compiler Collection (BCC)
|
||||
|
||||
%package tools
|
||||
Summary: Command line tools for BPF Compiler Collection (BCC)
|
||||
Requires: python3-%{name} = %{version}-%{release}
|
||||
|
||||
%description tools
|
||||
Command line tools for BPF Compiler Collection (BCC)
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%cmake -DREVISION_LAST=%{version} \
|
||||
-DREVISION=%{version} \
|
||||
-DPYTHON_CMD=%{python3} \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_USE_LIBBPF_PACKAGE=TRUE
|
||||
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
# mangle shebangs
|
||||
find %{buildroot}%{_datadir}/%{name}/{tools,examples} -type f -exec \
|
||||
sed -i -e '1 s|^#!/usr/bin/python$|#!'%{python3}'|' \
|
||||
-e '1 s|^#!/usr/bin/env python$|#!'%{python3}'|' {} \;
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.md
|
||||
%license LICENSE.txt
|
||||
%{_libdir}/lib%{name}.so.*
|
||||
%{_libdir}/lib%{name}_bpf.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_libdir}/lib%{name}_bpf.so
|
||||
%{_libdir}/*.a
|
||||
%{_libdir}/pkgconfig/lib%{name}.pc
|
||||
%{_includedir}/%{name}/
|
||||
|
||||
%files -n python3-%{name}
|
||||
%defattr(-,root,root)
|
||||
%{python3_sitelib}/%{name}*
|
||||
|
||||
%files examples
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/%{name}/examples/*
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/%{name}/introspection/*
|
||||
%{_datadir}/%{name}/tools/*
|
||||
%{_datadir}/%{name}/man/*
|
||||
|
||||
%changelog
|
||||
* Sun Aug 27 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.28.0-1
|
||||
- Upgrade to v0.28.0
|
||||
* Tue Jul 11 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.25.0-4
|
||||
- Bump version as a part of elfutils upgrade
|
||||
* Fri Jan 06 2023 Vamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com> 0.25.0-3
|
||||
- Bump up due to change in elfutils
|
||||
* Tue Dec 06 2022 Prashant S Chauhan <psinghchauha@vmware.com> 0.25.0-2
|
||||
- Update release to compile with python 3.11
|
||||
* Tue Sep 27 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.25.0-1
|
||||
- Upgrade to v0.25.1
|
||||
* Mon Jun 20 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.19.0-2
|
||||
- Use cmake macros for build and install
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 0.19.0-1
|
||||
- Automatic Version Bump
|
||||
* Wed Jul 22 2020 Gerrit Photon <photon-checkins@vmware.com> 0.16.0-1
|
||||
- Automatic Version Bump
|
||||
* Wed Jun 26 2019 Keerthana K <keerthanak@vmware.com> 0.10.0-1
|
||||
- Initial bcc package for PhotonOS.
|
|
@ -1,196 +0,0 @@
|
|||
%define _bind_user named
|
||||
%define _bind_group named
|
||||
%define _home_dir %{_sharedstatedir}/bind
|
||||
|
||||
Summary: Domain Name System software
|
||||
Name: bindutils
|
||||
Version: 9.19.14
|
||||
Release: 5%{?dist}
|
||||
License: ISC
|
||||
URL: http://www.isc.org/downloads/bind
|
||||
Group: Development/Tools
|
||||
Vendor: VMware, Inc.
|
||||
Distribution: Photon
|
||||
|
||||
Source0: https://ftp.isc.org/isc/bind9/%{version}/bind-%{version}.tar.xz
|
||||
%define sha512 bind=7cafb7aeb6471d9b219db7a3fb3ce8a428bf661eb8fa532b16fa2a9054b67661c30eff97f6ff18fdef340e9b717c82b01d55bb0297ccca2388915d5ebfc188bb
|
||||
|
||||
Source1: %{name}.sysusers
|
||||
|
||||
Requires: krb5
|
||||
Requires: e2fsprogs-libs
|
||||
Requires: openssl-libs
|
||||
Requires: libuv
|
||||
Requires: userspace-rcu
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires(pre): systemd-rpm-macros
|
||||
Requires(postun): /usr/sbin/userdel /usr/sbin/groupdel
|
||||
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: libuv-devel
|
||||
BuildRequires: nghttp2-devel
|
||||
BuildRequires: libcap-devel
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: krb5-devel
|
||||
BuildRequires: e2fsprogs-devel
|
||||
BuildRequires: userspace-rcu-devel
|
||||
|
||||
%description
|
||||
BIND is open source software that implements the Domain Name System (DNS) protocols
|
||||
for the Internet. It is a reference implementation of those protocols, but it is
|
||||
also production-grade software, suitable for use in high-volume and high-reliability applications.
|
||||
|
||||
%package libs
|
||||
Summary: Libraries used by the BIND DNS packages
|
||||
Group: Development/Libraries
|
||||
|
||||
%description libs
|
||||
Contains heavyweight version of BIND suite libraries used by both named DNS
|
||||
server and utilities in bindutils package.
|
||||
|
||||
%package devel
|
||||
Summary: Header files and libraries needed for bind-dyndb-ldap
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The bindutils-devel package contains full version of the header files and libraries.
|
||||
Upstream no longer supports nor recommends bind libraries for third party applications.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n bind-%{version}
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--without-python \
|
||||
--disable-static
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
|
||||
mkdir -p %{buildroot}{%{_sysconfdir},%{_tmpfilesdir},%{_home_dir}}
|
||||
|
||||
cat << EOF >> %{buildroot}/%{_sysconfdir}/named.conf
|
||||
zone "." in {
|
||||
type master;
|
||||
allow-update {none;}; // no DDNS by default
|
||||
};
|
||||
EOF
|
||||
echo "d /run/named 0755 named named - -" > %{buildroot}%{_tmpfilesdir}/named.conf
|
||||
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.sysusers
|
||||
|
||||
%posttrans
|
||||
if [ $1 -eq 1 ]; then
|
||||
%sysusers_create_compat %{SOURCE1}
|
||||
fi
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
chown -R root:%{_bind_user} %{_home_dir}
|
||||
chmod 0770 %{_home_dir}
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%{_sysconfdir}/*
|
||||
%{_tmpfilesdir}/named.conf
|
||||
%{_mandir}/man1/*
|
||||
%{_sysusersdir}/%{name}.sysusers
|
||||
%{_home_dir}
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libdns.so
|
||||
%{_libdir}/libisc.so
|
||||
%{_libdir}/libisccc.so
|
||||
%{_libdir}/libisccfg.so
|
||||
%{_libdir}/libns.so
|
||||
%{_libdir}/libisccc-%{version}*.so
|
||||
%{_libdir}/libns-%{version}*.so
|
||||
%{_libdir}/libdns-%{version}*.so
|
||||
%{_libdir}/libisc-%{version}*.so
|
||||
%{_libdir}/libisccfg-%{version}*.so
|
||||
%{_libdir}/bind/*.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/ns/*.h
|
||||
%{_includedir}/dns/*.h
|
||||
%{_includedir}/dst/*.h
|
||||
%{_includedir}/isc/*.h
|
||||
%{_includedir}/irs/*.h
|
||||
%{_includedir}/isccc/*.h
|
||||
%{_includedir}/isccfg/*.h
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 9.19.14-5
|
||||
- Bump version as a part of openssl upgrade
|
||||
* Wed Oct 11 2023 Shreenidhi Shedi <sshedi@vmware.com> 9.19.14-4
|
||||
- Change home directory permission & owner
|
||||
* Tue Aug 08 2023 Mukul Sikka <msikka@vmware.com> 9.19.14-3
|
||||
- Resolving systemd-rpm-macros for group creation
|
||||
* Fri Jul 28 2023 Srish Srinivasan <ssrish@vmware.com> 9.19.14-2
|
||||
- Bump version as a part of krb5 upgrade
|
||||
* Thu Jun 22 2023 Dweep Advani <dadvani@vmware.com> 9.19.14-1
|
||||
- Upgrade to 9.19.14
|
||||
* Mon May 15 2023 Mukul Sikka <msikka@vmware.com> 9.19.7-4
|
||||
- Resolving systemd user creation issue
|
||||
* Fri Mar 10 2023 Mukul Sikka <msikka@vmware.com> 9.19.7-3
|
||||
- Use systemd-rpm-macros for user creation
|
||||
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 9.19.7-2
|
||||
- Add dependencies for realm support in nsupdate for SSSD.
|
||||
* Tue Dec 13 2022 Gerrit Photon <photon-checkins@vmware.com> 9.19.7-1
|
||||
- Automatic Version Bump
|
||||
* Thu May 26 2022 Gerrit Photon <photon-checkins@vmware.com> 9.19.4-1
|
||||
- Automatic Version Bump
|
||||
* Wed Mar 30 2022 Dweep Advani <dadvani@vmware.com> 9.18.1-1
|
||||
- Version upgraded to 9.18.1 to address CVE-2021-25220 and CVE-2022-0396
|
||||
- Add libs & devel sub packages
|
||||
* Tue Mar 29 2022 Tapas Kundu <tkundu@vmware.com> 9.16.15-3
|
||||
- Do not remove user and group in postun unless uninstalled
|
||||
* Fri Nov 12 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 9.16.15-2
|
||||
- Bump up release for openssl
|
||||
* Mon Jun 07 2021 Sujay G <gsujay@vmware.com> 9.16.15-1
|
||||
- Bump version to 9.16.15
|
||||
* Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 9.16.13-1
|
||||
- Automatic Version Bump
|
||||
* Thu Oct 01 2020 Sujay G <gsujay@vmware.com> 9.16.6-1
|
||||
- Bumper version to 9.16.6
|
||||
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 9.16.4-2
|
||||
- openssl 1.1.1
|
||||
* Fri Jul 10 2020 Sujay G <gsujay@vmware.com> 9.16.4-1
|
||||
- Bump version to 9.16.4 to fix CVE-2020-8618 & CVE-2020-8619
|
||||
* Tue Jun 02 2020 Sujay G <gsujay@vmware.com> 9.16.3-1
|
||||
- Bump version to 9.16.3
|
||||
* Thu Jan 09 2020 Sujay G <gsujay@vmware.com> 9.15.5-1
|
||||
- Bump bindutils version to 9.15.5
|
||||
* Sun Sep 23 2018 Sujay G <gsujay@vmware.com> 9.13.3-1
|
||||
- Bump bindutils version to 9.13.3
|
||||
* Mon Feb 12 2018 Xiaolin Li <xiaolinl@vmware.com> 9.10.6-1
|
||||
- Upgrading version to 9.10.6-P1, fix CVE-2017-3145
|
||||
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 9.10.4-4
|
||||
- Remove shadow from requires and use explicit tools for post actions
|
||||
* Fri Apr 14 2017 Kumar Kaushik <kaushikk@vmware.com> 9.10.4-3
|
||||
- Upgrading version to 9.10.4-P8
|
||||
* Mon Nov 21 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 9.10.4-2
|
||||
- add shadow to requires
|
||||
* Mon Jun 06 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 9.10.4-1
|
||||
- Upgraded the version to 9.10.4
|
||||
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 9.10.3-3
|
||||
- GA - Bump release of all rpms
|
||||
* Fri Apr 29 2016 Xiaolin Li <xiaolinl@vmware.com> 9.10.3-2
|
||||
- Add group named and user named
|
||||
* Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 9.10.3-1
|
||||
- Updated to version 9.10.3
|
||||
* Tue Aug 11 2015 Divya Thaluru <dthaluru@vmware.com> 9.10.1-1
|
||||
- Fixing release
|
||||
* Tue Jan 20 2015 Divya Thaluru <dthaluru@vmware.com> 9.10.1-P1
|
||||
- Initial build. First version
|
|
@ -1,2 +0,0 @@
|
|||
g named -
|
||||
u named - "" /var/lib/bind /bin/false
|
|
@ -1,34 +0,0 @@
|
|||
From ef186fe54aa6d281a3ff8a9528417e5cc614c797 Mon Sep 17 00:00:00 2001
|
||||
From: Alan Modra <amodra@gmail.com>
|
||||
Date: Sat, 13 Aug 2022 15:32:47 +0930
|
||||
Subject: [PATCH] PR29482 - strip: heap-buffer-overflow
|
||||
|
||||
PR 29482
|
||||
* coffcode.h (coff_set_section_contents): Sanity check _LIB.
|
||||
---
|
||||
bfd/coffcode.h | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
|
||||
index 67aaf158ca1..52027981c3f 100644
|
||||
--- a/bfd/coffcode.h
|
||||
+++ b/bfd/coffcode.h
|
||||
@@ -4302,10 +4302,13 @@ coff_set_section_contents (bfd * abfd,
|
||||
|
||||
rec = (bfd_byte *) location;
|
||||
recend = rec + count;
|
||||
- while (rec < recend)
|
||||
+ while (recend - rec >= 4)
|
||||
{
|
||||
+ size_t len = bfd_get_32 (abfd, rec);
|
||||
+ if (len == 0 || len > (size_t) (recend - rec) / 4)
|
||||
+ break;
|
||||
+ rec += len * 4;
|
||||
++section->lma;
|
||||
- rec += bfd_get_32 (abfd, rec) * 4;
|
||||
}
|
||||
|
||||
BFD_ASSERT (rec == recend);
|
||||
--
|
||||
2.31.1
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue