Browse Source

Move to /usr and make use of RPM macros

Alois Mahdal 7 years ago
parent
commit
6549634e52

+ 1
- 1
packaging/debian/rules View File

6
 
6
 
7
 override_dh_auto_install:
7
 override_dh_auto_install:
8
 
8
 
9
-	make install DESTDIR=debian/tmp
9
+	make install PREFIX=/usr DESTDIR=debian/tmp
10
 
10
 
11
 override_dh_usrlocal:
11
 override_dh_usrlocal:
12
 
12
 

+ 1
- 1
packaging/debian/shellfu-bash-saturnin.install View File

1
-/usr/local/share/shellfu/include-bash/saturnin.sh
1
+/usr/share/shellfu/include-bash/saturnin.sh

+ 4
- 4
packaging/template.spec View File

25
 
25
 
26
 %build
26
 %build
27
 # %%configure
27
 # %%configure
28
-make %{?_smp_mflags}
28
+make %{?_smp_mflags} PREFIX=/usr
29
 
29
 
30
 %install
30
 %install
31
-%make_install
31
+%make_install PREFIX=/usr
32
 
32
 
33
 %files
33
 %files
34
-%doc /usr/local/share/shellfu-bash-saturnin/README.md
35
-/usr/local/share/shellfu/include-bash/saturnin.sh
34
+%doc %{_docdir}/%{name}/README.md
35
+%{_datadir}/shellfu/include-bash/saturnin.sh
36
 
36
 
37
 
37
 
38
 %changelog
38
 %changelog