Blob Blame 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:           R2spec
Version:        4.2.1
Release:        14%{?dist}
Summary:        Python script to generate R spec file

License:        GPLv3+
URL:            https://fedorahosted.org/r2spec/
Source0:        https://fedorahosted.org/releases/r/2/r2spec/R2spec-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python2-devel
Requires:       R python2-jinja2 wget fedora-packager
# On EL5 we need a version of python which has extractall backported:
Requires:       python2 >= python-2.6
Provides:       R2rpm >= 1.0.0

%description
R2spec is a small python tool that generates spec file for R libraries.
It can work from a URL or a tarball.
R2spec provides R2rpm which generates rpm for R libraries using the 
R2spec API.

%prep
%setup -q

%build
%{__python2} setup.py build

%install
rm -rf %{buildroot}
%{__python2} setup.py install --root=%{buildroot}
install r2spec/specfile.tpl %{buildroot}/%{python2_sitelib}/r2spec/
chmod -x %{buildroot}/%{python2_sitelib}/r2spec/specfile.tpl

## Only work localy, needs internet
#%check
#%{__python} tests.py

%files
#-f installed_files2
%doc README LICENSE CHANGELOG
%{python2_sitelib}/*
%config(noreplace) %{_sysconfdir}/%{name}/repos.cfg
%{_bindir}/%{name}
%{_bindir}/R2rpm
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/man1/R2rpm.1.gz

%changelog
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Aug 10 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 4.2.1-13
- Bump release

* Wed Jul 18 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 4.2.1-12
- Use the py2 version of the macros

* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 4.2.1-10
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.1-9
- Escape macros in %%changelog

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Oct 06 2016 Pierre-Yves Chibon <pingou@pingoured.fr> - 4.2-1-5
- Drop the dependency on python-argparse now that it's been in python's stdlib
  for so long

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.1-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Thu Jun 04 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 4.2.1-1
- Update to 4.2.1

* Thu Jun 04 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 4.2.0-1
- Update to 4.2.0
- Switch from '.format' invocations to '%%'; backward compatible (Allen S. Rout)
- Fix deps on EL5
- Document in the specfile the dependencies world according to R (Allen S. Rout)
- Accept package names with leading 'R-'.. (Allen S. Rout)
- Fail elegantly is the rpmbuild folder does not exist (RHBZ#901771)
- Do not mark DESCRIPTION R package file as doc (Castedo Ellerman)

* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sat Feb 11 2012 Pierre-Yves Chibon <pingou@pingoured.fr> - 4.1.0-1
- Update to 4.1.0

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Sat Nov 12 2011 Pierre-Yves Chibon <pingou@pingoured.fr> - 4.0.0-1
- Update to 4.0.0 which is an almost complete rewrite

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Tue Jul 28 2010 pingou <pingou-at-pingoured.fr> 3.0.3-1
- Release 3.0.3

* Tue Jul 27 2010 pingou <pingou-at-pingoured.fr> 3.0.2-3
- Change python to %%{__python} (enables to specify 
   the python version at build time) Request from Olivier Lahaye

* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Tue Jun 29 2010 pingou <pingou-at-pingoured.fr> 3.0.2-1
- Release 3.0.2

* Mon Jun 28 2010 pingou <pingou-at-pingoured.fr> 3.0.1-1
- Release version 3.0.1
- Update the description (R2spec is now more a tool than a script)

* Wed May 05 2010 pingou <pingou-at-pingoured.fr> 3.0.0-1
- Release version 3.0.0
- Update the description

* Wed May 05 2010 pingou <pingou-at-pingoured.fr> 3.0.0-0.9
- Prerelease 0.9
- Small bug fixes
- The argument to rpmbuild is configurable
- Fix typo in changelog
- Add fedora-packager as Requires

* Sat Mar 27 2010 ingou <pingou-at-pingoured.fr> 3.0.0-0.8
- Prerelease 0.8
- Enable to specify the command in the conf file

* Sat Mar 27 2010 ingou <pingou-at-pingoured.fr> 3.0.0-0.7
- Prerelease 0.7
- Fix the formatting of the description
- Option to use mock to build the RPMs

* Fri Mar 26 2010 ingou <pingou-at-pingoured.fr> 3.0.0-0.6
- Prerelease 0.6
- Fix R2rpm.py

* Thu Mar 25 2010 Pingou <pingou-at-pingoured.fr> 3.0.0-0.5
- Prerelease 0.5
- Do not print the todo while running R2rpm
- Fix summary if ends with a dot
- Refactor the function to read the rpm macro
- Change UTF-8 to utf-8 to make emacs happy

* Wed Mar 24 2010 Pingou <pingou-at-pingoured.fr> 3.0.0-0.4
- Prerelease 0.4
- Fix the description to fit in the length
- Add wget in the requires

* Wed Mar 24 2010 Pingou <pingou-at-pingoured.fr> 3.0.0-0.3
- Prerelease 0.3
- Add the -p option to build from a package name
- Output the rpm generated

* Tue Mar 23 2010 Pingou <pingou-at-pingoured.fr> 3.0.0-0.2
- Prerelease 0.2 
- Add the -p option to build from a package name
- Add the man page for R2rpm
- Fix release
- Fix changelog

* Sun Mar 07 2010 Pingou <pingou-at-pingoured.fr> 3.0.0-0.1
- Prerelease 0.1
- Add the R2rpm script

* Sun Aug 02 2009 Pingou <pingou-at-pingoured.fr> 2.5.3-1
- New upstream release

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sun Mar 22 2009 Pingou <pingou-at-pingoured.fr> 2.5.2-2
- Correct the source0

* Sun Mar 22 2009 Pingou <pingou-at-pingoured.fr> 2.5.2-1
- New upstream release

* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sun Dec 07 2008 Pingou <pingou-at-pingoured.fr> 2.5.1-6
- Correct the third sed 

* Sun Dec 07 2008 Pingou <pingou-at-pingoured.fr> 2.5.1-5
- Add the new sed to change the ~

* Sun Dec 07 2008 Pingou <pingou-at-pingoured.fr> 2.5.1-4
- Remove the Patch0

* Fri Dec 05 2008 Pingou <pingou-at-pingoured.fr> 2.5.1-3
- Apply patch for copy of the sources

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.5.1-2
- Rebuild for Python 2.6

* Tue Oct 07 2008 Pingou <pingou-at-pingoured.fr> 2.5.1-1
- New upstream release

* Sun Aug 31 2008 Pingou <pingou-at-pingoured.fr> 2.5.0-3
- Bring __init__.py back :)

* Sun Aug 31 2008 Pingou <pingou-at-pingoured.fr> 2.5.0-2
- Change Source0 to the correct one
- Correct a bug SOURCES != SOURCe
- Remove file __init__.py
- Change defattr(-,root,root) to defattr(-,root,root,-)

* Sun Aug 31 2008 Pingou <pingou-at-pingoured.fr> 2.5.0-1
- New upstream release

* Thu Aug 28 2008 Pingou <pingou-at-pingoured.fr> 2.4.2-1
- Update to version 2.4.2

* Wed Aug 20 2008 Pingou <pingou-at-pingoured.fr> 2.4.1-1
- Update to version 2.4.1

* Sun Aug 18 2008 Pingou <pingou-at-pingoured.fr> 2.4.0-1
- Update to version 2.4.0
- Addition of the spec into the sources

* Mon Aug 11 2008 Pingou <pingou-at-pingoured.fr> 2.3-2
- Change the source0 and url thanks to fedorahosted.org

* Sun Aug 10 2008 Pingou <pingou-at-pingoured.fr> 2.3-1
- Update to version 2.3

* Wed Jul 30 2008 Pingou <pingou-at-pingoured.fr> 2.2-1
- Update to version 2.2

* Wed Jul 30 2008 Pingou <pingou-at-pingoured.fr> 2.1-1
- Update to version 2.1

* Wed Jul 30 2008 Pingou <pingou-at-pingoured.fr> 2.0-1
- Update to version 2.0

* Tue Jul 29 2008 Pingou <pingou-at-pingoured.fr> 1.3-1
- First RPM for Fedora