140 lines
4.4 KiB

Name: prelink
Version: 20130503
Release: 2mamba
Summary: ELF prelinking utility to speed up dynamic linking
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <>
# SOURCE1: see doc/prelink.conf
Source1: prelink.conf
Source2: prelink.cron
Source3: prelink.sysconfig
License: GPL
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libelf-devel
BuildRequires: libselinux-devel
BuildRequires: libelf-devel
BuildRequires: libselinux-devel
BuildRequires: transfig
BuildRequires: tetex
BuildRequires: tetex-latex
BuildRoot: %{_tmppath}/%{name}-%{version}-root
ELF prelinking utility to speed up dynamic linking.
%package doc
Summary: Documentation for the prelink tool
Group: Documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description doc
ELF prelinking utility to speed up dynamic linking.
This package includes pdf documentation for for prelink.
%setup -q -n %{name}
%configure \
--disable-shared \
#% ifnarch arm
#make -C testsuite check-harder
#make -C testsuite check-cycle
#% endif
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -d %{buildroot}%{_sysconfdir}/{cron.daily,sysconfig,prelink.conf.d}
install -m644 %{S:1} %{buildroot}%{_sysconfdir}/prelink.conf
install -m755 %{S:2} %{buildroot}%{_sysconfdir}/cron.daily/prelink
install -m644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/prelink
install -d %{buildroot}/var/lib/prelink
touch %{buildroot}/var/lib/prelink/full
touch %{buildroot}/var/lib/prelink/quick
touch %{buildroot}/var/lib/prelink/force
install -d %{buildroot}/var/log/prelink
touch %{buildroot}/var/log/prelink/prelink.log
#install -d %{buildroot}%{_sysconfdir}/rpm
#cat > %{buildroot}%{_sysconfdir}/rpm/macros.prelink <<"EOF"
## rpm-4.1 verifies prelinked libraries using a prelink undo helper.
## Note: The 2nd token is used as argv[0] and "library" is a
## placeholder that will be deleted and replaced with the appropriate
## library file path.
##%%__prelink_undo_cmd /usr/sbin/prelink prelink -y library
#chmod 644 %{buildroot}%{_sysconfdir}/rpm/macros.prelink
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
touch /var/lib/prelink/force
exit 0
%config(noreplace) %{_sysconfdir}/prelink.conf
%config(noreplace) %{_sysconfdir}/sysconfig/prelink
%dir %attr(0755,root,root) %{_sysconfdir}/prelink.conf.d
%dir /var/lib/prelink
%attr(0644,root,root) %ghost %config(missingok,noreplace) /var/lib/prelink/full
%attr(0644,root,root) %ghost %config(missingok,noreplace) /var/lib/prelink/quick
%attr(0644,root,root) %ghost %config(missingok,noreplace) /var/lib/prelink/force
%dir /var/log/prelink
%attr(0644,root,root) %ghost %config(missingok,noreplace) /var/log/prelink/prelink.log
%files doc
%doc doc/prelink.pdf
* Mon Dec 09 2019 Silvan Calarco <> 20130503-2mamba
- disabling in configuration by default; causes problem with recent gcc/glibc and is generally considered obsoleted
* Wed Jul 24 2013 Automatic Build System <> 20130503-1mamba
- automatic update by autodist
* Fri Oct 14 2011 Automatic Build System <> 20111012-1mamba
- automatic version update by autodist
* Wed Dec 22 2010 Davide Madrisan <> 20100106-1mamba
- update to 20100106
- move files from /var/lib/misc to /var/lib/prelink/
- own /var/log/prelink
* Mon Jun 29 2009 Silvan Calarco <> 20061201-3mamba
- specfile updated and rebuilt
* Fri Feb 23 2007 Silvan Calarco <> 20061201-2qilnx
- prelink cron: add support for PRELINK_NOINITCHECK to disable relaunching init
* Fri Jan 19 2007 Davide Madrisan <> 20061201-1qilnx
- update to version 20061201 by autospec
* Fri Dec 23 2005 Davide Madrisan <> 20050610-1qilnx
- package created by autospec