Changes of Revision 9

audiotools.spec Changed
x
 
1
@@ -13,7 +13,7 @@
2
 # license that conforms to the Open Source Definition (Version 1.9)
3
 # published by the Open Source Initiative.
4
 
5
-# Please submit bugfixes or comments via http://bugs.links2linux.org/
6
+# Please submit bugfixes or comments via https://bugs.links2linux.org/
7
 #
8
 
9
 
10
@@ -22,7 +22,6 @@
11
 Release:        0
12
 Summary:        Audio Tool Collection
13
 License:        GPL-2.0+
14
-Group:          Productivity/Multimedia/Sound/Utilities
15
 URL:            http://audiotools.sourceforge.net/
16
 Source:         https://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
17
 Patch0:         audiotools.patch
18
@@ -41,6 +40,7 @@
19
 BuildRequires:  pkgconfig(twolame)
20
 BuildRequires:  pkgconfig(vorbisenc)
21
 BuildRequires:  pkgconfig(vorbisfile)
22
+BuildRequires:  python-rpm-macros
23
 BuildRequires:  python3-setuptools
24
 
25
 %description
26
@@ -59,18 +59,14 @@
27
 %autosetup -p1
28
 
29
 %build
30
-sed -i '/^#!/s/python/python3/' audiotools-config cdda2track cddainfo \
31
-   cddaplay coverdump covertag coverview dvda2track dvdainfo track2cdda \
32
-   track2track trackcat trackcmp trackinfo tracklength tracklint trackplay \
33
-   trackrename tracksplit tracktag trackverify
34
-
35
-python3 setup.py build
36
-make PYTHON=python3 %{?_smp_mflags} -C docs
37
+%python3_build
38
+%make_build -C docs PYTHON=python3
39
 
40
 %install
41
-python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
42
+%python3_install
43
+%python3_fix_shebang
44
 mkdir -p %{buildroot}%{_mandir}/man1 %{buildroot}%{_mandir}/man5
45
-make MAN_PATH=%{buildroot}%{_mandir} -C docs install
46
+%make_install MAN_PATH=%{buildroot}%{_mandir} -C docs
47
 rm %{buildroot}%{_mandir}/man1/audiotools.cfg.5
48
 
49
 %files
50