Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 87b311ed7011d1169733517e1dbac8ea > files > 3

tcron-0.4.7-1mdk.src.rpm

%define name tcron
%define version 0.4.7
%define release 1mdk

%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

%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 %buildroot/%_initrddir

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

%clean
rm -rf $RPM_BUILD_ROOT

%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
* 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