Orion Poplawski e60d5ef
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
Orion Poplawski e60d5ef
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
Name:           oct2spec
Orion Poplawski e60d5ef
Version:        1.0.1
684f8e8
Release:        8%{?dist}
Orion Poplawski e60d5ef
Summary:        Python script to generate Octave package spec file
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
Group:          Development/Languages
Orion Poplawski e60d5ef
License:        GPLv3+
684f8e8
URL:            https://git.fedorahosted.org/git/oct2spec.git
684f8e8
Source0:        https://fedorahosted.org/releases/o/c/%{name}/%{name}-%{version}.tar.gz
Orion Poplawski e60d5ef
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
BuildArch:      noarch
Orion Poplawski e60d5ef
BuildRequires:  python-devel
Orion Poplawski e60d5ef
Requires:       wget fedora-packager
Orion Poplawski f2a914c
Requires:       python-jinja2
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
%description
Orion Poplawski e60d5ef
oct2spec is a small python tool that generates spec file for Octave packages.
Orion Poplawski e60d5ef
It can work from a package name, URL, or a tarball.
Orion Poplawski e60d5ef
oct2spec provides oct2rpm which generates rpm for Octave packages using the 
Orion Poplawski e60d5ef
oct2spec API.
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
%prep
Orion Poplawski e60d5ef
%setup -q
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
%build
Orion Poplawski e60d5ef
%{__python} setup.py build
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
%install
Orion Poplawski e60d5ef
rm -rf %{buildroot}
Orion Poplawski e60d5ef
%{__python} setup.py install --root=%{buildroot} 
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
%clean
Orion Poplawski e60d5ef
rm -rf %{buildroot}
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
%files 
Orion Poplawski e60d5ef
#-f installed_files2
Orion Poplawski e60d5ef
%defattr(-,root,root,-)
Orion Poplawski e60d5ef
%doc README LICENSE CHANGELOG
Orion Poplawski e60d5ef
%{python_sitelib}/*
Orion Poplawski e60d5ef
%config(noreplace) %{_sysconfdir}/%{name}.conf
Orion Poplawski e60d5ef
%{_bindir}/%{name}
Orion Poplawski e60d5ef
%{_bindir}/oct2rpm
Orion Poplawski e60d5ef
%{_mandir}/man1/%{name}.1.gz
Orion Poplawski e60d5ef
%{_mandir}/man1/oct2rpm.1.gz
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
%changelog
684f8e8
* Wed Oct 16 2013 Orion Poplawski <orion@cora.nwra.com> - 1.0.1-8
684f8e8
- Update urls
684f8e8
8011b63
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
8011b63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8011b63
5e2db85
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
5e2db85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5e2db85
ce53f07
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
ce53f07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ce53f07
c9c3fc5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
c9c3fc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c9c3fc5
Orion Poplawski f2a914c
* Fri Jun 3 2011 Orion Poplawski <orion@cora.nwra.com> 1.0.1-3
Orion Poplawski f2a914c
- Add Requires: python-jinja2 (Bug #710407)
Orion Poplawski f2a914c
Orion Poplawski e60d5ef
* Thu Apr 7 2011 Orion Poplawski <orion@cora.nwra.com> 1.0.1-2
Orion Poplawski e60d5ef
- Fix typo
Orion Poplawski e60d5ef
- Use name macro in Source0
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
* Wed Apr 6 2011 Orion Poplawski <orion@cora.nwra.com> 1.0.1-1
Orion Poplawski e60d5ef
- Update to 1.0.1 - add obsoletes to spec template
Orion Poplawski e60d5ef
Orion Poplawski e60d5ef
* Wed Mar 30 2011 Orion Poplawski <orion@cora.nwra.com> 1.0.0-1
Orion Poplawski e60d5ef
- Initial release