Explorar el Código

Move to /usr and make use of RPM macros

Alois Mahdal hace 6 años
padre
commit
6549634e52

+ 1
- 1
packaging/debian/rules Ver fichero

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

+ 1
- 1
packaging/debian/shellfu-bash-saturnin.install Ver fichero

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

+ 4
- 4
packaging/template.spec Ver fichero

@@ -25,14 +25,14 @@ of discoverable and maintainable sub-commands.
25 25
 
26 26
 %build
27 27
 # %%configure
28
-make %{?_smp_mflags}
28
+make %{?_smp_mflags} PREFIX=/usr
29 29
 
30 30
 %install
31
-%make_install
31
+%make_install PREFIX=/usr
32 32
 
33 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 38
 %changelog