Blob Blame History Raw
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           oct2spec
Version:        1.0.1
Release:        2%{?dist}
Summary:        Python script to generate Octave package spec file

Group:          Development/Languages
License:        GPLv3+
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
Requires:       wget fedora-packager

oct2spec is a small python tool that generates spec file for Octave packages.
It can work from a package name, URL, or a tarball.
oct2spec provides oct2rpm which generates rpm for Octave packages using the 
oct2spec API.

%setup -q

%{__python} build

rm -rf %{buildroot}
%{__python} install --root=%{buildroot} 

rm -rf %{buildroot}

#-f installed_files2
%config(noreplace) %{_sysconfdir}/%{name}.conf

* Thu Apr 7 2011 Orion Poplawski <> 1.0.1-2
- Fix typo
- Use name macro in Source0

* Wed Apr 6 2011 Orion Poplawski <> 1.0.1-1
- Update to 1.0.1 - add obsoletes to spec template

* Wed Mar 30 2011 Orion Poplawski <> 1.0.0-1
- Initial release