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

  ViewVC Help
Powered by ViewVC 1.1.28