shtool/shtool.spec

changeset 765
5be956b2db74
parent 13
cb59d6afeb61
equal deleted inserted replaced
0:c198305b995b 1:20097f84be90
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}
67 regex = shtool-(__VER__)\.tar\.gz 69 regex = shtool-(__VER__)\.tar\.gz
68 } 70 }
69 71
70 %prep 72 %prep
71 %setup -q 73 %setup -q
74 %patch -p0
72 75
73 %build 76 %build
74 ./configure \ 77 ./configure \
75 --prefix=%{l_prefix} \ 78 --prefix=%{l_prefix} \
76 --mandir=%{l_prefix}/man 79 --mandir=%{l_prefix}/man
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

mercurial