-
Notifications
You must be signed in to change notification settings - Fork 35
/
python-deprecated.spec
49 lines (38 loc) · 1.17 KB
/
python-deprecated.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
%global srcname Deprecated
%global pkgname deprecated
Name: python-%{pkgname}
Version: 1.2.15
Release: 1%{?dist}
Summary: Python decorator to deprecate old python classes, functions or methods
License: MIT
URL: https://github.com/laurent-laporte-pro/%{pkgname}
Source0: %{pypi_source}
BuildArch: noarch
%description
Python @deprecated decorator to deprecate old python classes,
functions or methods.
%package -n python3-%{pkgname}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%{?python_provide:%python_provide python3-%{pkgname}}
%description -n python3-%{pkgname}
Python @deprecated decorator to deprecate old python classes,
functions or methods.
%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{pkgname}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{pkgname}
%license LICENSE.rst
%doc README.md
%{python3_sitelib}/%{pkgname}/
%{python3_sitelib}/%{srcname}-*.egg-info/
%changelog
* Fri Jul 26 2019 Petr Hracek <[email protected]> - 1.2.6-2
- Fix python3_sitelib issue
* Fri Jul 26 2019 Petr Hracek <[email protected]> - 1.2.6-1
- Initial package