From 62780824a05b1318fbb0646192638f45fe810ae1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 20 Jun 2004 01:43:43 +0000 Subject: * Makerules (compile-mkdep-flags): Add -MT $@. * Makefile (dist, tag-for-dist): New targets. (files-for-dist, tag-of-stem): New variables. (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule. Make tar files using cvs export. (%.bz2, %.gz, tag-%): New pattern rules. (distribute): Variable removed. (+subdir_targets): Remove distinfo targets. (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed. (rpm/%): Pattern rule removed. * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed. * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist): Targets removed. * Makerules (dist, subdir_distinfo): Targets removed. ($(objpfx)distinfo): Depend on $(distribute). * Make-dist: File removed. --- rpm/Makefile | 102 ----------------------------------------------------------- rpm/rpmrc | 3 -- rpm/template | 41 ------------------------ 3 files changed, 146 deletions(-) delete mode 100644 rpm/Makefile delete mode 100644 rpm/rpmrc delete mode 100644 rpm/template (limited to 'rpm') diff --git a/rpm/Makefile b/rpm/Makefile deleted file mode 100644 index 8c5a1a3..0000000 --- a/rpm/Makefile +++ /dev/null @@ -1,102 +0,0 @@ -# A start at automated rpm-making for GNU libc. -# Generates an rpm spec file in `CPU-VENDOR-OS' from the list of installed -# files and the `template' file. - -all: - -subdir := rpm -include ../Makeconfig -include $(common-objpfx)soversions.mk - -distinfo := $(common-objpfx)distinfo \ - $(wildcard $(subdirs:%=$(common-objpfx)%/distinfo)) --include $(distinfo) - -config = $(config-machine)-$(config-vendor)-$(config-os) - -headers := $(-headers) $(foreach d,$(subdirs),$($d-headers)) -install-lib := $(-install-lib) $(foreach d,$(subdirs),$($d-install-lib)) -install-lib.so := $(-install-lib.so) \ - $(foreach d,$(subdirs),$(filter-out $($d-versioned),\ - $($d-install-lib.so))) -versioned := $(-versioned) $(foreach d,$(subdirs),$($d-versioned)) -install-bin := $(-install-bin) $(foreach d,$(subdirs),$($d-install-bin)) -install-sbin := $(-install-sbin) $(foreach d,$(subdirs),$($d-install-sbin)) -install-data := $(-install-data) $(foreach d,$(subdirs),$($d-install-data)) -install-others := $(-install-others) \ - $(foreach d,$(subdirs),$($d-install-others)) - -# Notice things to be installed in /etc. They get specially marked as -# possibly user-modified config files. -install-sysconf := $(filter $(sysconfdir)/%,$(install-others)) -install-others := $(filter-out $(sysconfdir)/%,$(install-others)) - -# Add the unversioned lib*.so's. -install-slib = $(install-lib.so) - -# For each versioned lib*.so, add two files: -# lib*-VERSION.so and lib*.so.MAJOR -install-slib += $(foreach lib,$(versioned),\ - $(patsubst %.so,%-$(version).so,$(lib)) \ - $(lib)$($(lib)-version)) -install-lib += $(versioned) - -# Add libc.a and libc_p.a. -install-lib += $(foreach o,$(filter-out .os,$(object-suffixes-for-libc)),\ - $(patsubst %,$(libtype$o),c)) - -ifeq (yes,$(build-shared)) -# Add libc.so itself, which is a special case in Makerules. -ifndef libc.so-version -install-slib += libc.so -else -install-lib += libc.so -install-slib += libc-$(version).so libc.so$(libc.so-version) -endif -endif - - -all: glibc-$(version).$(config).rpm - -instvars = include lib slib bin sbin data others - -# Generate the rpm spec file for this configuration. -$(config): template $(distinfo) Makefile - rm -f $@.new - (sed -e 's%@VERSION@%$(version)%g' \ - -e 's%@prefix@%$(prefix)%g' \ - $<; \ - ($(foreach var,$(instvars),\ - list='$(install-$(var))'; \ - for f in $$list; do \ - echo $(filter-out /,$($(var)dir)/)$$f; \ - done;\ - )) | sort; \ - (list='$(install-sysconf)'; \ - for f in $$list; do \ - echo %config $$f; \ - done) | sort) > $@.new - mv -f $@.new $@ - -install-include = $(headers) - -instfiles := $(sort $(foreach x,$(instvars),\ - $(addprefix $(filter-out /,$($xdir)/),\ - $(install-$x)))) - -# Build the binary rpm for this configuration. -glibc-$(version).$(config).rpm: $(config) rpmrc $(instfiles) -# rpm is really lame. You cannot tell it the name of the output file, -# and you can only guess at what the name will turn out to be! - arch=`uname -m | sed -e 's/i.86/i386/' -e 's/alpha/axp/'`; \ - rm -f $$arch; ln -s . $$arch; \ - rpm --rcfile rpmrc -bb $<; \ - rm -f $$arch; \ - mv -f glibc-$(version)-1.$${arch}.rpm $@ - -# Avoid time-consuming implicit rule search. -$(instfiles) : ; - -.PHONY: clean -clean: - rm -f $(config) glibc-$(version).$(config).rpm diff --git a/rpm/rpmrc b/rpm/rpmrc deleted file mode 100644 index 5579659..0000000 --- a/rpm/rpmrc +++ /dev/null @@ -1,3 +0,0 @@ -rpmdir: . -srcrpmdir: . -specdir: . diff --git a/rpm/template b/rpm/template deleted file mode 100644 index bc7972b..0000000 --- a/rpm/template +++ /dev/null @@ -1,41 +0,0 @@ -Name: glibc -Summary: GNU libc -Group: Development/Libraries/Libc -Version: @VERSION@ -Release: 1 -Copyright: LGPL, GPL -Source: glibc-@VERSION@.tar.gz -BuildRoot: /tmp/libc - -%description -The C language provides no built-in facilities for performing such -common operations as input/output, memory management, string -manipulation, and the like. Instead, these facilities are defined in -a standard library, which you compile and link with your programs. The -GNU C library (this package) defines all of the library functions that -are specified by the ISO C standard, as well as additional features -specific to POSIX and other derivatives of the Unix operating system, -and extensions specific to the GNU system. - -%prep -%setup - -rm -rf $RPM_BUILD_ROOT -mkdir $RPM_BUILD_ROOT - -%build -configure --prefix=@prefix@ -cat >configparms <