centpkg/centpkg.spec

109 lines
2.8 KiB
RPMSpec
Raw Normal View History

2021-03-15 15:40:31 -05:00
# In order to use unversioned python macros in the spec file, we need to
# explicitly define %%__python. It is already defined on el7.
%if %{undefined el7}
%if %{defined el8}
%global __python %{_libexecdir}/platform-python
%else
%global __python %{python3}
%endif
%endif
2021-02-22 20:36:45 -06:00
Name: centpkg
2021-03-25 10:54:07 -05:00
Version: 0.5.1
2021-03-25 15:26:59 -05:00
Release: 2%{?dist}
2021-02-22 20:36:45 -06:00
Summary: CentOS utility for working with dist-git
License: GPLv2+
2021-02-22 20:37:21 -06:00
URL: https://git.centos.org/centos/centpkg
2021-03-25 15:26:59 -05:00
Source0: %{url}/archive/%{version}/centpkg-%{version}.tar.gz
2021-02-22 18:35:34 -06:00
BuildArch: noarch
2014-07-06 15:28:09 -05:00
2021-03-15 15:40:31 -05:00
%if %{defined el7}
BuildRequires: python-devel
2021-03-09 21:04:56 -05:00
BuildRequires: python-setuptools
2021-03-25 15:26:59 -05:00
# The equivalent dependencies are added automatically everywhere except el7.
Requires: python-pycurl
Requires: pyOpenSSL
Requires: python-rpkg
Requires: python-six
2021-03-09 21:04:56 -05:00
%else
2021-03-15 15:40:31 -05:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2021-03-09 21:04:56 -05:00
%endif
2014-07-06 15:28:09 -05:00
2021-03-15 16:10:14 -05:00
2014-07-06 15:28:09 -05:00
%description
2021-03-15 16:10:14 -05:00
Provides the centpkg command for working with dist-git.
2014-07-06 15:28:09 -05:00
2021-02-22 20:38:36 -06:00
%package sig
Summary: CentOS SIG utility for working with dist-git
Requires: %{name} = %{version}-%{release}
2014-07-06 15:28:09 -05:00
2021-02-22 20:38:36 -06:00
%description sig
Provides the centpkg-sig command for working with dist-git.
2014-07-06 15:28:09 -05:00
2021-03-15 16:10:14 -05:00
2014-07-06 15:28:09 -05:00
%prep
2021-02-22 20:37:21 -06:00
%autosetup
2014-07-06 15:28:09 -05:00
%build
2021-03-15 15:40:31 -05:00
%py_build
2014-07-06 15:28:09 -05:00
%install
2021-03-15 15:40:31 -05:00
%py_install
install -D -p -m 0644 src/centpkg.conf %{buildroot}%{_sysconfdir}/rpkg/centpkg.conf
install -D -p -m 0644 src/centpkg-sig.conf %{buildroot}%{_sysconfdir}/rpkg/centpkg-sig.conf
2014-07-06 15:28:09 -05:00
%files
2021-02-22 20:35:44 -06:00
%license COPYING
%doc README.md
%config(noreplace) %{_sysconfdir}/rpkg/centpkg.conf
2014-07-06 15:28:09 -05:00
%{_bindir}/%{name}
2021-03-15 15:40:31 -05:00
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}-%{version}-py%{python_version}.egg-info
2014-07-06 15:28:09 -05:00
2021-02-22 20:38:36 -06:00
%files sig
%{_bindir}/%{name}-sig
%config(noreplace) %{_sysconfdir}/rpkg/centpkg-sig.conf
2014-07-06 15:28:09 -05:00
%changelog
2021-03-25 15:26:59 -05:00
* Thu Mar 25 2021 Carl George <carl@george.computer> - 0.5.1-2
- Add missing el7 requirements
2021-03-25 10:54:07 -05:00
* Thu Mar 25 2021 Carl George <carl@george.computer> - 0.5.1-1
- Latest version
* Thu Feb 25 2021 mkonecny@redhat.com 0.5.0-1
- Add centpkg-sig command
2016-11-28 16:25:18 -06:00
* Mon Nov 28 2016 brian@bstinson.com 0.4.6-1
- Tracking updates to rpkg (thanks pavlix)
- Fix the URL building code in the sources method
* Sat Jan 31 2015 Brian Stinson bstinson@ksu.edu - 0.4.4-1
- New version correcting the anonymous pull URLs
* Sun Dec 14 2014 Brian Stinson bstinson@ksu.edu - 0.4.3-1
- Use the authenticated git url for centpkg pulls
2014-12-14 20:40:32 +00:00
* Sun Dec 14 2014 Brian Stinson bstinson@ksu.edu - 0.4.2-1
- Fix the koji config path in centpkg.conf
2014-12-14 19:10:23 +00:00
* Sun Dec 14 2014 Brian Stinson bstinson@ksu.edu - 0.4.1-1
- Fix a disttag regression and add a "patch" version number
2014-11-23 23:03:25 -06:00
* Sat Nov 23 2014 Brian Stinson bstinson@ksu.edu - 0.2-1
- The srpm workflow to the CBS works now
2014-07-06 15:28:09 -05:00
* Sat Jul 05 2014 Brian Stinson bstinson@ksu.edu - 0.1-2
- Update readme and add exception checking when running toplevel commands
* Sat Jul 05 2014 Brian Stinson bstinson@ksu.edu - 0.1-1
2021-02-22 20:36:45 -06:00
- Local builds and mockbuilds work