]>
Commit | Line | Data |
---|---|---|
1395732f | 1 | Summary: CHM (Compiled HTML) Decompressor |
bab2525e | 2 | Summary(pl.UTF-8): Dekompresor plików CHM (Compiled HTML) |
29f39dac | 3 | Name: archmage |
cfd304c3 JR |
4 | Version: 0.4.2.1 |
5 | Release: 1 | |
29f39dac | 6 | License: GPL |
7 | Group: Development/Libraries | |
cfd304c3 JR |
8 | Source0: https://github.com/dottedmag/archmage/archive/v%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: af3b4393d5d8912ddf93d722725e9b70 | |
10 | URL: https://github.com/dottedmag/archmage | |
29f39dac | 11 | BuildRequires: python-devel |
b1d74b7d | 12 | BuildRequires: rpm-pythonprov |
b356d07a | 13 | BuildRequires: rpmbuild(macros) >= 1.710 |
cfd304c3 | 14 | BuildArch: noarch |
29f39dac | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29f39dac | 16 | |
17 | %description | |
18 | arCHMage is an extensible reader and decompiler for files in the CHM | |
1395732f | 19 | format. This is the format used by Microsoft HTML help, and is also |
20 | known as Compiled HTML. arCHMage is based on chmlib by Jed Wing. | |
29f39dac | 21 | |
09d30171 JR |
22 | %description -l pl.UTF-8 |
23 | arCHMage jest rozszerzalnym czytnikiem i dekompilatorem dla plików w | |
24 | formacie CHM. Jest to format używany przez pliki pomocy Microsoft | |
25 | HTML, zwane także jako skompilowany HTML. arCHMage bazuje na chmlib | |
1395732f | 26 | Jediego Winga. |
29f39dac | 27 | |
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
cfd304c3 | 32 | %py3_build |
29f39dac | 33 | |
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
cfd304c3 | 36 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
29f39dac | 37 | |
cfd304c3 JR |
38 | %py3_install |
39 | ||
40 | %{__mv} $RPM_BUILD_ROOT%{py3_sitescriptdir}/archmage/arch.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
41 | ln -sr $RPM_BUILD_ROOT%{_sysconfdir}/arch.conf $RPM_BUILD_ROOT%{py3_sitescriptdir}/archmage/ | |
b1d74b7d | 42 | |
29f39dac | 43 | %clean |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
1f69dc4c | 46 | %files |
29f39dac | 47 | %defattr(644,root,root,755) |
cfd304c3 | 48 | %doc AUTHORS NEWS README.md |
b1d74b7d | 49 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/arch.conf |
1f69dc4c | 50 | %attr(755,root,root) %{_bindir}/archmage |
cfd304c3 JR |
51 | %{py3_sitescriptdir}/archmage |
52 | %{py3_sitescriptdir}/%{name}-%{version}-py*.egg-info |