1 # |
|
2 # spec file for package less |
|
3 # |
|
4 # includes module(s): less |
|
5 # |
|
6 %include Solaris.inc |
|
7 |
|
8 %define src_name less |
|
9 %define src_url http://src.opensolaris.org/source/raw/sfw/usr/src/cmd |
|
10 |
|
11 # The system doesn't support package names such as: |
|
12 # text/less |
|
13 |
|
14 Name: less |
|
15 Summary: less - opposite of more |
|
16 License: GPL |
|
17 Group: Editor |
|
18 Distribution: OpenSolaris |
|
19 Version: 436 |
|
20 Source: %{src_url}/%{src_name}/%{src_name}-%{version}.tar.gz |
|
21 SUNW_BaseDir: %{_basedir} |
|
22 SUNW_Copyright: %{name}.copyright |
|
23 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
24 %include default-depend.inc |
|
25 |
|
26 # OpenSolaris IPS Manifest Fields |
|
27 Meta(info.upstream): Less Person |
|
28 Meta(info.maintainer): Less Maintainer |
|
29 Meta(info.repository_url): svn://svn.example.org/less/trunk |
|
30 Meta(pkg.summary): The GNU pager (less) |
|
31 |
|
32 %description |
|
33 Less is a program similar to more (1), but which allows backward |
|
34 movement in the file as well as forward movement. |
|
35 |
|
36 # Examples only: |
|
37 Requires: SUNWglib2 |
|
38 BuildRequires: SUNWglib2-devel |
|
39 |
|
40 %prep |
|
41 %setup -q -n %{src_name}-%version |
|
42 |
|
43 %build |
|
44 sh configure |
|
45 make |
|
46 |
|
47 %install |
|
48 rm -rf $RPM_BUILD_ROOT |
|
49 make install DESTDIR=$RPM_BUILD_ROOT |
|
50 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.*a |
|
51 |
|
52 %clean |
|
53 rm -rf $RPM_BUILD_ROOT |
|
54 |
|
55 %files |
|
56 %defattr (-, root, bin) |
|
57 %dir %attr (0755, root, bin) /usr/local |
|
58 /usr/local/bin/* |
|
59 %dir %attr (0755, root, sys) /usr/local/share |
|
60 /usr/local/share/man/* |
|
61 |
|
62 %changelog |
|
63 * Thu 7 April 2010 - [email protected] |
|
64 - Initial spec |
|