Commit Graph

152 Commits

Author SHA1 Message Date
53c1895bb7 platform.in: add more systemd macros 2013-03-08 14:43:13 +00:00
c6fb9bfb27 %_configure_update_config: handle the case when %_configure_script is a symlink 2013-03-07 14:03:55 +00:00
98f832220b platform.in: add %EVR macro
%EVR is a handy macro to use in inter-package dependencies, e.g.
Requires: %name = %EVR
2013-01-24 21:18:47 +00:00
1949b7d5df platform.in (%configure): Export -m* part of %optflags as ASFLAGS
Some of %optflags options, -m* in particular, have to be passed to
assembler so that the output it produces would be consistent with the
output made by compilers.
2012-10-28 23:48:09 +00:00
Sergey Bolshakov
56d12e6708 platform.in: add hook to update config.sub and config.guess right before configure 2012-08-17 16:37:18 +00:00
e7cd0f8ed2 platform.in: add %_unitdir 2012-05-10 11:37:08 +00:00
17b988d408 %_sharedstatedir: change to /var/lib
The old value (/usr/com) was pure nonsense.

Suggested-by: Alexey Gladkov <legion@altlinux.org>
2012-01-12 22:13:54 +00:00
c0926a3c14 platform.in (%___build_pre): export RPM_DATADIR 2011-10-06 20:35:38 +00:00
Alexey Tourbin
4d747a6312 removed brp-strip & related macros 2011-09-23 03:36:28 +04:00
Igor Vlasenko
54babd022d drop obsolete alt macros %update_scrollkeeper/%clean_scrollkeeper 2011-05-17 18:31:42 +03:00
Igor Vlasenko
9dcc998b63 drop obsolete alt macros %update_wms/%clean_wms 2011-05-17 18:28:22 +03:00
Igor Vlasenko
2b3028a966 fixup-desktop: new file that does trivial fixes in desktop files
Some of the fixes for the freedesktop .desktop files are so routine
and trivial that they better be performed by script.
2011-05-13 21:43:39 +00:00
99554e894c platform.in: add %systemd_unitdir 2011-04-04 20:28:42 +00:00
Alexey Tourbin
abc7218045 platform.in: added %brp_strip_debug and %brp_strip_none macros 2011-02-03 11:52:06 +03:00
Alexey Tourbin
2c2529cf98 build/files.c (runPkgScript): new helper function for autodep-like scripts 2011-01-31 03:02:36 +03:00
Alexey Tourbin
f144e129b1 platform.in: always use %optflags_debug 2011-01-30 03:31:11 +03:00
Alexey Tourbin
f355ac14b5 platform: simplify %_configure_platform and %_target_libdir macros 2011-01-23 02:30:48 +03:00
Alexey Tourbin
82f7aeb283 implemented %__find_{requires,provides}_filter and %filter_from_{requires,provides}
The first two macros provide general mechanism for find-requires
and find-provides filtering.  Any valid command or shell syntax can
be used - the command will be executed using "eval" within find-*
script.  The implementation in %___build_pre is not particular
beautiful (as it uses here-docs), but there seems to be no easy
way to quote for eval yet.

The second two commands are built on top of the first: they use
sed as a filtering tool.  The implementation is compatible with Fedora:
http://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering
2011-01-23 02:30:08 +03:00
Alexey Tourbin
4c9813bac8 platform.in: fixed %configure options for noarch packages
This introduces new macro %_configure_platform which will normally
expand to %_target_platform.  However, for noarch packages, a special
version called %_configure_platform_noarch will be used, which will use
%_host_cpu instead of mock "noarch" cpu.  Suggested by Dmitry V. Levin.

This fixes %configure failures like
checking build system type... Invalid configuration `noarch-alt-linux': machine `noarch-alt' not recognized
2011-01-11 16:28:27 +03:00
Alexey Tourbin
19fdccc850 platform.in: removed %__ccache* macros
I enable ccache in my ~/.zshrc:
export GCC_USE_CCACHE=1
export CCACHE_DIR=$TMPDIR/.ccache
export CC=gcc CXX=g++

Now, under default rpm settings, ccache IS used with rpm, but the cache
directory is changed to ~/.ccache (since CCACHE_DIR is unset).

$ du -hs $TMPDIR/.ccache ~/.ccache
13M     /tmp/.private/at/.ccache
39M     /home/at/.ccache
$

These macros were added long ago.  Now we use hasher for final builds.
It's okay to use default ccache settings for local builds.
2010-08-17 19:22:28 +04:00
069cea1c59 platform.in (%__spec_check_pre): do not turn off %check in buildreq mode (ALT#23030) 2010-07-01 16:00:12 +00:00
a6cce6c03e platform.in: Add %_aclocaldir and %_locksubsysdir macros (ALT#22710) 2010-01-12 23:45:34 +00:00
7951f92479 platform.in: Set %_verify_elf_method to "default" 2009-12-20 17:03:25 +00:00
Alexey Tourbin
67352606b9 platform.in: %_verify_elf_method normal,lint=relaxed for now 2009-12-20 01:47:46 +03:00
Alexey Tourbin
eb71a01bcc platform.in: boil down default %_verify_elf_method to normal 2009-12-18 23:00:44 +03:00
23e6847c11 platform.in: Override %__spec_check_pre 2009-09-09 10:40:59 +00:00
db3de70e0a Implement info files verification 2009-05-20 23:25:58 +00:00
c5b740c8d8 platform.in (%configure): Do not run libtoolize
With libtool >=1.9b, the libtool script will complain if it was built
from mismatched ltmain.sh and libtool m4 macro versions.

To avoid libtool version mismatch disaster, %configure itself
no longer calls libtoolize.  Note that autoreconf, unlike %configure,
runs libtoolize in proper order.
2009-04-23 22:15:41 +00:00
93430b8c85 4.0.4-alt98.4
- rpm.8: Fixed typo (closes: #19356).
- platform.in: Added macros: %_logrotatedir, %_runtimedir (closes: #13639).
- Dropped deprecated RPMTAG_RHNPLATFORM support.
- Dropped unused RPMTAG_PLATFORM support.
- rpmVersionCompare(): Added handling of omitted tags.
- rpmevrcmp: Changed to use rpmVersionCompare() instead of rpmEVRcmp().
- 0common-files.req.list: Added /etc/X11/wms-methods.d (Igor Vlasenko).
2009-04-18 20:34:48 +00:00
925bdb7cd4 4.0.4-alt97.M50.5
- rpm.8: Fixed typo (closes: #19356).
- platform.in: Added macros: %_logrotatedir, %_runtimedir (closes: #13639).
2009-04-18 20:33:07 +00:00
9538baeb7d 4.0.4-alt95.M41.16
- rpm.8: Fixed typo (closes: #19356).
- platform.in: Added macros: %_logrotatedir, %_runtimedir (closes: #13639).
2009-04-18 20:31:03 +00:00
b40f11aecb platform.in: Add %_runtimedir (ALT#13639) 2009-04-18 18:52:59 +00:00
722d84d86e platform.in: Add %_logrotatedir 2009-04-16 22:19:13 +00:00
ba484a92a3 platform.in: Add %_initddir for FC compatibility 2009-04-16 22:12:47 +00:00
Alexey Tourbin
4bf2a42fd8 4.0.4-alt98.2
- Removed prehistoric multilib support.
2009-03-10 14:41:07 +03:00
Alexey Tourbin
07c1a647d4 4.0.4-alt97.M50.2
- Removed prehistoric multilib support.
2009-03-10 14:39:35 +03:00
Alexey Tourbin
3995f6a271 4.0.4-alt95.M41.14
- Removed prehistoric multilib support.
2009-03-10 14:37:49 +03:00
Alexey Tourbin
aebc9a42dd removed prehistoric multilib support 2009-03-10 14:27:38 +03:00
6fc32e776a platform.in: Import %makeinstall_std macro from rpm-build-perl 2009-02-19 22:59:20 +00:00
Alexey Gladkov
4eecafff33 platform.in: Remove obsolete %php_version and %php_release
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
2008-11-22 21:16:30 +00:00
3d53b58d08 platform.in: Add %_rpmmacrosdir macro 2008-11-22 01:58:56 +00:00
d975fc66c1 Introduce /usr/lib/rpm/macros.d/ (ALT#17948) 2008-11-21 00:25:45 +00:00
d2f32045b0 platform.in: Mark scrollkeeper database synchronization macros as obsolete 2008-11-20 16:15:32 +00:00
a949a78dfb platform.in: Mark window managers registration macros as obsolete 2008-11-20 16:13:19 +00:00
c9231cb270 platform.in: Mark update menu macros as obsolete 2008-11-20 16:08:08 +00:00
da3de4082f platform.in: Mark all ldconfig macros as obsolete 2008-11-20 16:07:51 +00:00
Alexey Tourbin
8f885bb319 platform.in(%_fixperms): use 'chmod -c' 2008-05-05 03:13:11 +04:00
4c946a678d platform.in: Rewrite macros to avoid extra dependencies
Changed %update_menus, %clean_menus, %update_wms, %clean_wms,
%update_scrollkeeper, %clean_scrollkeeper macros definitions
to avoid extra autodependencies when used in shell scripts.
2008-03-03 17:39:04 +00:00
b023526895 Merge branch 'altlinux-4.0' 2008-01-15 19:15:52 +00:00
aa45567317 platform.in (%__autoreconf): Add deprecation warning 2008-01-07 22:44:30 +00:00