Permalink
Browse files

Add the spec file

  • Loading branch information...
pypingou committed Feb 11, 2012
1 parent 25534de commit d9b97297cedd0285fee248e2673fb6c186833331
Showing with 38 additions and 0 deletions.
  1. +38 −0 pypi2spec.spec
View
@@ -0,0 +1,38 @@
+Name: pypi2spec
+Version: 0.1.0
+Release: 1%{?dist}
+Summary: Python script to generate spec file for pypi projects
+
+License: GPLv3+
+URL: http://github.com/pypingou/pypi2spec
+Source0: %{name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python-devel
+
+%description
+pypi2spec makes your life easier by helping you to generate
+spec file as close to the Fedora guidelines as possible for
+project hosted on pypi.
+
+%prep
+%setup -q
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+
+%files
+%doc LICENSE README
+%{python_sitelib}/*
+%{_bindir}/%{name}
+
+%changelog
+* Sat Feb 11 2012 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.0-1
+- Initial package for Fedora

0 comments on commit d9b9729

Please sign in to comment.