1 ## |
1 ## |
2 ## shtool.spec -- OpenPKG RPM Package Specification |
2 ## shtool.spec -- OpenPKG RPM Package Specification |
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> |
3 ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/> |
|
4 ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/> |
4 ## |
5 ## |
5 ## Permission to use, copy, modify, and distribute this software for |
6 ## Permission to use, copy, modify, and distribute this software for |
6 ## any purpose with or without fee is hereby granted, provided that |
7 ## any purpose with or without fee is hereby granted, provided that |
7 ## the above copyright notice and this permission notice appear in all |
8 ## the above copyright notice and this permission notice appear in all |
8 ## copies. |
9 ## copies. |
24 # package information |
25 # package information |
25 Name: shtool |
26 Name: shtool |
26 Summary: GNU Portable Shell Tool |
27 Summary: GNU Portable Shell Tool |
27 URL: http://www.gnu.org/software/shtool/ |
28 URL: http://www.gnu.org/software/shtool/ |
28 Vendor: Ralf S. Engelschall |
29 Vendor: Ralf S. Engelschall |
29 Packager: OpenPKG Foundation e.V. |
30 Packager: OpenPKG |
30 Distribution: OpenPKG Community |
31 Distribution: OpenPKG |
31 Class: CORE |
32 Class: CORE |
32 Group: Building |
33 Group: Building |
33 License: GPL |
34 License: GPL |
34 Version: 2.0.8 |
35 Version: 2.0.8 |
35 Release: 20080718 |
36 Release: 20090105 |
36 |
37 |
37 # package options |
38 # package options |
38 %option with_shtoolize yes |
39 %option with_shtoolize yes |
39 |
40 |
40 # list of sources |
41 # list of sources |
41 Source0: ftp://ftp.gnu.org/gnu/shtool/shtool-%{version}.tar.gz |
42 Source0: ftp://ftp.gnu.org/gnu/shtool/shtool-%{version}.tar.gz |
|
43 Patch0: shtool.patch |
42 |
44 |
43 # build information |
45 # build information |
44 Prefix: %{l_prefix} |
46 Prefix: %{l_prefix} |
45 BuildRoot: %{l_buildroot} |
47 BuildRoot: %{l_buildroot} |
46 BuildPreReq: OpenPKG, openpkg >= 20040130, perl |
48 BuildPreReq: OpenPKG, openpkg >= 20040130, perl |
55 GNU shtool is a compilation of small but very stable and portable |
57 GNU shtool is a compilation of small but very stable and portable |
56 shell scripts into a single shell tool. All ingredients were in |
58 shell scripts into a single shell tool. All ingredients were in |
57 successful use over many years in various free software projects. |
59 successful use over many years in various free software projects. |
58 The compiled shtool script is intended to be used inside the source |
60 The compiled shtool script is intended to be used inside the source |
59 tree of those free software packages. There it can take over |
61 tree of those free software packages. There it can take over |
60 various (usually non-portable) tasks related to the building and |
62 various (usually nonportable) tasks related to the building and |
61 installation of such packages. |
63 installation of such packages. |
62 |
64 |
63 %track |
65 %track |
64 prog shtool = { |
66 prog shtool = { |
65 version = %{version} |
67 version = %{version} |
83 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/shtoolize |
86 rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/shtoolize |
84 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/shtoolize.1 |
87 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/shtoolize.1 |
85 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/shtool |
88 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/shtool |
86 %endif |
89 %endif |
87 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
90 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
88 %{l_files_std} |
91 %{l_files_std} \ |
|
92 '%not %dir %{l_prefix}/share/aclocal' |
89 |
93 |
90 %files -f files |
94 %files -f files |
91 |
95 |
92 %clean |
96 %clean |
93 rm -rf $RPM_BUILD_ROOT |
97 rm -rf $RPM_BUILD_ROOT |