#1 WIP: Spec file modernization
Closed 3 years ago by carlwgeorge. Opened 3 years ago by carlwgeorge.
centos/ carlwgeorge/centpkg specfile  into  develop

file modified
+32 -37
@@ -1,55 +1,53 @@ 

- %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}

+ Name:           centpkg

+ Version:        0.4.6

+ Release:        1%{?dist}

+ Summary:        CentOS utility for working with dist-git

+ License:        GPLv2+

+ URL:            https://git.centos.org/centos/centpkg

+ Source0:        https://git.centos.org/centos/centpkg/archive/%{version}/centpkg-%{version}.tar.gz

+ BuildArch:      noarch

  

- Name:		centpkg

- Version:	0.4.6

- Release:	1%{?dist}

- Summary:	CentOS utility for working with dist-git

+ BuildRequires:  python3-devel

+ BuildRequires:  %{py3_dist setuptools}

  

- Group:	    Applications/System

- License:	GPLv2+

- URL:		https://git.centos.org/summary/centpkg.git

- Source0:	centpkg-%{version}.tar.gz

- BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)

  

- # CentOS Distributed Packages

- Requires:   redhat-rpm-config	

- Requires:   python-pycurl

+ %description

+ Provides the centpkg command for working with dist-git.

  

- # EPEL Distributed Packages

- Requires:   pyrpkg >= 1.17 

- Requires:   koji 

  

- BuildArch:  noarch

+ %package sig

+ Summary:        CentOS SIG utility for working with dist-git

+ Requires:       %{name} = %{version}-%{release}

  

- # CentOS Distributed build-requires

- BuildRequires: python-devel, python-setuptools

  

- # EPEL Distributed build-requires

- BuildRequires: pyrpkg

+ %description sig

+ Provides the centpkg-sig command for working with dist-git.

  

- %description

- Provides the centpkg command for working with dist-git

  

  %prep

- %setup -q -c

+ %autosetup

  

  

  %build

- %{__python} setup.py build

+ %py3_build

  

- %install

- %{__python} setup.py install -O1 --skip-build --root %{buildroot}

  

- %clean

- rm -rf %{buildroot}

+ %install

+ %py3_install

  

  

  %files

- %defattr(-,root,root,-)

- %doc README.md COPYING

- %config %{_sysconfdir}/rpkg/centpkg.conf

+ %license COPYING

+ %doc README.md

+ %config(noreplace) %{_sysconfdir}/rpkg/centpkg.conf

  %{_bindir}/%{name}

- %{python_sitelib}/*

+ %{python3_sitelib}/%{name}

+ %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info

+ 

+ 

+ %files sig

+ %{_bindir}/%{name}-sig

+ %config(noreplace) %{_sysconfdir}/rpkg/centpkg-sig.conf

  

  

  %changelog
@@ -76,7 +74,4 @@ 

  - Update readme and add exception checking when running toplevel commands

  

  * Sat Jul 05 2014 Brian Stinson bstinson@ksu.edu - 0.1-1

- - Local builds and mockbuilds work 

- 

- 

- 

+ - Local builds and mockbuilds work

file modified
+3 -1
@@ -1,2 +1,4 @@ 

+ pycurl

+ pyOpenSSL

  rpkg

- rpm

+ six

  • Add requirements to setup.py
  • Remove obsolete stuff
  • Convert to Python 3
  • Properly mark license file
  • Clean up whitespace
  • Update URL and Source0
  • Mark centpkg.conf as %config(noreplace)
  • Add centpkg-sig subpackage

It needs a rebase as there were a few changes in setup.py.

rebased onto d9371b2

3 years ago

Pull-Request has been closed by carlwgeorge

3 years ago
Metadata