pnemade pushed to dnf-langpacks (master). "update to 0.9.0 release (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 13:15:19 UTC 2015


>From 79526627487fc86695387855e1a895c57e9712a5 Mon Sep 17 00:00:00 2001
From: Parag Nemade <pnemade at redhat.com>
Date: Mon, 30 Mar 2015 18:44:43 +0530
Subject: update to 0.9.0 release

- follow update py2/py3 packaging guidelines

diff --git a/dnf-langpacks.spec b/dnf-langpacks.spec
index 06de1f6..bc11d4a 100644
--- a/dnf-langpacks.spec
+++ b/dnf-langpacks.spec
@@ -2,8 +2,8 @@
 
 Summary:       Langpacks plugin for dnf
 Name:          dnf-langpacks
-Version:       0.8.1
-Release:       2%{?dist}
+Version:       0.9.0
+Release:       1%{?dist}
 License:       GPLv2+
 URL:           https://github.com/pnemade/dnf-langpacks
 Source0:       https://github.com/pnemade/%{name}/archive/%{version}.tar.gz
@@ -36,28 +36,30 @@ language for packages you install.
 %endif
 
 %prep
-%setup -q
+%setup -qc
+mv %{name}-%{version} python2
+pushd python2
 rm -rf *.egg-info
+cp -p README.md NEWS LICENSE ../
+popd
 
-sed -i 's|, 0755||g' langpacks.py
-
-rm -rf py3
-mkdir ../py3
-cp -a . ../py3/
-mv ../py3 ./
-sed -i 's|2.7|3.4|g' py3/setup.py
+%if 0%{?with_python3}
+cp -a python2 python3
+sed -i 's|2.7|3.4|g' python3/setup.py
+%endif
 
 %build
 
 %install
 %if 0%{?with_python3}
-pwd
-pushd py3
+pushd python3
 %{__python3} setup.py install --skip-build --root=%{buildroot}
 popd
 %endif
 
+pushd python2
 %{__python2} setup.py install --skip-build --root=%{buildroot}
+popd
 
 %files
 %doc README.md NEWS
@@ -78,6 +80,10 @@ popd
 %endif
 
 %changelog
+* Mon Mar 30 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.9.0-1
+- update to 0.9.0 release
+- follow update py2/py3 packaging guidelines
+
 * Sun Mar 08 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.8.1-2
 - Fix dependency dnf-plugins-core to python-dnf-plugins-core
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/dnf-langpacks.git/commit/?h=master&id=79526627487fc86695387855e1a895c57e9712a5


More information about the scm-commits mailing list