Name: ninja-ide
Version: 2.3
Release: 5%{?dist}
Summary: Ninja IDE for Python development
License: GPLv3
URL: http://www.ninja-ide.org/
Source0: https://github.com/downloads/%{name}/%{name}/%{name}-%{version}.zip
Source1: %{name}.desktop
Source2: %{name}.1.gz
BuildRequires: desktop-file-utils
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-inotify
BuildRequires: PyQt4-devel
Requires: PyQt4
Requires: python-inotify
Requires: python-setuptools
BuildArch: noarch
%description
NINJA-IDE (from the recursive acronym: "Ninja-IDE Is Not Just Another IDE"),
is a cross-platform integrated development environment (IDE). NINJA-IDE runs
on Linux/X11, Mac OS X and Windows desktop operating systems, and allows
developers to create applications for several purposes using all the tools and
utilities of NINJA-IDE, making the task of writing software easier and more
enjoyable.
%prep
%setup -q
%build
%{__python} setup.py build
%install
install -Dm 755 icon.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
mkdir -p %{buildroot}%{_mandir}/man1
cp %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1.gz
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
%{SOURCE1}
find %{buildroot} -name 'pep8mod.py' | xargs chmod 0755
%check
%{__python} setup.py test
%files
%doc COPYING README.md
%{python_sitelib}/ninja_ide/
%{python_sitelib}/ninja_tests/
%{python_sitelib}/NINJA_IDE-2.3-py2.7.egg-info/
%{_datadir}/pixmaps/%{name}.png
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1.gz
%changelog
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Jul 12 2013 Nikos Roussos <comzeradd@fedoraproject.org> - 2.3-1
- Update to 2.3
* Sat May 11 2013 Nikos Roussos <comzeradd@fedoraproject.org> - 2.2-1
- Update to 2.2
* Wed Oct 17 2012 Nikos Roussos <comzeradd@fedoraproject.org> 2.1.1-4
- added missing dependency
* Wed Oct 10 2012 Nikos Roussos <comzeradd@fedoraproject.org> 2.1.1-3
- Fix perm error on a py script
* Tue Oct 09 2012 Nikos Roussos <comzeradd@fedoraproject.org> 2.1.1-2
- Minor fixes and man page inclusion
* Mon Oct 08 2012 Nikos Roussos <comzeradd@fedoraproject.org> 2.1.1-1
- Initial package for Fedora