Skip to content

Commit

Permalink
Merge pull request #69 from edquist/SOFTWARE-4786.packaging
Browse files Browse the repository at this point in the history
update packaging for python3; bump version (SOFTWARE-4786)
  • Loading branch information
edquist authored Sep 30, 2021
2 parents 7608d38 + 8b37bcf commit 52752d0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions rpm/osg-pki-tools.spec
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
Summary: osg-pki-tools
Name: osg-pki-tools
Version: 3.4.0
Version: 3.5.0
Release: 1%{?dist}
Source: osg-pki-tools-%{version}.tar.gz
License: Apache 2.0
Group: Grid
URL: http://github.com/opensciencegrid/osg-pki-tools
BuildArch: noarch
Requires: python
Requires: m2crypto
%if 0%{?rhel} < 7
Requires: python-argparse
%endif
Requires: python3-m2crypto

%define __python python3


%description
%{summary}
Expand All @@ -22,6 +21,9 @@ Requires: python-argparse
%build

%install
find . -type f -exec \
sed -ri '1s,^#!\s*(/usr)?/bin/(env *)?python.*,#!%{__python},' '{}' +

%{__python} setup.py install --root=%{buildroot}
rm -f %{buildroot}%{python_sitelib}/*.egg-info
mkdir -p %{buildroot}%{_datadir}/man/man1
Expand All @@ -36,6 +38,9 @@ gzip -c man/osg-incommon-cert-request.1 >%{buildroot}%{_datadir}/man/man1/osg-in
%{_datadir}/man/man1/osg-incommon-cert-request*

%changelog
* Tue Sep 28 2021 Carl Edquist <[email protected]> - 3.5.0-1
- Convert scripts to python3 (SOFTWARE-4786)

* Tue Jul 14 2020 Brian Lin <[email protected]> - 3.4.0
- Add the ability to specify "Organizational Unit" (SOFTWARE-4121)

Expand Down

0 comments on commit 52752d0

Please sign in to comment.