forked from packit/packit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packit.spec
158 lines (120 loc) · 4.69 KB
/
packit.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
%global pypi_name packitos
%global real_name packit
Name: %{real_name}
Version: 0.14.0
Release: 1%{?dist}
Summary: A tool for integrating upstream projects with Fedora operating system
License: MIT
URL: https://github.com/packit-service/packit
Source0: %pypi_source
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-click-man
BuildRequires: python3-GitPython
BuildRequires: python3-gnupg
BuildRequires: python3-ogr
BuildRequires: python3-packaging
BuildRequires: python3-pyyaml
BuildRequires: python3-tabulate
BuildRequires: python3-cccolutils
BuildRequires: python3-copr
BuildRequires: python3-koji
BuildRequires: python3-lazy-object-proxy
BuildRequires: python3-marshmallow
BuildRequires: python3-marshmallow-enum
BuildRequires: rebase-helper
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(setuptools-scm)
BuildRequires: python3dist(setuptools-scm-git-archive)
# new-sources
Requires: fedpkg
# bumpspec
Requires: rpmdevtools
Requires: python3-%{real_name} = %{version}-%{release}
%description
This project provides tooling and automation to integrate upstream open source
projects into Fedora operating system.
%package -n python3-%{real_name}
Summary: %{summary}
# See setup.cfg for details
Requires: python3-koji
%{?python_provide:%python_provide python3-%{real_name}}
%description -n python3-%{real_name}
Python library for Packit,
check out packit package for the executable.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
python3 setup.py --command-packages=click_man.commands man_pages --target %{buildroot}%{_mandir}/man1
# FIXME: workaround for setuptools installing it into bash_completion/ instead of bash-completion/
install -d -m 755 %{buildroot}%{_datadir}/bash-completion/completions
mv %{buildroot}%{_datadir}/bash_completion/completions/packit %{buildroot}%{_datadir}/bash-completion/completions/packit
%files
%license LICENSE
%{_bindir}/packit
%{_mandir}/man1/packit*.1*
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/%{real_name}
%files -n python3-%{real_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/*
%changelog
* Tue Jul 28 2020 Jiri Popelka <[email protected]> - 0.14.0-1
- new upstream release 0.14.0
* Thu Jul 14 2020 Hunor Csomortáni <[email protected]> - 0.13.1-1
- new upstream release 0.13.1
* Thu Jul 09 2020 Hunor Csomortáni <[email protected]> - 0.13.0-1
- new upstream release 0.13.0
* Tue Jun 23 2020 Laura Barcziova <[email protected]> - 0.12.0-1
- new upstream release 0.12.0
* Thu Jun 11 2020 Jan Sakalos <[email protected]> - 0.11.1-1
- new upstream release: 0.11.1
* Thu May 28 2020 Tomas Tomecek <[email protected]> - 0.11.0-1
- new upstream release: 0.11.0
* Thu Apr 30 2020 Jan Sakalos <[email protected]> - 0.10.2-1
- new upstream release 0.10.2
* Thu Apr 16 2020 Jiri Popelka <[email protected]> - 0.10.1-1
- new upstream release 0.10.1
* Fri Apr 10 2020 Jiri Popelka <[email protected]> - 0.10.0-1
- new upstream release 0.10.0
* Wed Mar 25 2020 Jiri Popelka <[email protected]> - 0.9.0-1
- new upstream release 0.9.0
* Mon Jan 20 2020 Jiri Popelka <[email protected]> - 0.8.1-1
- new upstream release 0.8.1
* Fri Oct 18 2019 Frantisek Lachman <[email protected]> - 0.7.1-1
- new upstream release 0.7.1
* Fri Oct 04 2019 Frantisek Lachman <[email protected]> - 0.7.0-1
- new upstream release 0.7.0
* Thu Sep 12 2019 Jiri Popelka <[email protected]> - 0.6.1-1
- new upstream release: 0.6.1
* Tue Sep 10 2019 Tomas Tomecek <[email protected]> - 0.6.0-1
- new upstream release: 0.6.0
* Fri Aug 23 2019 Tomas Tomecek <[email protected]> - 0.5.1-1
- new upstream release: 0.5.1
* Fri Aug 02 2019 Tomas Tomecek <[email protected]> - 0.5.0-1
- new upstream release: 0.5.0
* Fri Jun 28 2019 Jiri Popelka <[email protected]> - 0.4.2-1
- New upstream release
* Sat May 18 2019 Jiri Popelka <[email protected]> - 0.4.1-1
- Patch release
* Wed May 15 2019 Jiri Popelka <[email protected]> - 0.4.0-1
- New upstream release: 0.4.0
- Build man pages since F30
* Thu Apr 11 2019 Jiri Popelka <[email protected]> - 0.3.0-2
- click-man needs more BuildRequires
* Wed Apr 10 2019 Tomas Tomecek <[email protected]> - 0.3.0-1
- New upstream release: 0.3.0
* Fri Mar 29 2019 Jiri Popelka <[email protected]> - 0.2.0-2
- man pages
* Tue Mar 19 2019 Tomas Tomecek <[email protected]> - 0.2.0-1
- New upstream release 0.2.0
* Thu Mar 14 2019 Frantisek Lachman <[email protected]> - 0.1.0-1
- New upstream release 0.1.0
* Mon Mar 04 2019 Frantisek Lachman <[email protected]> - 0.0.1-1
- Initial package.