Skip to content

Commit

Permalink
Add pdc-client spec file.
Browse files Browse the repository at this point in the history
Move client docs under 'pdc_client/'.
  • Loading branch information
xychu committed Sep 10, 2015
1 parent 0a777ad commit 479cb41
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
File renamed without changes.
48 changes: 48 additions & 0 deletions pdc_client/pdc-client.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}


Name: pdc-client
Version: 0.1.0
Release: 1%{?dist}
Summary: Console client for interacting with Product Definition Center
Group: Development/Libraries
License: MIT
URL: https://github.com/release-engineering/product-definition-center
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
Requires: python-requests
Requires: python-requests-kerberos
Requires: beanbag


%description
This package contains a console client for interacting with Product Definition
Center (PDC)


%prep
%setup -q -n %{name}-%{version}


%install
rm -rf %{buildroot}

mkdir -p %{buildroot}/%{python_sitelib}/pdc_client
cp -R * %{buildroot}/%{python_sitelib}/pdc_client

mkdir -p %{buildroot}%{_defaultdocdir}/pdc_client

# Install PDC client command line interface
install -m 0644 -D -p bin/pdc_client %{buildroot}%{_bindir}/pdc_client

install -m 0644 -D -p docs/pdc_client.1 %{buildroot}%{_mandir}/man1/pdc_client.1
gzip %{buildroot}%{_mandir}/man1/pdc_client.1


%files
%{python_sitelib}/pdc_client
%attr(755, root, root) %{_bindir}/pdc_client
%{_mandir}/man1/pdc_client.1.gz


%changelog

0 comments on commit 479cb41

Please sign in to comment.