Release: 0.1
License: RPL Rebane Public License (beerware)
Group: Applications/System
-Source0: http://rebane.alkohol.ee/%{name}.c.txt
-# Source0-md5: cf7cc688e32668bc297477a15069e299
+Source0: http://glen.alkohol.ee/cl/%{name}-%{version}.tar.bz2
+# Source0-md5: 05797d09bbb4d4c8b8c5024e6fb21ed0
+URL: http://glen.alkohol.ee/cl/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
rm -rf $RPM_BUILD_ROOT
%prep
-%setup -qcT
-cp %{SOURCE0} cl.c
+%setup -q
%build
-%{__cc} cl.c -o cl -lpam
+%{__make} \
+ OPTFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sbindir}
-
-install cl $RPM_BUILD_ROOT%{_sbindir}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)