-%define iw_version 0.6.1
-Summary: CheckInstall installations tracker, version 1.4.1
-Summary(pl): Proste narzêdzie do tworzenia i zarzadzania pakietami (.tgz, .rpm, .deb)
+Summary: CheckInstall installations tracker
+Summary(pl): Proste narzêdzie do tworzenia i zarz±dzania pakietami (.tgz, .rpm, .deb)
Name: checkinstall
-Version: 1.4.1
-Release: 1
+Version: 1.5.1
+Release: 2
License: GPL
Group: Development
-Group(de): Entwicklung
-Group(es): Desarrollo
-Group(pl): Programowanie
-Group(pt_BR): Desenvolvimento
-Group(ru): òÁÚÒÁÂÏÔËÁ
-Group(uk): òÏÚÒÏÂËÁ
+Requires: bash
+Requires: installwatch >= 0.6.3
Source0: http://asic-linux.com.mx/~izto/%{name}-%{version}.tgz
+# Source0-md5: dd418f56c483014f5759b09aa59ea42d
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
installation script ("make install" "make install_modules", "setup",
etc), builds a standard binary package and installs it in your system
giving you the ability to uninstall it with your distribution's
-standard package management utilities. (deb isn't supported yet)
+standard package management utilities.
%description -l pl
Program do ¶ledzenia modyfikacji robionych przez skrypty instalacyjne
("make install", "setup", itp), potrafi zbudowaæ standartow± paczkê i
zainstalowaæ j± w twoim systemie z mo¿liwo¶ci± odinstalowania jej
-narzêdziami dostêpnymi w twojej dystrybucji (rpm, deb, tgz). (deb nie
-jest jeszcze obslugiwany)
+narzêdziami dostêpnymi w twojej dystrybucji (obs³uguje rpm, deb, tgz).
%prep
%setup -q
-%build
-%{__make} CC="gcc %{rpmcflags} -Wall"
-
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT%{_prefix}/{bin,sbin,lib/checkinstall} -p
+sed -e "s|#\!/bin/sh|#\!/bin/bash|" < checkinstall > foo
+sed -e "s|/usr/local|%{_prefix}|" < foo > checkinstall
+
install {checkinstall,makepak} $RPM_BUILD_ROOT%{_sbindir}
install checkinstallrc $RPM_BUILD_ROOT%{_libdir}/checkinstall
-install installwatch-%{iw_version}/installwatch $RPM_BUILD_ROOT%{_bindir}
-install installwatch-%{iw_version}/installwatch.so $RPM_BUILD_ROOT%{_libdir}
-gzip -9nfr doc-pak/*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{_prefix}/*
%doc doc-pak
+%attr(755,root,root) %{_sbindir}/checkinstall
+%attr(755,root,root) %{_sbindir}/makepak
+%config %{_libdir}/checkinstall/checkinstallrc