Skip to content

Instantly share code, notes, and snippets.

@kadel
Last active April 5, 2016 11:53
Show Gist options
  • Select an option

  • Save kadel/c5d617cda3d1e96e323b to your computer and use it in GitHub Desktop.

Select an option

Save kadel/c5d617cda3d1e96e323b to your computer and use it in GitHub Desktop.
openshift2nulecule.spec
%define name openshift2nulecule
%define version 0.0.1
%define release 1
Summary: Tool to create Nulecule from OpenShift
Name: %{name}
Version: %{version}
Release: %{release}
License: LGPL3
BuildArch: noarch
Url: https://github.com/kadel/openshift2nulecule
Source0: %{name}-%{version}.tar.gz
BuildRequires: python2-devel >= 2.4
Requires: python-requests
Requires: python-anymarkup
%description
Tool for creating Nulecule application from OpenShift project
%prep
%autosetup -n %{name}-%{version}
%build
#python2 setup.py build
%py2_build
%install
#python2 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%py2_install
%clean
rm -rf $RPM_BUILD_ROOT
#files -f INSTALLED_FILES
#defattr(-,root,root)
%files -n %{name}
%{python2_sitelib}/*
%doc README.md CHANGELOG.md
%{_bindir}/openshift2nulecule
%changelog
* Thu Jul 21 2016 Tomas Kral <[email protected]> 0.0.1-1
- initial version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment