Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > f4a019cb5cc3d74c18f00e24bbef1403 > files > 1

clit-1.8-2plf2008.1.src.rpm

%define name	clit
%define version	1.8
%define tarver	18
%define rel	2
%define distsuffix plf

Name: 	 	%{name}
Summary: 	Converts Microsoft Reader format eBooks into open format
Version: 	%{version}
Release: 	%mkrel %{rel}
Source:		%{name}%{tarver}src.zip
Source1:	ltm-0.33.tar.bz2
URL:		http://www.convertlit.com/
License:	GPL
Group:		Publishing
BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
This program which allows you to convert Microsoft Reader format eBooks into
open format for use with software or devices which are not directly compatible
with Microsoft's Reader. 

This package is in PLF because it may not be legal in countries where
circumvention of copyright protection is illegal, even if fair use is
intended.

%prep
%setup -q -a1 -c %name-%version
perl -p -i -e 's|-O3|\$(RPM_OPT_FLAGS)||g' libtommath-0.33/makefile lib/Makefile clit%{tarver}/Makefile
perl -p -i -e 's|libtommath-0.30|libtommath-0.33||g' clit%{tarver}/Makefile

%build
cd libtommath-0.33
make
cp *.h ../clit%{tarver}
cd ../lib
%make
cd ../clit%{tarver}
%make
										
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%_bindir
cp clit%{tarver}/clit $RPM_BUILD_ROOT/%_bindir

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%{_bindir}/%name

%changelog
* Sat Jan 19 2008 Anssi Hannula <anssi@zarb.org> 1.8-2plf2008.1
- rebuild

* Wed Dec 29 2004 Austin Acton <austin@zarb.org> 1.8-1plf
- initial package