%global commit df3bf2cb905382201ac5f3b621caaa96625da4c9 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global package_name irawadi-user Name: python-irawadi-user Version: 0.1 Release: 5%{?dist} Summary: Python Library for manage system user in Linux License: GPLv3 URL: https://github.com/yograterol/irawadi-user Source0: https://github.com/yograterol/%{package_name}/archive/%{commit}/%{package_name}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python2-devel %description Python Library for manage system user and group in Linux. With Irawadi-user, the developer can add users, update the password to users and delete users account %prep %setup -qn %{package_name}-%{commit} %build %{__python2} setup.py build %install %{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files %doc LICENSE README.md %{python_sitelib}/irawadi_user %{python_sitelib}/irawadi_user-*.egg-info %changelog * Fri Oct 25 2013 Rino Rondan 0.1-5 - Remove the global package_name_file - Add the name of directory on files * Fri Oct 25 2013 Rino Rondan 0.1-4 - Removed * from python_sitelib - Added package_name_file variable to use on file * Fri Oct 25 2013 Rino Rondan 0.1-3 - Added package_name variable to modify Source0,prep - Removed commented lined on spec - Removed macro of python binary to the correct * Thu Oct 24 2013 Rino Rondan 0.1-2 - Changed name of packet * Thu Oct 24 2013 Rino Rondan 0.1-1 - Initial Packaging