From decfc43fed0a8b89738b39fcc03a9355f3011676 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoitel Date: Sun, 8 May 2016 16:41:02 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ toxygen.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++ toxygen_start.patch | 10 ++++++ 3 files changed, 88 insertions(+) create mode 100644 .abf.yml create mode 100644 toxygen.spec create mode 100644 toxygen_start.patch diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..d9ad8a5 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + toxygen-0.1.1.tar.gz: 4e725285b4af34d4cfb209bc39e8ef90f0aeb229 diff --git a/toxygen.spec b/toxygen.spec new file mode 100644 index 0000000..16de665 --- /dev/null +++ b/toxygen.spec @@ -0,0 +1,76 @@ +%define debug %nil +%define debug_package %nil + +Name: toxygen +Summary: Messsanger for tox +Version: 0.1.1 +Release: 1 +Group: Networking/Instant messaging +License: GPLv3 +URL: https://github.com/xveduk/toxygen +Source: %{name}-%{version}.tar.gz +Patch: %{name}_start.patch +BuildArch: noarch +BuildRequires: python >= 2.7 +BuildRequires: fdupes +Requires: python >= 2.7 +Requires: pyside +Requires: pyaudio +Requires: toxcore + +%description +Python based messanger for tox network + +%prep +%setup -q +%patch -p0 + +%build +#nobuild + +%install +install -d %{buildroot}%{_bindir} +install -d %{buildroot}%{python_sitelib}/%{name}/{images,sounds,styles/rc,translations} +install -d %{buildroot}%{_datadir}/applications +install -d %{buildroot}%{_iconsdir} + +install -Dm0644 src/*.py %{buildroot}%{python_sitelib}/%{name} +install -Dm0644 src/images/* %{buildroot}%{python_sitelib}/%{name}/images +install -Dm0644 src/sounds/* %{buildroot}%{python_sitelib}/%{name}/sounds +install -Dm0644 src/translations/* %{buildroot}%{python_sitelib}/%{name}/translations +install -Dm0644 src/styles/rc/*.png %{buildroot}%{python_sitelib}/%{name}/styles/rc +install -Dm0644 src/styles/*.* %{buildroot}%{python_sitelib}/%{name}/styles + +install -Dm0644 src/images/icon.png %{buildroot}%{_iconsdir}/%{name}.png + +ln -s %{python_sitelib}/%{name}/main.py %{buildroot}%{_bindir}/%{name} + +chmod 0755 %{buildroot}%{python_sitelib}/%{name}/main.py + +# menu-entry +mkdir -p %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <