Commit Graph

472 Commits

Author SHA1 Message Date
Jason Tibbitts 67e46b630d Add %_metainfodir macro, bump release. 2018-04-20 13:14:45 -05:00
Nicolas Mailhot 0f21b9ca27 fix patch application with autosetup (we have autosetup users now!) 2018-04-20 12:57:37 -05:00
Jason Tibbitts ba38a1f663 Add the forge macros. 2018-03-05 11:07:01 -06:00
Florian Weimer 8b3d81a50f Synchronize compiler flags from Fedora 28
Namely, redhat-rpm-config-105-1.fc28.  Exclude CET and
-fstack-clash-protection.

This makes the unwind tables and tuning selection consistent with the
compiler defaults.
2018-03-02 10:05:58 +01:00
Igor Gnatenko 1a0aca9d26 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>
(cherry picked from commit 987e94f6ea)
2018-02-22 08:04:42 +01:00
Panu Matilainen 2d84b07718
Fix the inevitable embarrassing typo in 77, doh
(cherry picked from commit a747e7fb51)
2018-02-21 14:37:20 +01:00
Igor Gnatenko f03a9ba75f
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>
(cherry picked from commit 17746cb929)
2018-02-21 08:59:46 +01:00
Panu Matilainen 5df8c7a31e
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.

(cherry picked from commit c4646d791d)
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-21 08:57:34 +01:00
Igor Gnatenko 6e04472552
Add RPM macros for compiler/linker flags
Backport is quite useful so specs don't need to diverge between
branches.

Chery-Pick note: No documentation backport since there was no
documentation back then in F27 so backporting means writing new one.

(cherry picked from commit fa08f0e5a1)
Reported-by: Jens Petersen <petersen@redhat.com>
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1546643
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-20 08:30:31 +01:00
Igor Gnatenko 6677def59b
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:24:14 +01:00
Igor Gnatenko eb457f3e36 Remove Requires: cmake-rpm-macros
It doesn't belong to redhat-rpm-config which is about *srpm* buildtime..

This reverts commit c643e2acbd.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-15 23:36:55 +01:00
Sergey Avseyev 632d1326ba Add Requires: nim-srpm-macros for %nim_arches
Signed-off-by: Sergey Avseyev <sergey.avseyev@gmail.com>
2018-01-03 13:53:46 +03:00
Björn Esser c643e2acbd
Add Requires: cmake-rpm-macros for CMake auto-{provides,requires} (#1498894) 2017-12-21 16:20:30 +01: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 8fe5b07871 Rename __global_cflags to __global_compiler_flags
Preparing for language specific compiler flag macros, this is
simply:

    perl -pi -e "s:__global_cflags:__global_compiler_flags:g" macros rpmrc

Since this looks like a much bigger change than it actually is, doing
it in a separate step without an associated build.
2016-11-30 13:37:12 +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
Richard W.M. Jones b159548b73 riscv64: Add riscv64 + global_cflags to our rpmrc. 2016-10-13 15:15:31 +01:00
Peter Robinson 47427a213e Enable aarch64 for mono arches 2016-10-12 12:44:52 +01:00
Jason Tibbitts c0b2fd19e0 Add .gitignore file. 2016-10-03 17:03:08 -05:00
Jason Tibbitts 7359cf0b80 And add a more descriptive comment. 2016-10-03 16:06:03 -05:00
Jason Tibbitts d3c4ff3299 Leave the macro undefined instead of defining to 0. 2016-10-03 14:30:19 -05: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