5
Line | |
---|
1 | # |
---|
2 | # GetText 0.x.x Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's GetText. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: gettext-%{gettext_version}-%{_host}-%{release} |
---|
12 | Summary: GetText offers to programmers, translators, and even users, a well |
---|
13 | integrated set of tools and documentation. |
---|
14 | Version: %{gettext_version} |
---|
15 | Release: %{release} |
---|
16 | URL: http://www.gnu.org/software/gettext/ |
---|
17 | |
---|
18 | # |
---|
19 | # Source |
---|
20 | # |
---|
21 | %source set gettext http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.1.tar.gz |
---|
22 | |
---|
23 | # |
---|
24 | # Fix the mess iconv is on FreeBSD 10.0. |
---|
25 | # |
---|
26 | %if %{defined iconv_includes} |
---|
27 | %define includes %{iconv_includes} |
---|
28 | %endif |
---|
29 | |
---|
30 | # |
---|
31 | # Prepare the source code. |
---|
32 | # |
---|
33 | %prep |
---|
34 | build_top=$(pwd) |
---|
35 | |
---|
36 | source_dir_gettext="gettext-%{gettext_version}" |
---|
37 | %source setup gettext -q -n gettext-%{gettext_version} |
---|
38 | %patch setup gettext -p1 |
---|
39 | |
---|
40 | cd ${build_top} |
---|
41 | |
---|
42 | %build |
---|
43 | build_top=$(pwd) |
---|
44 | |
---|
45 | %{build_directory} |
---|
46 | |
---|
47 | mkdir -p ${build_dir} |
---|
48 | cd ${build_dir} |
---|
49 | |
---|
50 | %{host_build_flags} |
---|
51 | |
---|
52 | ../${source_dir_gettext}/configure \ |
---|
53 | --prefix=%{_prefix} \ |
---|
54 | --bindir=%{_bindir} \ |
---|
55 | --exec_prefix=%{_exec_prefix} \ |
---|
56 | --includedir=%{_includedir} \ |
---|
57 | --libdir=%{_libdir} \ |
---|
58 | --libexecdir=%{_libexecdir} \ |
---|
59 | --mandir=%{_mandir} \ |
---|
60 | --infodir=%{_infodir} \ |
---|
61 | --datadir=%{_datadir} \ |
---|
62 | --build=%{_build} --host=%{_host} |
---|
63 | |
---|
64 | %{__make} %{?_smp_mflags} all |
---|
65 | |
---|
66 | cd ${build_top} |
---|
67 | |
---|
68 | %install |
---|
69 | build_top=$(pwd) |
---|
70 | |
---|
71 | %{__rmdir} $SB_BUILD_ROOT |
---|
72 | |
---|
73 | cd ${build_dir} |
---|
74 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
75 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.