Skip to content

Commit

Permalink
fixes pkgconfig dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
iahmad-khan committed Oct 14, 2016
1 parent a4ec76a commit 3f81aac
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
24 changes: 24 additions & 0 deletions py2-nose-toolfile.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### RPM external py2-nose-toolfile 1.0
Requires: py2-nose
%prep

%build

%install

mkdir -p %{i}/etc/scram.d
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-nose.xml
<tool name="py2-nose" version="@TOOL_VERSION@">
<info url="https://pypi.python.org/pypi/nose"/>
<client>
<environment name="PY2_NOSE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$PY2_NOSE/lib"/>
<runtime name="PYTHONPATH" value="$PY2_NOSE/lib/python@PYTHONV@/site-packages" type="path"/>
</client>
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post

17 changes: 17 additions & 0 deletions py2-nose.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### RPM external py2-nose 1.3.7
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES
%define my_name %(echo %n | cut -f2 -d-)
Source: https://pypi.python.org/packages/58/a5/0dc93c3ec33f4e281849523a5a913fa1eea9a3068acfa754d44d88107a44/nose-%{realversion}.tar.gz
Requires: python
BuildRequires: py2-setuptools

%prep
%setup -n %{my_name}-%{realversion}

%build
python setup.py build

%install
python setup.py install --single-version-externally-managed --record=/dev/null --skip-build --prefix=%{i}
perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/nosetests-2.7 %{i}/bin/nosetests

2 changes: 1 addition & 1 deletion py2-pkgconfig.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Source: https://pypi.python.org/packages/87/35/4af9634270c00e3411cf951b7e0ea796c262922357cfc7609a86d31f072b/pkgconfig-1.1.0.tar.gz
BuildRequires: py2-setuptools
Requires: python
Requires: python py2-nose

%prep
%setup -n pkgconfig-%{realversion}
Expand Down

0 comments on commit 3f81aac

Please sign in to comment.