2020-06-01 16:11:06 -04:00
|
|
|
#TARBALL: ftp.rpm.org/releases/rpm-4.15.x/rpm-4.15.1.tar.bz2
|
2019-05-24 08:27:40 -04:00
|
|
|
#TARBALL: http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz
|
2020-06-01 16:11:06 -04:00
|
|
|
#MD5SUM: fdb8b8857f103b087b6aed5b78dd9b4f;SOURCES/rpm-4.15.1.tar.bz2
|
|
|
|
#MD5SUM: b99454564d5b4479750567031d66fe24;SOURCES/db-5.3.28.tar.gz
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
Summary: Package manager
|
|
|
|
Name: rpm
|
2020-06-01 16:11:06 -04:00
|
|
|
Version: 4.15.1
|
2019-05-25 09:08:04 -04:00
|
|
|
Release: 1
|
2019-05-24 08:27:40 -04:00
|
|
|
License: GPLv2
|
|
|
|
URL: http://rpm.org
|
|
|
|
Group: LFS/BASE
|
2020-06-01 16:11:06 -04:00
|
|
|
Source0: http://ftp.rpm.org/releases/rpm-4.15.x/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz
|
2019-05-24 08:27:40 -04:00
|
|
|
Source2: macros
|
|
|
|
Requires: filesystem
|
|
|
|
%description
|
|
|
|
Package manager
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%setup -q -T -D -a 1 -n %{name}-%{version}
|
|
|
|
sed -i 's/--srcdir=$db_dist/--srcdir=$db_dist --with-pic/' db3/configure
|
|
|
|
%build
|
2020-06-01 16:11:06 -04:00
|
|
|
ln -vs db-5.3.28 db
|
2019-05-24 08:27:40 -04:00
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--program-prefix= \
|
2020-06-01 16:11:06 -04:00
|
|
|
--sysconfdir=%{_sysconfdir} \
|
2019-05-24 08:27:40 -04:00
|
|
|
--with-crypto=openssl \
|
|
|
|
--with-cap \
|
|
|
|
--with-acl \
|
|
|
|
--without-external-db \
|
|
|
|
--without-archive \
|
|
|
|
--without-lua \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-rpath \
|
2019-05-25 09:08:04 -04:00
|
|
|
--disable-plugins \
|
|
|
|
--disable-inhibit-plugin
|
2019-05-24 08:27:40 -04:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install
|
2020-06-01 16:11:06 -04:00
|
|
|
install -vdm 755 %{buildroot}/%{_sysconfdir}/rpm
|
|
|
|
install -vm 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/rpm
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Copy license/copying file
|
|
|
|
install -D -m644 COPYING %{buildroot}%{_datarootdir}/licenses/%{name}-%{version}/COPYING
|
|
|
|
install -D -m644 INSTALL %{buildroot}%{_datarootdir}/licenses/%{name}-%{version}/INSTALL
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Create file list
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
2020-06-01 16:11:06 -04:00
|
|
|
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
|
|
|
|
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
|
|
|
|
sed -i '/man\/man/d' filelist.list
|
|
|
|
sed -i '/\/usr\/share\/info/d' filelist.list
|
|
|
|
sed -i '/man\/fr/d' filelist.list
|
|
|
|
sed -i '/man\/pl/d' filelist.list
|
|
|
|
sed -i '/man\/sk/d' filelist.list
|
|
|
|
sed -i '/man\/ko/d' filelist.list
|
|
|
|
sed -i '/man\/ja/d' filelist.list
|
|
|
|
sed -i '/man\/ru/d' filelist.list
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
2020-06-01 16:11:06 -04:00
|
|
|
%files -f filelist.list
|
2019-05-24 08:27:40 -04:00
|
|
|
%defattr(-,root,root)
|
2019-05-25 21:36:26 -04:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_mandir}/fr/man8/*
|
|
|
|
%{_mandir}/ja/man8/*
|
|
|
|
%{_mandir}/ko/man8/*
|
|
|
|
%{_mandir}/pl/man1/*
|
|
|
|
%{_mandir}/pl/man8/*
|
|
|
|
%{_mandir}/ru/man8/*
|
|
|
|
%{_mandir}/sk/man8/*
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%changelog
|
2020-06-01 16:11:06 -04:00
|
|
|
* Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 4.15.1-1
|
2019-05-24 08:27:40 -04:00
|
|
|
* Wed Sep 26 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.1-2
|
|
|
|
* Sat Jul 28 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.1-1
|
|
|
|
* Sat Mar 10 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.0-4
|
|
|
|
- Added acl and cap Removed plugins and disabled python
|
|
|
|
* Tue Feb 20 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.0-3
|
|
|
|
- Added python bindings for rpmlint
|
|
|
|
* Mon Jan 01 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.0-1
|
|
|
|
- LFS-8.1
|