LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pyk.spec of Package pyk (Project home:zhonghuaren)

Name: pyk
Summary: Text editor in PyQt4
Version: 1.0.16
Release: 1
Group: Applications/Editors
License: GPLv2
URL: http://kib2.free.fr/PyK/
Source0: http://kib2.free.fr/PyK/PYK.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
Requires: python-docutils
Requires: PyQt4
Obsoletes: pyedit, restinpeace

%description
PyK is a new editor, successor of PyEdit and reStInPeace, written in Python
with the help of the Qt4 toolkit. It has nice features and is highly extensible
via plugins and commands. I'm developping it for fun, because I really like
text editors.

%prep
%setup -q -n PYK!

%build

%install
install -d %{buildroot}%{_datadir}/%{name}
cp -a * %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=PyK
Comment=Text editor in PyQt4
Exec=pyk
Icon=%{_datadir}/%{name}/PyK.png
Terminal=false
Type=Application
Categories=Utility;TextEditor;
StartupNotify=true
EOF
install -d %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/usr/bin/bash
cd %{_datadir}/%{name}
python main.py
EOF

%files
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop

%changelog
* Mon Oct 21 2013 Huaren Zhong <huaren.zhong@gmail.com> - 1.0.16
- Rebuild for Fedora