Commit Graph

437 Commits

Author SHA1 Message Date
Jason Tibbitts b725d1e38a Bump version/update changelog. 2018-11-08 08:34:28 -06:00
Igor Gnatenko 65fc49d917
bump version
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-10-22 11:09:13 +02:00
Igor Gnatenko 39fa88418c
bump version
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-10-20 12:32:45 +02:00
Nicolas Mailhot c70110c677
forge: refactor to allow multiple calls
– permit extraction of multiple archives in a single specfile
   – %forgemeta, %forgesetup, %forgeautosetup: add a “-z <number>” switch to
     select a specific set of rpm variables
     (for example forgeurl<number> and version<number>)
   – %forgemeta, %forgesetup: add a “-a” switch to process all sets in one go
     (makes no sense in forgeautosetup, as you need so select specific patches)
   – %forgemeta: deprecate the “-u” switch, use “-z” it’s better
     (“-u” was awkward and mainly used by the %gometa macro. %gometa will now
      call the lua code directly)
 – %forgesetup: use “-v” for verbose processing, be quiet by default, drop “-q”
   (align with %forgemeta, %forgeautosetup and %autosetup)
 – %forgesetup, %forgeautosetup: only pass flags that make sense to
   %setup/%autosetup; reorder to match what works in el7
 – factor out complex or common lua code in separate lua modules, to allow:
   – code reuse in other macros without cut and pasting
   – direct lua routine invocation from other macros without going through a
     rpm macro
   – rpm syntax errors that point to a line in an actual lua file
 – %forgemeta: refactor the logic to drop as much forge-specific code as
   possible, use a single logic flow with tables of constants
 – %forgemeta: export more computed info in rpm variables, such as the
   %{_builddir} subdirectory an archive was extracted to (lifesaver when
   processing multiple archives)
 – %forgemeta: prepend secondary distprefixes with .S, to make clear they do
    not apply to the main archive
 – %forgemeta: add versionx to secondary distprefixes, if relevant
 – %forgemeta: make tar.bz2 the default archive format

Caveats:
 – forge services implement full-release downloads via tags. However the actual
   syntax of such tags is not standardised. If the macro does not guess the
   correct tag an upstream uses for a specific release, you will need to
   set the tag value explicitly.
 – GitHub lets upstreams move their projects to new URLs, keeping the old URL
   active. It all works transparently *except* the top directory inside
   generated archives always matches the new project name (even when accessed
   by compatibility URLs, and even for releases that antedate the renaming).
   Therefore, if macro processing of a GitHub archive suddenly fails, start by
   checking if upstream didn’t rename itself.

Multicall usage example (with “-a”)
 – to process a specific bloc in one of the macros use “-z <suffix>”
 – suffix 0 and no suffix are synonyms
 – therefore, calling the macros without “-a” or “-z” just works for the
   general use case when you have a single archive to process
 – caveat: forge services implement full-release

%<--
%global forgeurl0        https://gitlab.com/osslugaru/lugaru
Version:                 1.2

%global forgeurl1        https://gitlab.com/osslugaru/lugaru
%global tag1             1.1

%global forgeurl2        https://gitlab.com/osslugaru/lugaru
%global commit2          68488b0a11df90dca703c67e5592b93c6a269957

%global forgeurl3        https://gitlab.com/osslugaru/lugaru
%global branch3          v1.1

%global forgeurl4       https://github.com/google/trillian
%global version4        1.0.8

%global forgeurl5       https://github.com/kubernetes/apiextensions-apiserver
%global version5        1.9.6
%global tag5            kubernetes-%{version5}

%global forgeurl6        https://github.com/jdbranham/grafana-diagram
%global version6         1.3
%global commit6          440689793ab6da82019c5ee43b49438dfef976d5

%global forgeurl7        https://github.com/rethinkdb/rethinkdb-go
%global version7         1.4.2
%global branch7          v1

%global forgeurl8        https://code.googlesource.com/gocloud
%global version8         0.20.0

%global forgeurl9        https://code.googlesource.com/gocloud
%global tag9             v0.27.0

%global forgeurl10      https://code.googlesource.com/google-api-go-client
%global commit10        24928b980e6919be4c72647aacd53ebcbb8c4bab
%global version10       0

%global forgeurl11      https://code.googlesource.com/google-api-go-client
%global branch11        dartman

%global forgeurl12      https://bitbucket.org/nielsenb/pdfocr
%global version12       0.3.0
%global commit12        4f5750d202d33267094621630836f1215a5efa66

%global forgeurl13      https://bitbucket.org/nielsenb/pdfocr
%global version13       0.1.4
%global tag13           v0.1.4
%global commit13        c0359843a3420769940e12019ebd68891a053bd8

%global forgeurl14      https://bitbucket.org/creachadair/shell
%global commit14        3dcd505a7ca5845388111724cc2e094581e92cc6

%global forgeurl15      https://bitbucket.org/kirbyvisp/vdjpuzzle2/
%global branch15        js-edits
%global commit15        36a3850eb4a04c05e0f7e29e7d0c196f373eb672

%forgemeta -ia

Name:           testing
Release:        1%{?dist}
Summary:        A test package

URL:            %{forgeurl}
License:        Public domain

Source0:        %{forgesource0}
Source1:        %{forgesource1}
Source2:        %{forgesource2}
Source3:        %{forgesource3}
Source4:        %{forgesource4}
Source5:        %{forgesource5}
Source6:        %{forgesource6}
Source7:        %{forgesource7}
Source8:        %{forgesource8}
Source9:        %{forgesource9}
Source10:       %{forgesource10}
Source11:       %{forgesource11}
Source12:       %{forgesource12}
Source13:       %{forgesource13}
Source14:       %{forgesource14}
Source15:       %{forgesource15}

%description
A test package

%prep
%forgesetup -a

%build
exit 1

%install

%files
%doc
%<--

Merges: https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/35
2018-10-20 12:26:43 +02:00
Jan Pazdziora e3e0ba6ab7 Add %_swidtagdir for directory for SWID tag files describing the installation.
Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com>
2018-10-11 14:26:10 +02:00
Miro Hrončok b852a706ad Make ambiguous python shebangs error
See https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error
2018-09-10 18:26:02 +02:00
Kalev Lember 9278251531 Add aarch64 to ldc arches 2018-08-20 22:33:04 +02:00
Igor Gnatenko 357550f7ba
Enable --as-needed by default
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-15 07:00:14 +02:00
Miro Hrončok 973e5c7052 Mangle /bin shebangs to /usr/bin ones (#1581757) 2018-07-19 12:34:53 +02:00
Igor Gnatenko 85e473f982
Add option to add -Wl,--as-needed into LDFLAGS
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-10 16:41:33 +02:00
Kalev Lember 9a15f27f34 Disable non-functional ppc64 support for ldc packages
Sadly, ldc ppc64 support has detoriated so much that it no longer works
with any current llvm version. I'll keep an eye on things and re-enable
it once it's fixed, but right now it's just broken and upstream is
suggesting to disable the support for now.

https://github.com/ldc-developers/ldc/issues/2356
2018-07-09 12:24:57 +02:00
Panu Matilainen a62764b8e8 - Fix kernel ABI related strings (Peter Oros, #26)
- Automatically trim changelog to two years (Zbigniew Jędrzejewski-Szmek, #22)
- Cosmetics cleanups (Zbigniew Jędrzejewski-Szmek, #22)
2018-06-26 13:44:59 +03:00
Panu Matilainen aa24434396 Merge #22 `Automatically trim changelog entries after 2 years` 2018-06-26 10:40:16 +00:00
Florian Weimer a5c98437e2 Build flags: Require SSE2 on i686 (#1592212) 2018-06-18 11:48:31 +02:00
Miro Hrončok c7d6417a3b Add a possibility to opt-out form automagic Python bytecompilation
That is, outside of Python specific directories.

More at https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation
2018-05-28 14:26:20 +02:00
Peter Jones f7e8f73ead brp-mangle-shebangs: make it possible to use generated exclusion lists
This patch adds two additional rpm macros, __brp_mangle_shebangs_exclude_file
and __brp_mangle_shebangs_exclude_from_file, to specify files from which
to read the extended regexps used for excluding shebangs and target
files.

Additionally, this adds documentation in the macros file and
--help/--usage/-?/-h to brp-mangle-shebangs, so that it's possible to
actually discover what the intended behavior is without reading the
script itself.

Signed-off-by: Peter Jones <pjones@redhat.com>
2018-05-02 14:38:46 -04:00
Florian Weimer f25f1b7627 Reflect -fasynchronous-unwind-tables GCC default on POWER (#1550914) 2018-05-02 11:55:12 +02:00
Florian Weimer 6b620c91fb Use plain -fcf-protection compiler flag, without -mcet (#1570823) 2018-05-02 11:39:39 +02:00
Peter Jones 60cf200c3c Add Requires: efi-srpm-macros for %{efi}
Signed-off-by: Peter Jones <pjones@redhat.com>
2018-05-01 16:00:40 -04:00
Jason Tibbitts fdbb98bd99 Add %_metainfodir macro.
An intervening commit added a fix to %forgeautosetup, but the specfile
was not updated.  I indicated the fix in the %changelog.
2018-04-20 12:05:38 -05:00
Zbigniew Jędrzejewski-Szmek f843bf828a Drop Group tag and period from Summary 2018-03-11 14:52:54 +01:00
Jason Tibbitts b771d1efaf Update forge macros. 2018-03-05 10:22:04 -06:00
Florian Weimer 8deb29e50a Make -fasynchronous-unwind-tables explicit on aarch64 (#1536431)
This reflects the default built into GCC.
2018-02-28 14:49:24 +01:00
Florian Weimer d5133f9acc Use -funwind-tables on POWER
Ideally, the GCC defaults should change as well, but let's put this into
redhat-rpm-config, too, similarly to -fasynchronous-unwind-tables.
2018-02-28 10:45:12 +01:00
Igor Gnatenko 71d7440127
ldconfig: make %ldconfig_post/%ldconfig_postun parameterized
If %ldconfig is not defined, then "%ldconfig_post/%ldconfig_postun foo"
will expand to " foo" which is breaking packages.

Also now it is possible to move %end into post/postun.

Reported-by: Terje Røsten <terjeros@phys.ntnu.no>
References: https://bugzilla.redhat.com/show_bug.cgi?id=1548331
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-25 07:11:46 +01:00
Florian Weimer a4ec7ec768 Update release and changelog 2018-02-24 21:38:00 +01:00
Florian Weimer 910c8585f3 Update release and changelog 2018-02-24 17:40:55 +01:00
Miro Hrončok 8f59b756ca Don't mangle shebangs with whitespace only changes (#1546993) 2018-02-22 11:12:28 +01:00
Igor Gnatenko 987e94f6ea
Move %end to %ldconfig_scriptlets
If people choose to use %ldconfig_post/%ldconfig_postun, let them to
deal with %end.

Reported-by: Harald Reindl <h.reindl@thelounge.net>
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1547838
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-22 07:58:50 +01:00
Igor Gnatenko 17746cb929
macros.ldconfig: %end section immediately
Some people tend to use comments in spec files which adds them into the
scriptlet and we don't want this.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-17 13:51:42 +01:00
Miro Hrončok fb05a239d2
Allow to opt-out from shebang mangling for specific paths/shebangs
Introduces __brp_mangle_shebangs_exclude_from and __brp_mangle_shebangs_exclude

 * the first allows to explude specific paths from the mangling
 * the second allows to exlude specific shebangs

Both are used with `grep -E`. Similar escaping rules as in [1] apply.

[1] https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering
2018-02-15 08:47:54 +01:00
Igor Gnatenko 51f1c66748
brp-mangle-shebangs: Simplify/Fix check for shebang starting with "/"
Reported-by: Jun Aruga <jaruga@redhat.com>
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1541057
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-08 10:38:45 +01:00
Igor Gnatenko 8444cee8f3
bump release
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-07 18:24:10 +01:00
Florian Weimer fa08f0e5a1 Add RPM macros for compiler/linker flags 2018-02-04 18:00:40 +01:00
Igor Gnatenko 222670e2e7
Use newly available /usr/bin/grep
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-03 18:29:37 +01:00
Peter Robinson 07dea7d44f Use generic tuning for ARMv7 2018-01-31 09:34:18 +00:00
Jason Tibbitts 9ac5353554 Fix bad dependency on grep. 2018-01-30 20:23:24 -06:00
Miro Hrončok 00b0603754 Explicitly require stuff for brp-mangle-shebangs
Except what is in coreutils (already required)
2018-01-30 22:08:52 +01:00
Miro Hrončok 257a3a95c7 Add brp-mangle-shebangs 2018-01-30 13:31:25 +01:00
Igor Gnatenko 1591a6fbf8
Add macros.ldconfig
With https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
we try to remove ldconfig scriptlets, but it would make every package
look horrible with all those conditionals. So let's just wrap ldconfig
scriptlets into macro so it doesn't look that horrible and error-prone.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-30 08:23:10 +01:00
Igor Gnatenko 7a29d55964
typo: fix day of week
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-29 17:30:29 +01:00
Igor Gnatenko 12ace9bdb9 Create DSO symlinks automatically
If there are unpackaged symlinks, build will fail with unpackaged files.
People can %undefine __brp_ldconfig if they need to and they should make
sure that they call ldconfig themselves.

Right now, script doesn't guide packagers what to do, but it's not
prerequisite.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-29 16:41:52 +01:00
Florian Weimer 8d6c6d0761 Build flags: Disable -z defs again (#1535422) 2018-01-29 15:18:11 +01:00
Florian Weimer 1b296f01fc Build flags: Enable CET on i686, x86_64 (#1538725) 2018-01-29 15:18:11 +01:00
Florian Weimer 6e5a75d61e Build flags: Switch to generic tuning on i686 (#1538693)
This matches what the gcc package already does by default.
2018-01-25 16:22:54 +01:00
Florian Weimer 078af19261 Link with -z defs by default (#1535422) 2018-01-22 16:01:54 +01:00
Florian Weimer 75a53b7ea3 Make armhfp flags consistent with GCC defaults 2018-01-22 15:41:54 +01:00
Florian Weimer e43ce312b7 Make use of -fasynchronous-unwind-tables more explicit (#1536431) 2018-01-22 15:17:14 +01:00
Florian Weimer faa1ad44f7 Remove --param=ssp-buffer-size=4 from build flags
-fstack-protector-strong does not use frame size heuristics for
deciding which functions to instrument, so changing the parameter has
no effect.
2018-01-22 14:30:12 +01:00
Florian Weimer 0d162176e9 Document build flags 2018-01-22 14:28:15 +01:00
Panu Matilainen 3bf139f646 Document how to disable hardened and annotated build (#1211296) 2018-01-19 12:21:06 +02:00
Panu Matilainen a747e7fb51 Fix the inevitable embarrassing typo in 77, doh 2018-01-17 12:57:53 +02:00
Panu Matilainen c4646d791d Macroize build root policies for consistent disable/override ability
Add a separate macro for each brp we have, using standard naming
convention and conditionalize the usage in %__os_install_post.
Voilà, we have a standard way to disable (and also override) any brp
scripts from specs that need it and a common scheme for new brps
to follow.

Note that this is not supposed to change the existing behavior and
default build root policy invocations at all, any change in those
would be a thinko/typo/copy-paste error in this commit.
2018-01-17 12:29:44 +02:00
Florian Weimer 42f29f31df Add -fstack-clash-protection for supported architectures (#1515865)
Avoid it on architectures which have only generic GCC support (such as
armv7hl).
2018-01-17 10:14:56 +01:00
Florian Weimer 6c35c254c2 Add _GLIBCXX_ASSERTIONS to CFLAGS/CXXFLAGS (#1515858) 2018-01-17 10:14:18 +01:00
Igor Gnatenko 7ab7ab048c Remove Requires: cmake-rpm-macros
It doesn't belong to redhat-rpm-config which is about *srpm* buildtime..

This reverts commit ea5600c887.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-15 23:28:09 +01:00
Jason Tibbitts 7c4cd33085 Add macros.forge.
Add macros to simplify the packaging of forge-hosted projects.
* https://bugzilla.redhat.com/show_bug.cgi?id=1523779
* https://fedoraproject.org/wiki/Forge-hosted_projects_packaging_automation
2018-01-11 17:49:08 -06:00
Sergey Avseyev ebb7ec32a4 Add Requires: nim-srpm-macros for %nim_arches 2018-01-03 12:43:14 +02:00
Igor Gnatenko bbf2e891aa Require annobin only if gcc is installed
Since b5ea4b290b we started to require gcc
(because annobin requires gcc). Since annobin does work only with gcc,
we don't have to install it if user doesn't have it.

Reported-by: Dominick Grift <dac.override@gmail.com>
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-02 12:56:19 +01:00
Björn Esser ea5600c887
Add Requires: cmake-rpm-macros for CMake auto-{provides,requires} (#1498894) 2017-12-21 16:12:02 +01:00
Panu Matilainen b9d5eecd65 Update URL to current location at src.fedoraproject.org 2017-12-08 14:32:21 +02:00
Nick Clifton b5ea4b290b Enable binary annotations in compiler flags 2017-11-22 12:41:44 +01:00
Troy Dawson fb76fd5200 Remove Requires: fedora-rpm-macros
- fedora-rpm-macros only contains a file with just a comment
 - If the package ever gets content we can add it back
2017-10-26 07:00:37 -07:00
Igor Gnatenko 1e879960b4 fix typo in changelog
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-03 15:43:01 +02:00
Igor Gnatenko 6d23bc8dc0 bump version
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-07-31 14:45:19 +02:00
Igor Gnatenko 00e8557ba2 Move _debuginfo_subpackages and _debugsource_packages from rpm (RHBZ #1476735)
References: https://bugzilla.redhat.com/show_bug.cgi?id=1476735
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-07-31 14:45:08 +02:00
Igor Gnatenko f6596a4ca5 Define _include_gdx_index (RHBZ #1476722)
References: https://bugzilla.redhat.com/show_bug.cgi?id=1476722
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-07-31 14:43:55 +02:00
Robin Lee bc1c35fe61 Make %kernel_module_package actually honor %kmodtool_generate_buildreqs 2017-07-18 14:42:07 +02:00
Igor Gnatenko 2cb318efe9 Add Requires: rust-srpm-macros for %rust_arches
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-07-13 16:52:55 +02:00
Orion Poplawski 38d4bf84e7 Add Requires: openblas-srpm-macros for %openblas_arches 2017-03-15 15:03:00 -06:00
Dan Horák 4914809dca - set zEC12 as minimum architecture level for s390(x) (#1404991) 2017-02-02 12:26:14 +01:00
Jason Tibbitts 905b8bae64 Add macros.vpath from FPC ticket 655
https://fedorahosted.org/fpc/ticket/655
2016-12-15 13:05:41 -06:00
Adam Williamson 6dc72405b3 Revert #1393492 changes, they break far too many builds
Per fweimer: "Sorry, we need to revert the -Werror=implicit-*
bits.  There is no chance we can get this working in any
reasonable time frame, there is simply too much breakage."
2016-12-06 14:45:53 -08:00
Panu Matilainen 4edc01803a Actually bump version too. Sigh, again... 2016-11-30 13:52:35 +02:00
Panu Matilainen beb08c6bba Error on implicit function declaration and -return type for C (#1393492)
Add -Werror=implicit-function-declaration -Werror=implicit-int to
global cflags as per https://fedoraproject.org/wiki/Changes/Fedora26CFlags
2016-11-30 13:51:10 +02:00
Panu Matilainen 3081c4e7d5 Introduce macros for language specific compiler options
Introduce new language specific __global_fooflags for C, C++ and Fortran
This looks mildly strange and suspicious since because the global flags
get pulled in indirectly via %optflags (that doesn't change here but becomes
more obvious).

Depends on previous commit (8fe5b07871)
which was done separately to make the actual change (or lack of thereof)
stand out here.

This is not supposed to change any actual values for current usages,
so if it does it's a bug.

However there's a minor bonus involved for Fortran users who can now get
the correct FFLAGS/FCFLAGS for non-autoconf projects too by using
__global_fflags/fcflags
2016-11-30 13:41:57 +02:00
Panu Matilainen 5815b8dba9 Argh, remember to bump version too 2016-11-29 10:20:53 +02:00
Panu Matilainen c6dadedc03 Drop atom optimization on i686 (#1393492)
Implements the first half of:
https://fedoraproject.org/wiki/Changes/Fedora26CFlags
2016-11-29 10:19:51 +02:00
Dan Horák af1538f1bd - set z10 as minimum architecture level for s390(x) 2016-11-15 11:17:07 +01:00
Panu Matilainen d95e9bc7b6 Fix directory name mismatch in kernel_source macro (#648996)
Patch from  Jacob Keller.
2016-11-11 09:34:23 +02:00
Panu Matilainen cf7406787b Add default compiler flags for various MIPS architectures (#1366735) 2016-11-08 16:42:14 +02:00
Panu Matilainen b1a45b244e -pie is incompatible with static linkage (#1343892, #1287743)
The hardened gcc specs do not handle static linkage, so building
with -static has been broken since commit
d9235d2d90. Adjust the -ld spec
file to avoid -pie when static linkage is used, as suggested
by Florian Weimer.
2016-11-08 15:21:31 +02:00
Panu Matilainen 3234495f75 Drop unwanted + unused brp-* scripts
If java people say brp-java-repack-jars is not needed then it
probably isn't (#1235770). brp-implant-ident-static hasn't been enabled
in 13+ years, I THINK it's safe to say its not critically needed.

Leaving the actual scripts in the repo for now (amusement for
archeologists of future generations, eh?)
2016-11-07 16:14:38 +02:00
Lubomir Rintel 08a5bbb161 Add valgrind_arches macro for BuildRequires of valgrind (#1334599) 2016-11-07 15:50:01 +02:00
Stephen Gallagher 4fdceaa4c5 Add s390x build target for Node.js packages (#1391999) 2016-11-07 15:30:35 +02:00
Kalev Lember e9cc9d94a3 Add ldc_arches macro 2016-10-30 18:08:19 +01:00
Jason Tibbitts 9a4753b3e4 Remove hardcoded limit of 16 CPUs for make -j
There was a hardcoded limit of 16 on the value passed to make -j.  This
has been removed.  See
https://bugzilla.redhat.com/show_bug.cgi?id=1384938
2016-10-17 13:47:22 -05:00
Richard W.M. Jones c602b415e0 Update config.guess, config.sub to the latest versions from upstream.
These support the riscv64 architecture.
2016-10-13 16:28:32 +01:00
Peter Robinson 47427a213e Enable aarch64 for mono arches 2016-10-12 12:44:52 +01:00
Jason Tibbitts a0145ecd2f Add %_configure_disable_silent_rules
Adds %_configure_disable_silent_rules, defaulting to 0, to optionally
enable the passing of --disable-silent-rules to configure scripts.
2016-10-03 12:55:00 -05:00
Jason Tibbitts 4824deaead Add dependency on qt5-srpm-macros. 2016-09-14 08:44:10 -05:00
Jason Tibbitts a5fc6e4b82 Well that was dumb; depend on the correct package. 2016-08-12 19:00:43 -05:00
Jason Tibbitts 704d7c0546 Add fedora-rpm-macros dep. 2016-08-12 18:42:36 -05:00
Jason Tibbitts 8e03aee432 Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/redhat-rpm-config 2016-08-11 17:19:15 -05:00
Petr Písař e5530da0dc Mandatory Perl build-requires added <https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl> 2016-06-24 09:40:22 +02:00
Jason Tibbitts 818514ea62 Fix some trailing whitespace. 2016-04-12 19:45:59 -05:00
Jason Tibbitts 77e91e6469 Add fpc-srpm-macros dep. 2016-04-12 11:08:38 -05:00
Jason Tibbitts be53b9b3c2 Add a file for miscellaneous macros. 2016-04-11 21:41:45 -05:00
Fedora Release Engineering e29e82243c - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 22:03:37 +00:00
Dan Hor?k 945c0e15a3 - switch to -mcpu=power8 for ppc64le default compiler flags 2016-02-02 08:41:26 +01:00
Orion Poplawski 1e513b70c5 Escape macros in %changelog 2016-01-13 09:16:46 -07:00
Orion Poplawski fc07b2aa54 Add Requires: python-srpm-macros 2016-01-13 09:06:53 -07:00
Peter Robinson 3b1087c6c7 Add missing ARMv6 optflags 2016-01-08 00:36:58 +00:00
Peter Robinson cba4f80fea nodejs 4+ now supports aarch64 and power64 2015-12-02 17:28:31 +00:00
Florian Festi ba49b89375 - Add Requires: go-srpm-macros
- Resolves: #1243922
2015-07-17 15:08:03 +02:00
Sandro Mani 5c2b556b6a Use %__libsymlink_path instead of %__libsymlink_exclude_path in libsymlink.attr 2015-07-15 10:39:19 +02:00
Adam Jackson b19da6ace4 Fix cc1 specs mishandling of incremental linking 2015-07-08 13:49:53 -04:00
Dennis Gilmore 5fab7c250f - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 22:12:53 +00:00
Dan Horák b3b65bcefd - Mono 4 adds support for ppc64le 2015-06-05 12:37:35 +02:00
Florian Festi a91c848b8a - Support out of source builds for %_configure_gnuconfig_hack (#1191788)
- Fix typo in %kernel_module_package (#1159361)
2015-05-29 16:54:33 +02:00
Florian Festi db967d3586 - Add %py_auto_byte_compile macro controlling Python bytecompilation
(#976651)
2015-05-19 13:28:55 +02:00
Florian Festi cdfb917815 Fix libsymlink.attr for new magic pattern for symlinks (#1207945) 2015-04-29 15:12:24 +02:00
Adam Jackson 5568cb1c38 Fix ld specs mishandling of incremental linking 2015-04-08 09:29:03 -04:00
Till Maas d9235d2d90 Enable hardened_build by default 2015-02-19 18:13:04 +01:00
Dan Horák 3cc8292af7 - Explicitly set -mcpu/-mtune for ppc64p7 and ppc64le to override rpm defaults 2014-12-10 17:53:28 +01:00
Panu Matilainen 226d76f65b - Gnat macros are now in a package of their own (#1133632) 2014-09-22 11:30:22 +03:00
Dan Horák ff30293d77 Revert "Changed ppc64 to power64 macro for mono_archs"
This reverts commit 8928398b2b.
2014-09-19 12:33:05 +02:00
Dennis Gilmore 53fbfd98bd - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 21:10:17 -05:00
Peter Robinson 624175e139 ARMv7 has Ada so add it to GNAT_arches 2014-06-05 22:49:12 +01:00
Brent Baude 8928398b2b Changed ppc64 to power64 macro for mono_archs 2014-05-24 08:11:59 -05:00
Peter Robinson 01bd917b0e aarch64 has Ada so add it to GNAT_arches 2014-05-13 11:24:52 +01:00
Josh Boyer 1767166dd5 Fix kmod.prov to deal with compressed modules (#1096349) 2014-05-12 15:05:02 -04:00
Jens Petersen 121c2fa889 move macros.ghc-srpm to ghc-srpm-macros and require it (#1089102) 2014-05-01 10:10:45 +09:00
Peter Robinson f60ba57637 With gcc 4.9 aarch64 now supports stack-protector 2014-04-29 23:37:34 +01:00
Ville Skyttä 82a41dfa6a Drop brp-* scripts needlessly duplicated with rpm
One possible incompatibility, hopefully non-issue: our brp-strip*
allowed setting strip and objdump to use via args and STRIP and
OBJDUMP env vars whereas the rpm ones allow it through args only
(i.e. %{__strip} and %{__objdump} as far as specfiles are concerned).
2014-04-27 17:09:14 +03:00
Ville Skyttä 20c7e01657 Drop bunch of macro definitions needlessly duplicated with rpm
Specifically, the following are gone from here now: %_prefix,
%_sysconfdir, %_infodir, %_mandir, %_defaultdocdir, %_configure,
%makeinstall, %debug_package, %_use_internal_dependency_generator,
%_missing_doc_files_terminate_build, %_unpackaged_files_terminate_build
2014-04-27 12:02:23 +03:00
Ville Skyttä 24cd400d7c %changelog spelling fixes 2014-04-27 12:02:23 +03:00
Ville Skyttä 20a45694f9 Trim trailing whitespace 2014-04-27 11:58:46 +03:00
Panu Matilainen 147cb4ced1 - Temporarily bring back find-requires and -provides scripts to rrc-side
- Packages that refer to /usr/lib/rpm/redhat/find-requires|provides
  do exist afterall, bring the scripts (but NOT macro overrides for them)
  back until the packages (python3 at least) are fixed.
2014-04-15 16:11:41 +03:00
Panu Matilainen eaf6603313 - Let OCaml handle its own arch macros (#1087794) 2014-04-15 14:36:04 +03:00
Panu Matilainen 5c5a1d10b9 Oops, bogus date in changelog (sigh) 2014-04-15 10:14:32 +03:00
Panu Matilainen dd2a70568b - Move kmod and libsymlink dependency generators here from rpm
- These are specific to Fedora so might as well live here, and
  having them here also avoids having to carry patches in rpm
  for no good reason etc
2014-04-15 10:08:30 +03:00
Panu Matilainen 2cbbbb322e - Drop most of the script-based dependency generation bits
- Use rpmdeps to generate any "normal" dependencies even for the
  kernel module stuff, drop all other unnecessary duplication
  like elf, libtool and pkgconfig deps.
2014-04-10 15:20:54 +03:00
Panu Matilainen 43629272a8 - Allow opting out of config.{guess,sub} replacement hack (#991613) 2014-04-08 13:30:58 +03:00
Panu Matilainen 0f965fc0b3 - Add mono path macros (#1070936) 2014-04-08 13:26:14 +03:00
Panu Matilainen a1cd32b14d Doh, remember to bump the actual version 2014-04-08 12:41:42 +03:00
Panu Matilainen c8cbd244cf - Move the remaining dependency generator stuff to the kmp macro package
- Stop overriding rpm external dependency generator settings by default
- No normal package should ever end up using the old unmaintained
  dependency generator scripts from here, but the kmp system depends
  for now on the way this was previously set up here so letting
  that old cruft live in the non-default package for now.
2014-04-08 12:36:08 +03:00
Panu Matilainen fdc99f0414 Split kernel module scripts and macros to a separate package
- These are not very relevant for Fedora, more so for RHEL and derivates
  where it would be far preferrable to maintain the scripts as separately
  from Fedoras redhat-rpm-config package as they are unmaintained and
  only get out of sync here. Splitting these to a separate package
  is the first step towards that.
- This isn't supposed to affect Fedora packages in any way.
2014-04-07 14:47:28 +03:00
Panu Matilainen 0e6d36bee9 Split kernel module macros to a separate file 2014-04-07 14:38:58 +03:00
Panu Matilainen 188c86566f Be more explicit about the package contents 2014-04-07 14:36:52 +03:00
Panu Matilainen fe3b678a9d - Stop pretending this package is relocatable, its not
- Require rpm >= 4.11 for /usr/lib/rpm/macros.d support etc
- Move our macros out of from /etc, they're not configuration
2014-04-02 17:26:32 +03:00
Panu Matilainen 060a4721d1 - Make fedora dist-git the upstream of this package and its sources,
all patches dropped as they're no longer relevant
- Add maintainer comments to spec wrt versioning and changes
- Except for Changelog documentation, the resulting binary package
  is identical to previous version (9.1.0-58), ie only maintenance
  practise is changed here, not contents.
2014-04-02 13:12:25 +03:00
Dan Horák bca39317e9 - enable ppc64le otherwise default rpm cflags will be used 2014-03-24 17:27:07 +01:00
Panu Matilainen 6e5c1076ec - config.guess/sub don't need to be group-writable (#1061762) 2014-02-07 11:00:05 +02:00
Kevin Fenzi e04bd964a3 Update libtool hardening hack and re-enable (#978949) 2014-01-13 12:45:57 -07:00
Dhiru Kholia d1c22eee30 Enable "-Werror=format-security" by default (#1043495) 2013-12-18 08:41:34 +02:00
Karsten Hopp f808f779df update config.sub with ppc64p7 support (already in automake)
We used to fix this in the selected ppc64p7 packages, but can't do that anymore
because the current %configure macro overwrites our changes.
2013-09-04 21:55:10 +02:00
Panu Matilainen 499f65fa2a - update config.guess/sub from upstream for little-endian ppc archs 2013-08-16 13:25:23 +03:00
Petr Písař 8716aaa134 Perl 5.18 rebuild 2013-07-29 08:56:28 +02:00
Tomas Mraz daac6dfeb6 Disable the libtool hack as it is breaking builds 2013-07-25 16:42:52 +02:00
Kevin Fenzi e6fe460e84 Make docdirs unversioned on Fedora 20+ (#986871)
- Hack around libtool issue for hardened build for now (#978949)
2013-07-24 16:20:05 -06:00
Petr Písař 3610794c3e Perl 5.18 rebuild 2013-07-17 21:02:48 +02:00
Panu Matilainen 15fbd4c0c2 - fix brp-java-repack-jars failing on strange permissions (#905573) 2013-07-05 13:29:16 +03:00
Panu Matilainen 8153763b1f - switch from -fstack-protector to -fstack-protector-strong (#978763) 2013-07-04 10:26:49 +03:00
Panu Matilainen 3be8fc4ae6 - make cpu limit for building configurable through _smp_ncpus_max macro
- forward "port" from rhel-6 (#669638)
2013-06-27 10:08:01 +03:00
Panu Matilainen 9781bbafca Fix an old bogus date in changelog 2013-05-29 13:00:57 +03:00
T.C. Hollingsworth 490aabb061 add nodejs_arches macro for ExclusiveArch for Node.js packages 2013-05-29 12:56:32 +03:00
Adam Jackson 6ef9b403ea Less verbose of a comment 2013-05-13 12:30:24 -04:00
Adam Jackson 3cff8f9b97 redhat-config-*: Use + to append rather than %rename, to protect against
multiple -specs= ending up in the command line. (#892837)
2013-05-13 11:19:02 -04:00
Panu Matilainen 234364ec2f - Also set FCFLAGS from %%configure (#914831) 2013-04-23 07:33:30 +03:00
Panu Matilainen 4b27de8d70 - Add optflags stack protector override for AArch64 (#909788) 2013-04-23 07:31:50 +03:00
Panu Matilainen 9c8971c1cd - Switch back to manual config.guess/sub copies for reproducability
- Replace config.guess/sub from %%configure again (#951442)
2013-04-22 14:16:11 +03:00
Panu Matilainen 5ec4cc65c2 - Add -grecord-gcc-switches to global CFLAGS (#951669) 2013-04-22 13:20:19 +03:00
Panu Matilainen ea63b1b6bc - Add virtual system-rpm-config provide 2013-03-25 13:08:11 +02:00
Dennis Gilmore 6ec83fd8c4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 15:31:02 -06:00
Jens Petersen 1b89fd3a33 add ARM to ghc_arches_with_ghci for ghc-7.4.2 ghci support
This change must not be backported to F18 before ghc-7.4.2.
2012-11-17 21:25:07 +09:00
Toshio Kuratomi 83cfe608da Patch to fix spaces in java jar files
https://bugzilla.redhat.com/show_bug.cgi?id=872737
2012-11-09 13:49:08 -08:00
Toshio Kuratomi 62a6fd7d9f Patch to fix spaces in files used in filtering macros
https://bugzilla.redhat.com/show_bug.cgi?id=783932
2012-11-09 03:40:39 -08:00
Toshio Kuratomi 5c4ec180bc Drop (un)setting LANG and DISPLAY in build stages, require rpm >= 4.8.0. 2012-10-03 18:19:33 -07:00
Toshio Kuratomi 94c3f755ba Add patch from https://bugzilla.redhat.com/show_bug.cgi?id=783433
to fix spaces in files and directories that are fed to the
  brp-python-hardlink script
- Require zip since java repack jars requires it
  https://bugzilla.redhat.com/show_bug.cgi?id=857479
- Java jars need the MANIFEST.MF file to be first in the archive
  https://bugzilla.redhat.com/show_bug.cgi?id=465664
- Fix kernel_source macro to match the directory that kernel sources are installed in
  https://bugzilla.redhat.com/show_bug.cgi?id=648996
- Patch _mandir, _infodir, and _defaultocdir to use _prefix
  https://bugzilla.redhat.com/show_bug.cgi?id=853216
2012-10-03 17:30:10 -07:00
Toshio Kuratomi 94fba4eae8 Add patch from https://bugzilla.redhat.com/show_bug.cgi?id=783433
to fix spaces in files and directories that are fed to the
  brp-python-hardlink script
2012-10-03 10:17:07 -07:00
Dennis Gilmore 0577043ed3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 10:25:12 -05:00
Panu Matilainen e95fc2098b - enable minidebuginfo generation (#834073) 2012-06-27 13:32:42 +03:00
Panu Matilainen 7f5c2c3943 - revert back to plain -g, -g3 seems to cancel dwz size improvements 2012-06-25 17:22:09 +03:00
Panu Matilainen 5316e51652 - require dwz, enable dwarf compression for debuginfo packages (#833311) 2012-06-25 14:42:15 +03:00
Petr Písař 51aea39741 Pull in dependency with macros specific for building Perl source packages 2012-06-06 14:00:11 +02:00
Jens Petersen 6ce33965b9 ghc_arches: add s390 and s390x 2012-03-03 15:31:01 +09:00
Panu Matilainen b2f900ec00 - add GNAT arch definitions 2012-02-22 10:12:42 +02:00
Dennis Gilmore 93950caa5d per ppc team request drop -mminimal-toc on ppc64 2012-01-15 12:24:11 -06:00
Dennis Gilmore 8d1ad74fc7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 20:46:15 -06:00
Peter Robinson 3b39f7f26b mktemp was long obsoleted by coreutils 2012-01-11 10:43:24 +00:00
Jens Petersen aa2690b410 macros.ghc-srpm: add ghc_arches_with_ghci for fully bootstrapped ghc archs 2011-12-27 21:40:35 +09:00
Dennis Gilmore df3fa9bf05 remove patch that forces --disable-silent-rules to configure
it breaks anything set to not ignore unknown configure options
2011-11-09 07:27:37 -06:00
Jens Petersen cf4ace9dc3 add armv5tel to ghc_arches 2011-10-18 16:30:42 +09:00
Dennis Gilmore e5475deba5 build armv5tel on armv7l since they are the same abi armv7hl is
a incompatable ABI
2011-09-28 09:45:25 -05:00
Jens Petersen 3e2fed4717 add armv7hl to ghc_arches 2011-09-28 09:57:24 +09:00
Ville Skyttä bb7037453e Fix URL. 2011-09-25 10:53:08 +03:00
Adam Jackson 3e26010b1e redhat-hardened-cc1: Inject -fPIE, not -fPIC.
cf. http://lists.fedoraproject.org/pipermail/devel/2011-September/157365.html
2011-09-22 14:42:22 -04:00
Adam Jackson 688e86b5a8 Expose %_hardening_{c,ld}flags independently to make it easier for
packages to apply them to selected components
2011-09-16 17:06:58 -04:00
Colin Walters 677db6759b Globally disable silent rules 2011-08-10 05:36:25 -04:00
Adam Jackson da8d7a1e6a redhat-hardened-{cc1,ld}: Move some of the rewrite magic to gcc specs so
we don't end up with both -fPIC and -fPIE on the command line
2011-08-08 10:58:51 -04:00
Adam Jackson 796b80f2f4 redhat-rpm-config-9.1.0-hardened.patch: Add macro magic for %_hardened_build 2011-08-01 12:26:41 -04:00
Adam Jackson 8e60e55b8a redhat-rpm-config-9.1.0-relro.patch: LDFLAGS, not CFLAGS. 2011-07-07 13:17:24 -04:00
Jon Masters a51eb50bb4 redhat-rpm-config: change default arch level target for all ARM v7 to armv7hl
All ARM version 7 systems support a vector hardware floating point unit and
have the ability to run using the hard floating point ABI (aapcs-vfpv3-d16).
This is the only configuration we support as a v7 target, so we force the
use of hard floating point. This prevents e.g. packages being built with
a armv5tel target on an armv7 system without explicit intent.

Signed-off-by: Jon Masters <jcm@jonmasters.org>
2011-07-02 04:55:37 -04:00
Adam Jackson 92e4921960 Add -z relro 2011-06-27 12:40:49 -04:00
Jens Petersen 8e0316b094 revert back to ghc_arches at releng's request 2011-06-21 13:05:25 +09:00
Jens Petersen 62baae777d Revert "replace ghc_archs with ghc_excluded_archs"
This reverts commit 8fc99b69b6.
2011-06-21 12:58:44 +09:00
Jens Petersen 60590c6d51 Revert "rename the arch patch in .spec too"
This reverts commit f657756e52.
2011-06-21 12:58:44 +09:00
Jens Petersen f657756e52 rename the arch patch in .spec too 2011-06-18 16:15:24 +09:00
Jens Petersen 8fc99b69b6 replace ghc_archs with ghc_excluded_archs 2011-06-18 16:05:16 +09:00