auto-import rpm-4.0.4-7x.5 from rpm-4.0.4-7x.5.src.rpm
This commit is contained in:
parent
4348957e39
commit
b1db1949f4
33
rpm.spec
33
rpm.spec
@ -1,5 +1,5 @@
|
|||||||
%define with_python_subpackage 1%{nil}
|
%define with_python_subpackage 1%{nil}
|
||||||
%define with_python_version 2.2%{nil}
|
%define with_python_version 1.5%{nil}
|
||||||
%define with_perl_subpackage 1
|
%define with_perl_subpackage 1
|
||||||
%define with_bzip2 1%{nil}
|
%define with_bzip2 1%{nil}
|
||||||
%define with_apidocs 1%{nil}
|
%define with_apidocs 1%{nil}
|
||||||
@ -15,14 +15,15 @@
|
|||||||
%define __prefix /usr
|
%define __prefix /usr
|
||||||
%{expand: %%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
|
%{expand: %%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
|
||||||
|
|
||||||
Summary: The Red Hat package management system.
|
Summary: The RPM package management system.
|
||||||
Name: rpm
|
Name: rpm
|
||||||
%define version 4.0.4
|
%define version 4.0.4
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
%{expand: %%define rpm_version %{version}}
|
%{expand: %%define rpm_version %{version}}
|
||||||
Release: 7x.4
|
Release: 7x.5
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
|
Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
|
||||||
|
Patch: rpm-4.0.4-pyver.patch
|
||||||
Copyright: GPL
|
Copyright: GPL
|
||||||
Conflicts: patch < 2.5
|
Conflicts: patch < 2.5
|
||||||
%ifos linux
|
%ifos linux
|
||||||
@ -62,13 +63,13 @@ package consists of an archive of files along with information about
|
|||||||
the package like its version, a description, etc.
|
the package like its version, a description, etc.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for applications which will manipulate RPM packages.
|
Summary: Development files for manipulating RPM packages.
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: rpm = %{rpm_version}, popt = 1.6.4
|
Requires: rpm = %{rpm_version}, popt = 1.6.4
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the RPM C library and header files. These
|
This package contains the RPM C library and header files. These
|
||||||
development files will simplify the process of writing programs which
|
development files will simplify the process of writing programs that
|
||||||
manipulate RPM packages and databases. These files are intended to
|
manipulate RPM packages and databases. These files are intended to
|
||||||
simplify the process of creating graphical package managers or any
|
simplify the process of creating graphical package managers or any
|
||||||
other tools that need an intimate knowledge of RPM packages in order
|
other tools that need an intimate knowledge of RPM packages in order
|
||||||
@ -84,8 +85,8 @@ Requires: rpm = %{rpm_version}
|
|||||||
Provides: perl(Specfile)
|
Provides: perl(Specfile)
|
||||||
|
|
||||||
%description build
|
%description build
|
||||||
This package contains scripts and executable programs that are used to
|
The rpm-build package contains the scripts and executable programs
|
||||||
build packages using RPM.
|
that are used to build packages using the RPM Package Manager.
|
||||||
|
|
||||||
%if %{with_python_subpackage}
|
%if %{with_python_subpackage}
|
||||||
%package python
|
%package python
|
||||||
@ -96,14 +97,14 @@ Requires: python >= %{with_python_version}
|
|||||||
Requires: popt = 1.6.4
|
Requires: popt = 1.6.4
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
The rpm-python package contains a module which permits applications
|
The rpm-python package contains a module that permits applications
|
||||||
written in the Python programming language to use the interface
|
written in the Python programming language to use the interface
|
||||||
supplied by RPM (RPM Package Manager) libraries.
|
supplied by the RPM Package Manager libraries.
|
||||||
|
|
||||||
This package should be installed if you want to develop Python
|
This package should be installed if you want to develop Python
|
||||||
programs that will manipulate RPM packages and databases.
|
programs that will manipulate RPM packages and databases.
|
||||||
%endif
|
|
||||||
|
|
||||||
|
%endif
|
||||||
%if %{with_perl_subpackage}
|
%if %{with_perl_subpackage}
|
||||||
%package perl
|
%package perl
|
||||||
Summary: Native bindings to the RPM API for Perl.
|
Summary: Native bindings to the RPM API for Perl.
|
||||||
@ -135,7 +136,6 @@ constants, through RPM::Error and RPM::Constants, respectively, are
|
|||||||
also available.
|
also available.
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%package -n popt
|
%package -n popt
|
||||||
Summary: A C library for parsing command line parameters.
|
Summary: A C library for parsing command line parameters.
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -151,16 +151,15 @@ arguments to be aliased via configuration files and includes utility
|
|||||||
functions for parsing arbitrary strings into argv[] arrays using
|
functions for parsing arbitrary strings into argv[] arrays using
|
||||||
shell-like rules.
|
shell-like rules.
|
||||||
|
|
||||||
Install popt if you're a C programmer and you'd like to use its
|
|
||||||
capabilities.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -p1
|
||||||
|
autoconf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%ifos linux
|
%ifos linux
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man'
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man' --with-python=%{with_python_version}
|
||||||
%else
|
%else
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix}
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix}
|
||||||
%endif
|
%endif
|
||||||
@ -446,8 +445,8 @@ fi
|
|||||||
%rpmattr %{__prefix}/lib/rpm/Specfile.pm
|
%rpmattr %{__prefix}/lib/rpm/Specfile.pm
|
||||||
|
|
||||||
# XXX remove executable bit to disable autogenerated perl requires for now.
|
# XXX remove executable bit to disable autogenerated perl requires for now.
|
||||||
%rpmattr %{__prefix}/lib/rpm/perl.req
|
#%rpmattr %{__prefix}/lib/rpm/perl.req
|
||||||
#%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/perl.req
|
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/perl.req
|
||||||
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpm[bt]
|
%rpmattr %{__prefix}/lib/rpm/rpm[bt]
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpmdiff
|
%rpmattr %{__prefix}/lib/rpm/rpmdiff
|
||||||
|
Loading…
Reference in New Issue
Block a user