Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > 8e55a72c35fa6c106b320475b5c6b036 > files > 3

tcron-0.5.0-1mdk.src.rpm

%define name tcron
%define version 0.5.0
%define release %mkrel 1

%define major 0
%define libname %mklibname %name %major

Summary: Another cron daemon
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
Patch0: %name.makefile.patch.bz2
License: GPL
Group: System/Servers
Url: http://tcron.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-buildroot
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description
Tcron integrates 'cron' with the ATX power-up capability.
It can invoke multiple cron jobs and switch the computer on
and off any number of times per day.

%package -n %libname
Summary: Library need by tcron
Group: System/Libraries
Provides: lib%name = %version-%release

%description -n %libname
Tcron integrates 'cron' with the ATX power-up capability.
It can invoke multiple cron jobs and switch the computer on
and off any number of times per day.

This package contains the tcron common library.

%package -n %libname-devel
Summary: The development files from tcron
Group: Development/Other
Provides: lib%name-devel = %version-%release
Provides: %name-devel = %version-%release
Requires: %libname = %version-%release

%description -n %libname-devel
Tcron integrates 'cron' with the ATX power-up capability.
It can invoke multiple cron jobs and switch the computer on
and off any number of times per day.

This package contains files need to create applications using
tcron library.

%prep
%setup -q
%patch0 -p0 -b .orig

%build
%make prefix=%_prefix TCRONTAB_AP_LIB=%_libdir 

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std prefix=%_prefix TCRONTAB_AP_LIB=%_libdir

mkdir -p %buildroot%_initrddir
mv  %buildroot/%_sysconfdir/init.d/tcrond/tcrond.init %buildroot/%_initrddir/tcrond

(
cd %buildroot%_libdir
ln -s libtcrontab-api.so.%{major} libtcrontab-api.so
)

%clean
rm -rf $RPM_BUILD_ROOT

%post
%_post_service tcrond

%preun
%_preun_service tcron


%post -n %libname -p /sbin/ldconfig

%postun -n %libname -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README Changelog
%_sbindir/tcrond
%_bindir/*
%_initrddir/tcrond
%dir %_sysconfdir/tcrontab
%config(noreplace) %_sysconfdir/tcrontab/tcrontab.conf
%_libdir/tcrontab-ap

%files -n %libname
%defattr(-,root,root)
%doc README Changelog
%_libdir/*.so.*

%files -n %libname-devel
%defattr(-,root,root)
%doc README README.api Changelog demo
%_libdir/*.so
%_libdir/*.a
%_includedir/*.h

%changelog
* Mon Sep 05 2005 Olivier Thauvin <nanardon@mandriva.org> 0.5.0-1mdk
- 0.5.0
- fix #18246

* Wed Jul 07 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.4.7-1mdk
- 0.4.7

* Wed Jan 14 2004 Olivier Thauvin <nanardon@klama.mandrake.org> 0.4.5-1mdk
- 0.4.5

* Thu Jan  8 2004 Olivier Thauvin <nanardon@klama.mandrake.org> 0.4.4-1mdk
- 0.4.4
- fix files list
- rediff patch0

* Thu Oct 23 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.4.1-1mdk
- 1st mdk spec