-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
174 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
NAME = spec-helper | ||
VERSION = 0.31.49 | ||
SVNPATH = [email protected]:OpenMandrivaSoftware/spec-helper.git | ||
VERSION = 0.31.50 | ||
GITPATH = [email protected]:OpenMandrivaSoftware/spec-helper.git | ||
|
||
SCRIPT_FILES = clean_files clean_perl check_elf_files \ | ||
lib_symlinks fix_file_permissions fix_mo fix_xdg fix_pkgconfig fix_pamd \ | ||
remove_info_dir remove_libtool_files remove_rpath relink_symlinks fix_eol \ | ||
python_shebangs | ||
remove_info_dir remove_libtool_files remove_rpath relink_symlinks fix_eol | ||
|
||
BIN_FILES = rediff_patch spec-cleaner | ||
MACROS_FILES = spec-helper.macros | ||
MACROS_FILES = macros.spec-helper | ||
TEST_FILES = t/*.t | ||
FILES = Makefile NEWS README \ | ||
$(SCRIPT_FILES) $(BIN_FILES) $(MACROS_FILES:=.in) \ | ||
|
@@ -17,20 +17,20 @@ TEST_VERBOSE = 0 | |
|
||
bindir = /usr/bin | ||
pkgdatadir = /usr/share/$(NAME) | ||
rpmmacrosdir = /etc/rpm/macros.d | ||
rpmmacrodir = /usr/lib/rpm/macros.d | ||
|
||
all: | ||
@echo "use make install or make dist" | ||
|
||
install: $(MACROS_FILES) | ||
install -d -m 755 $(DESTDIR)$(bindir) | ||
install -m 755 $(BIN_FILES) $(DESTDIR)$(bindir) | ||
install -p -m 755 $(BIN_FILES) $(DESTDIR)$(bindir) | ||
install -d -m 755 $(DESTDIR)$(pkgdatadir) | ||
install -m 755 $(SCRIPT_FILES) $(DESTDIR)$(pkgdatadir) | ||
install -d -m 755 $(DESTDIR)/$(rpmmacrosdir) | ||
install -m 644 $(MACROS_FILES) $(DESTDIR)/$(rpmmacrosdir) | ||
install -p -m 755 $(SCRIPT_FILES) $(DESTDIR)$(pkgdatadir) | ||
install -d -m 755 $(DESTDIR)$(rpmmacrodir) | ||
install -p -m 644 $(MACROS_FILES) $(DESTDIR)$(rpmmacrodir) | ||
|
||
spec-helper.macros: spec-helper.macros.in | ||
macros.spec-helper: macros.spec-helper.in | ||
sed -e 's:@pkgdatadir@:$(pkgdatadir):' < $< > $@ | ||
|
||
clean: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$RPM_BUILD_ROOT" ]; then | ||
echo "No build root defined" >&2 | ||
printf '%s\n' "No build root defined" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "$RPM_BUILD_ROOT" ]; then | ||
echo "Invalid build root" >&2 | ||
printf '%s\n' "Invalid build root" >&2 | ||
exit 1 | ||
fi | ||
|
||
configs=`find $RPM_BUILD_ROOT/etc/pam.d/ -type f ! -type l 2> /dev/null` | ||
configs=$(find $RPM_BUILD_ROOT/etc/pam.d/ -type f ! -type l 2> /dev/null) | ||
if [ -n "$configs" ]; then | ||
echo -n "Fixing pam.d config files..." | ||
printf '%s\n' "Fixing pam.d config files..." | ||
sed -e 's,/lib64/security/,,g ; s,/lib/security/,,g' $configs | ||
echo "done" | ||
printf '%s\n' "...done" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,23 @@ | |
# (c) Andrey Bondrov <[email protected]> 2016 | ||
|
||
if [ -z "$RPM_BUILD_ROOT" ]; then | ||
echo "No build root defined" >&2 | ||
printf '%s\n' "No build root defined" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "$RPM_BUILD_ROOT" ]; then | ||
echo "Invalid build root" >&2 | ||
printf '%s\n' "Invalid build root" >&2 | ||
exit 1 | ||
fi | ||
|
||
for pc in $(find "$RPM_BUILD_ROOT" -name \*.pc); do | ||
for pc in $(find "$RPM_BUILD_ROOT" -name \*.pc -type f); do | ||
export PKG_CONFIG_PATH="$(dirname $pc)" | ||
pcfile="$(basename $pc)" | ||
pcmodule="$(echo $pcfile|cut -d. -f1)" | ||
pcmodule="$(printf '%s\n' $pcfile|cut -d. -f1)" | ||
for variable in $(pkg-config --print-variables "$pcmodule"); do | ||
dir=$(pkg-config --variable="$variable" "$pcmodule") | ||
if [[ "$dir" == "/"* && -d "$dir" ]]; then | ||
if [ "$dir" != "`realpath $dir`" ]; then | ||
if [ "$dir" != "$(realpath $dir)" ]; then | ||
parentdir=$(dirname ${dir}) | ||
subdir=$(basename ${dir}) | ||
regexp="-e s|\(${variable}=.*/${subdir}\)/.*\$|\1|g" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,29 +5,28 @@ | |
# File : lib_symlinks | ||
# Author : Frederic Lepied | ||
# Created On : Tue Nov 7 08:33:05 2000 | ||
# Description : Run ldconfig to create symlinks to libraries. | ||
# Description : Run ldconfig to create symlinks to libraries. | ||
# | ||
# Copyright (C) 2000 by Frederic Lepied <[email protected]> | ||
# Redistribution of this file is permitted under the terms of the GNU | ||
# Public License (GPL) | ||
#--------------------------------------------------------------- | ||
|
||
if [ -z "$RPM_BUILD_ROOT" ]; then | ||
echo "No build root defined" >&2 | ||
printf '%s\n' "No build root defined" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "$RPM_BUILD_ROOT" ]; then | ||
echo "Invalid build root" >&2 | ||
printf '%s\n' "Invalid build root" >&2 | ||
exit 1 | ||
fi | ||
|
||
libs=`find "$RPM_BUILD_ROOT" -type d \ | ||
libs=$(find "$RPM_BUILD_ROOT" -type d \ | ||
-a "(" -name lib -o -name lib64 ")" \ | ||
-a ! "(" -path '*/usr/src/debug*' -o -path '*/usr/lib/debug*' ")" \ | ||
` | ||
-a ! "(" -path '*/usr/src/debug*' -o -path '*/usr/lib/debug*' ")") | ||
|
||
if [ -n "$libs" -o -n "$EXTRA_LIBS_TO_SYMLINK" ]; then | ||
if [ -n "$libs" ] || [ -n "$EXTRA_LIBS_TO_SYMLINK" ]; then | ||
/sbin/ldconfig -n -N $libs $EXTRA_LIBS_TO_SYMLINK | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.