-
Notifications
You must be signed in to change notification settings - Fork 7
/
python-lhafile.spec
54 lines (45 loc) · 1.58 KB
/
python-lhafile.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
%define name python-lhafile
%define version 0.3.0
%define unmangled_version 0.3.0
%define release 1
Summary: LHA archive support for Python
Group: Development/Libraries
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Source0: %{name}-%{unmangled_version}.tar.xz
License: BSD-3-Clause
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
Vendor: Frode Solheim <[email protected]>
Url: https://github.com/FrodeSolheim/python-lhafile
BuildRequires: fdupes
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
This project is an updated version of the project found at
http://trac.neotitans.net/wiki/lhafile. It is primarily used as a component
in FS-UAE Launcher to index and extract files from .lha archives. The project
consists of a Python package (lhafile) and a C extension for Python (lzhlib).
%package -n python3-lhafile
Summary: LHA archive support for Python
Group: Development/Libraries
%description -n python3-lhafile
This project is an updated version of the project found at
http://trac.neotitans.net/wiki/lhafile. It is primarily used as a component
in FS-UAE Launcher to index and extract files from .lha archives. The project
consists of a Python package (lhafile) and a C extension for Python (lzhlib).
%prep
%setup -n %{name}-%{unmangled_version}
%build
env CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
%install
%{__python3} setup.py install -O1 \
--prefix=%{_prefix} \
--root=$RPM_BUILD_ROOT
%fdupes %{buildroot}/%{_prefix}
%clean
rm -rf $RPM_BUILD_ROOT
%files -n python3-lhafile
%defattr(-,root,root)
%{python3_sitearch}/*