Summary: Biorhythmus
-Summary(pl): biorytm
+Summary(pl): Biorytm
Name: br
Version: 0.1
Release: 1
%description -l pl
Prosty kre¶larz biorytmów w ascii-art.
-%package cgi
-Summary: aqq
-Summary(pl): aqq
-Group: Applications
+#%package cgi
+#Summary: aqq
+#Summary(pl): aqq
+#Group: Applications
-%description cgi
-cgi
+#%description cgi
-%description cgi -l pl
-cgi
+#%description cgi -l pl
%prep
%setup -q -n %{name}
%build
rm -f %{name}.c
-cp %{SOURCE1} ./
-%{__cc} -lm -o %{name} %{name}.c
+cp %{SOURCE1} .
+
+%{__cc} %{rpmldflags} -o %{name} %{rpmcflags} %{name}.c
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/bin
+install -d $RPM_BUILD_ROOT%{_bindir}
-install %{name} $RPM_BUILD_ROOT/usr/bin
+install %{name} $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
-#%%{_datadir}/%{name}
-%files cgi
-%defattr(644,root,root,755)
-#%doc extras/*.gz
-#%%{_datadir}/%{name}-ext
+#%files cgi
+#%defattr(644,root,root,755)