/[packages]/cauldron/icu/current/SPECS/icu.spec
ViewVC logotype

Contents of /cauldron/icu/current/SPECS/icu.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 137820 - (show annotations) (download)
Fri Sep 2 00:32:43 2011 UTC (12 years, 6 months ago) by tv
File size: 4117 byte(s)
make the huge doc subpackage be noarch
1 %define major 48
2 %define libname %mklibname icu %{major}
3 %define develname %mklibname icu -d
4 %define tarballver %(echo %version|sed -e 's|\\.|_|g')
5
6 Summary: International Components for Unicode
7 Name: icu
8 Version: 4.8.1
9 Release: %mkrel 2
10 Epoch: 1
11 License: MIT
12 Group: System/Libraries
13 URL: http://www.icu-project.org/index.html
14 Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-src.tgz
15 Source1: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-docs.zip
16 Patch0: %{name}4c-3_8-setBreakType.patch
17 Patch6: icu-4.6.1-do-not-promote-ldflags.patch
18 BuildRequires: doxygen
19 Requires: %{libname} = %{epoch}:%{version}-%{release}
20 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
21
22 %description
23 The International Components for Unicode (ICU) libraries provide robust and
24 full-featured Unicode services on a wide variety of platforms. ICU supports
25 the most current version of the Unicode standard, and they provide support
26 for supplementary Unicode characters (needed for GB 18030 repertoire support).
27
28 As computing environments become more heterogeneous, software portability
29 becomes more important. ICU lets you produce the same results across all the
30 various platforms you support, without sacrificing performance. It offers
31 great flexibility to extend and customize the supplied services, which
32 include:
33
34 * Text: Unicode text handling, full character properties and character set
35 conversions (500+ codepages)
36 * Analysis: Unicode regular expressions; full Unicode sets; character, word
37 and line boundaries
38 * Comparison: Language sensitive collation and searching
39 * Transformations: normalization, upper/lowercase, script transliterations
40 (50+ pairs)
41 * Locales: Comprehensive locale data (230+) and resource bundle architecture
42 * Complex Text Layout: Arabic, Hebrew, Indic and Thai
43 * Time: Multi-calendar and time zone
44 * Formatting and Parsing: dates, times, numbers, currencies, messages and
45 rule based
46
47 %package doc
48 Summary: Documentation for the International Components for Unicode
49 Group: System/Libraries
50 Requires: %{name} = %{epoch}:%{version}-%{release}
51 BuildArch: noarch
52
53 %description doc
54 Documentation for the International Components for Unicode.
55
56 %package -n %{libname}
57 Summary: Libraries for the International Components for Unicode
58 Group: System/Libraries
59
60 %description -n %{libname}
61 Libraries for the International Components for Unicode.
62
63 %package -n %{develname}
64 Summary: Development files for the International Components for Unicode
65 Group: Development/Other
66 Requires: %{libname} = %{epoch}:%{version}-%{release}
67 Provides: %{name}%{major}-devel = %{epoch}:%{version}-%{release}
68 Provides: %{name}-devel = %{epoch}:%{version}-%{release}
69 Provides: lib%{name}-devel = %{epoch}:%{version}-%{release}
70 Obsoletes: %mklibname -d icu 36
71 Obsoletes: %mklibname -d icu 34
72 #define _requires_exceptions statically\\|linked
73
74 %description -n %{develname}
75 Development files and headers for the International Components for Unicode.
76
77 %prep
78 %setup -q -n %{name}
79 %patch0 -p1 -b .setBreakType
80 %patch6 -p0 -b .ldflags
81
82 mkdir -p docs
83 cd docs
84 unzip -q %{SOURCE1}
85 cd -
86
87 %build
88 pushd source
89 # (tpg) needed for patch 2
90 export CFLAGS='%optflags -fno-strict-aliasing'
91 export CXXFLAGS='%optflags -fno-strict-aliasing'
92 %configure2_5x \
93 --with-library-bits=64else32 \
94 --with-data-packaging=library \
95 --disable-samples
96 %make
97 %make doc
98 popd
99
100 %check
101 pushd source
102 make check
103 popd
104
105 %install
106 rm -rf %{buildroot}
107 pushd source
108 %makeinstall_std
109 popd
110
111 %clean
112 rm -rf %{buildroot}
113
114 %files
115 %defattr(-,root,root)
116 %{_bindir}/*
117 %exclude %{_bindir}/icu-config
118 %{_sbindir}/*
119
120 %files doc
121 %defattr(-,root,root)
122 %doc readme.html docs/*
123 %{_mandir}/man1/*
124 %{_mandir}/man8/*
125
126 %files -n %{libname}
127 %defattr(-,root,root)
128 %{_libdir}/*.so.%{major}*
129
130 %files -n %{develname}
131 %defattr(-,root,root)
132 %{_bindir}/icu-config
133 %{_libdir}/*.so
134 %{_libdir}/pkgconfig/*.pc
135 %dir %{_includedir}/layout
136 %dir %{_includedir}/unicode
137 %{_includedir}/layout/*
138 %{_includedir}/unicode/*
139 %dir %{_libdir}/%{name}
140 %{_libdir}/%{name}/*
141 %dir %{_datadir}/%{name}
142 %{_datadir}/%{name}/*

  ViewVC Help
Powered by ViewVC 1.1.30