35bfa8e
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
35bfa8e
35bfa8e
Name:           python-firkin
35bfa8e
Version:        0.02
188fdd5
Release:        2%{?dist}
35bfa8e
Summary:        A python module to convert between different measurement units
35bfa8e
35bfa8e
Group:          Development/Languages
35bfa8e
License:        GPLv2+
35bfa8e
URL:            http://www.florian-diesch.de/software/firkin/
35bfa8e
Source0:        http://www.florian-diesch.de/software/firkin/dist/firkin-%{version}.tar.gz
35bfa8e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
35bfa8e
BuildArch:      noarch
35bfa8e
35bfa8e
BuildRequires:  python-devel
35bfa8e
BuildRequires:  python-setuptools
35bfa8e
35bfa8e
35bfa8e
%description
35bfa8e
firkin is a python module to convert between different measurement
35bfa8e
units. 
35bfa8e
35bfa8e
35bfa8e
%prep
35bfa8e
%setup -q -n firkin-%{version}
35bfa8e
# Convert to utf-8
35bfa8e
for file in README; do
35bfa8e
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
35bfa8e
    touch -r $file $file.new && \
35bfa8e
    mv $file.new $file
35bfa8e
done
35bfa8e
35bfa8e
35bfa8e
%build
35bfa8e
%{__python} setup.py build
35bfa8e
35bfa8e
35bfa8e
%install
35bfa8e
rm -rf %{buildroot}
35bfa8e
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
35bfa8e
35bfa8e
35bfa8e
%clean
35bfa8e
rm -rf %{buildroot}
35bfa8e
35bfa8e
35bfa8e
%files
35bfa8e
%defattr(-,root,root,-)
35bfa8e
%doc README PKG-INFO
35bfa8e
%{python_sitelib}/firkin.p*
35bfa8e
%{python_sitelib}/firkin*.egg-info
35bfa8e
35bfa8e
35bfa8e
%changelog
188fdd5
* Tue Feb 20 2010 Fabian Affolter <fabian@bernewireless.net> - 0.02-1
188fdd5
- Rebuild
188fdd5
35bfa8e
* Mon Jul 13 2009 Fabian Affolter <fabian@bernewireless.net> - 0.02-1
35bfa8e
- Initial spec for Fedora