[poezio] Update to 0.8 with upstream git snapshot
fantom
fantom at fedoraproject.org
Thu Jun 6 20:37:20 UTC 2013
commit c35920ec8eb7f9bab8336738049b40c1d5b79173
Author: Matthieu Saulnier <fantom at fedoraproject.org>
Date: Thu Jun 6 22:18:25 2013 +0200
Update to 0.8 with upstream git snapshot
poezio-0.6.2.tar.xz | Bin 43880 -> 0 bytes
poezio.spec | 80 +++++++++++++++++++++++----------------------------
2 files changed, 36 insertions(+), 44 deletions(-)
---
diff --git a/poezio.spec b/poezio.spec
index 0cadafb..7fb0b58 100644
--- a/poezio.spec
+++ b/poezio.spec
@@ -1,18 +1,24 @@
+%global snapdate 20130606
+%global snaphash 9e8860c
+%global snapver %{snapdate}git%{snaphash}
+%global __python %{__python3}
+
+
Name: poezio
-Version: 0.6.2
-Release: 7%{?dist}
+Version: 0.8
+Release: 0.1.%{snapver}%{?dist}
Summary: IRC-like jabber (XMPP) console client
-Group: Applications/Internet
License: GPLv3
URL: http://poezio.eu
-Source0: http://codingteam.net/project/%{name}/download/file/%{name}-%{version}.tar.xz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Buildarch: noarch
+# Source Tarball built from upstream git repository:
+# $ git clone git://git.louiz.org/poezio
+# $ tar -Jcf poezio-0.8-20130606git9e8860c.tar.xz poezio/
+Source0: %{name}-%{version}-%{snapver}.tar.xz
-BuildRequires: python2-devel
+BuildRequires: python3-devel
+Requires: python3-sleekxmpp
-Requires: python-xmpp >= 0.5.0
%description
A jabber (XMPP) console client that aims at being similar to popular IRC
@@ -20,57 +26,43 @@ clients such as Irssi or Weechat. Its main goal is to let the user
connect to the Jabber network and join chat rooms without requiring any
registration.
+
%prep
-%setup -q
+%setup -qn %{name}
%build
-# Nothing needs to be compiled, python only software
-%{nil}
+make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
-# create directories
-mkdir -p %{buildroot}%{_datadir}/%{name}/data
-mkdir -p %{buildroot}%{_datadir}/%{name}/src
-mkdir -p %{buildroot}%{_bindir}
-
-# install data files
-install -p -m644 data/* %{buildroot}%{_datadir}/%{name}/data/
-
-# install sources files
-install -p -m644 src/*.py %{buildroot}%{_datadir}/%{name}/src/
-
-# remove shebangs in non-executable files
-# will be fixed upstream in next release
-# http://codingteam.net/project/poezio/bugs/show/1669
-for lib in %{buildroot}%{_datadir}/%{name}/src/*.py; do
- sed '/^\#\!\/usr\/bin\//d' $lib > $lib.new &&
- touch -r $lib $lib.new
- mv $lib.new $lib
-done
-
-# create launcher
-cat > %{buildroot}%{_bindir}/%{name} <<EOF
-#!/usr/bin/env sh
-cd %{_datadir}/poezio/src/ && python poezio.py
-EOF
-
-chmod 755 %{buildroot}%{_bindir}/%{name}
-
-
-%clean
-rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} prefix=%{_prefix}
%files
-%defattr(-,root,root,-)
%doc CHANGELOG COPYING README
%{_bindir}/%{name}
%{_datadir}/%{name}/
+%{_docdir}/%{name}/
+%{_mandir}/man1/%{name}.1*
+%{python3_sitearch}/%{name}/
+%{python3_sitearch}/%{name}_plugins/
+%{python3_sitearch}/%{name}-%{version}_dev-py3.3.egg-info
+
+
%changelog
+* Thu Jun 06 2013 Matthieu Saulnier <fantom at fedoraproject.org> - 0.8-0.1.20130606git9e8860c
+- Update to 0.8 with upstream git snapshot
+- Add python3 macro to bytecompile with the correct python version
+- Remove obsolete Group tag
+- Remove obsolete BuildRoot tag
+- Remove BuildArch tag
+- Update Requires and BuildRequires tags
+- Update %%setup command for new Source
+- Remove obsolete %%clean section
+- Remove obsolete %%defattr line in %%files section
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list