1997-02-26 07:17:25 +08:00
|
|
|
Summary: Red Hat Package Manager
|
|
|
|
Name: rpm
|
1999-03-10 01:42:36 +08:00
|
|
|
%define version 2.92
|
1997-05-28 22:19:44 +08:00
|
|
|
Version: %{version}
|
1999-03-10 01:42:36 +08:00
|
|
|
Release: 3
|
1997-02-26 07:17:25 +08:00
|
|
|
Group: Utilities/System
|
1998-07-01 02:50:15 +08:00
|
|
|
Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-2.5.x/rpm-%{version}.tar.gz
|
1997-02-26 07:17:25 +08:00
|
|
|
Copyright: GPL
|
1998-07-09 01:30:37 +08:00
|
|
|
BuildRoot: /var/tmp/rpm-%{version}-root
|
1998-05-08 03:01:58 +08:00
|
|
|
Conflicts: patch < 2.5
|
1997-02-26 07:17:25 +08:00
|
|
|
|
|
|
|
%description
|
|
|
|
RPM is a powerful package manager, which can be used to build, install,
|
|
|
|
query, verify, update, and uninstall individual software packages. A
|
|
|
|
package consists of an archive of files, and package information, including
|
|
|
|
name, version, and description.
|
|
|
|
|
1998-10-06 01:20:09 +08:00
|
|
|
%package devel
|
|
|
|
Summary: Header files and libraries for programs that manipulate rpm packages
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
1997-02-26 07:17:25 +08:00
|
|
|
%description devel
|
|
|
|
The RPM packaging system includes a C library that makes it easy to
|
|
|
|
manipulate RPM packages and databases. It is intended to ease the
|
|
|
|
creation of graphical package managers and other tools that need
|
|
|
|
intimate knowledge of RPM packages.
|
|
|
|
|
|
|
|
%prep
|
1998-10-02 21:50:49 +08:00
|
|
|
%setup -q
|
1997-02-26 07:17:25 +08:00
|
|
|
|
1998-10-02 21:50:49 +08:00
|
|
|
%build
|
1999-01-23 02:42:31 +08:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --disable-shared
|
1998-10-02 21:50:49 +08:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
1997-02-26 07:17:25 +08:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib
|
1998-10-02 21:50:49 +08:00
|
|
|
|
1997-02-26 07:17:25 +08:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/src/redhat/SOURCES
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/src/redhat/SPECS
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/src/redhat/SRPMS
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/src/redhat/BUILD
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/src/redhat/RPMS/${RPM_ARCH}
|
1997-11-01 01:10:29 +08:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/src/redhat/RPMS/noarch
|
1997-02-26 07:17:25 +08:00
|
|
|
|
1998-11-23 03:48:48 +08:00
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
1997-02-26 07:17:25 +08:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
/bin/rpm --initdb
|
|
|
|
|
|
|
|
%files
|
1998-10-06 01:20:09 +08:00
|
|
|
%defattr(-,root,root)
|
1997-02-26 07:17:25 +08:00
|
|
|
%doc RPM-PGP-KEY CHANGES groups
|
|
|
|
%doc docs/*
|
|
|
|
/bin/rpm
|
|
|
|
/usr/bin/rpm2cpio
|
|
|
|
/usr/bin/gendiff
|
|
|
|
/usr/man/man8/rpm.8
|
|
|
|
/usr/man/man8/rpm2cpio.8
|
1998-07-09 01:30:37 +08:00
|
|
|
/usr/lib/rpm
|
1998-09-12 21:29:10 +08:00
|
|
|
/usr/lib/rpmrc
|
|
|
|
/usr/lib/rpmpopt
|
1997-02-26 07:17:25 +08:00
|
|
|
%dir /usr/src/redhat
|
|
|
|
%dir /usr/src/redhat/BUILD
|
|
|
|
%dir /usr/src/redhat/SPECS
|
|
|
|
%dir /usr/src/redhat/SOURCES
|
|
|
|
%dir /usr/src/redhat/SRPMS
|
1998-07-01 02:50:15 +08:00
|
|
|
%dir /usr/src/redhat/RPMS
|
1998-07-07 03:26:26 +08:00
|
|
|
/usr/src/redhat/RPMS/*
|
1998-03-28 01:26:36 +08:00
|
|
|
/usr/share/locale/*/LC_MESSAGES/rpm.mo
|
1997-02-26 07:17:25 +08:00
|
|
|
|
|
|
|
%files devel
|
1998-10-06 01:20:09 +08:00
|
|
|
%defattr(-,root,root)
|
1997-02-26 07:17:25 +08:00
|
|
|
/usr/include/rpm
|
|
|
|
/usr/lib/librpm.a
|