| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hey all, I have a quick question. I have created/modified the preload spec from the package preload and there are %config directives as well as other directives listed in the spec file. While it works I have found little information of what each of those macro's does and how to effectively work with them. Is there a reference someone can point me to so I can read up a little bit more please? Cheers, Marc
Name: preload
Version: 0.4
Release: 0%{?dist}.test
Summary: preload is an adaptive readahead daemon.
Group: Applications/System
License: GPL
URL: http://preload.sf.net/
Source0: http://easynews.dl.sourceforge.net/sourceforge/preload/preload-0.4.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: basesystem, glib2-devel
Requires: basesystem
%description
preload runs as a daemon and gathers information about processes running on
the system and shared-objects that they use. This information is saved in a
file to keep across runs of preload.
%prep
%setup -q
%build
%configure
make #%{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
%doc doc/*.txt
%{_sbindir}/preload
%{_datadir}/man/man8/preload.8.gz
%{_sysconfdir}/rc.d/init.d/preload
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/preload.conf
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/sysconfig/preload
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/logrotate.d/preload
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_localstatedir}/log/preload.log
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_localstatedir}/lib/preload/preload.state
%attr(0755,root,root) %dir %{_localstatedir}/lib/preload
%post
/sbin/chkconfig --add preload
%preun
if [ "$1" = "0" ]; then
/sbin/service preload stop >/dev/null 2>&1
/sbin/chkconfig --del preload
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service preload condrestart >/dev/null 2>&1
fi
%changelog
-- Fedora-mentors-list mailing list Fedora-mentors-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-mentors-list
[Home] [Fedora Legacy] [Fedora Desktop] [Red Hat 9 Bible] [Fedora Bible] [Fedora SELinux] [Big List of Linux Books] [Yosemite News] [Yosemite Photos] [KDE Users] [Fedora Tools]