/[packages]/cauldron/icu/releases/1:4.8/1.mga2/SPECS/icu.spec
ViewVC logotype

Contents of /cauldron/icu/releases/1:4.8/1.mga2/SPECS/icu.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389214 - (show annotations) (download)
Thu Jan 17 21:30:27 2013 UTC (11 years, 3 months ago) by pterjan
File size: 4125 byte(s)
oops
1 %define major 48
2 %define libname %mklibname icu %{major}
3 %define develname %mklibname icu -d
4 %define realversion 4.8
5 %define tarballver %(echo %realversion|sed -e 's|\\.|_|g')
6
7 Summary: International Components for Unicode
8 Name: icu
9 Version: 4.8
10 Release: %mkrel 1
11 Epoch: 1
12 License: MIT
13 Group: System/Libraries
14 URL: http://www.icu-project.org/index.html
15 Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-src.tgz
16 Source1: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-docs.zip
17 Patch0: %{name}4c-3_8-setBreakType.patch
18 Patch6: icu-4.6.1-do-not-promote-ldflags.patch
19 BuildRequires: doxygen
20 Requires: %{libname} = %{epoch}:%{version}-%{release}
21 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
22
23 %description
24 The International Components for Unicode (ICU) libraries provide robust and
25 full-featured Unicode services on a wide variety of platforms. ICU supports
26 the most current version of the Unicode standard, and they provide support
27 for supplementary Unicode characters (needed for GB 18030 repertoire support).
28
29 As computing environments become more heterogeneous, software portability
30 becomes more important. ICU lets you produce the same results across all the
31 various platforms you support, without sacrificing performance. It offers
32 great flexibility to extend and customize the supplied services, which
33 include:
34
35 * Text: Unicode text handling, full character properties and character set
36 conversions (500+ codepages)
37 * Analysis: Unicode regular expressions; full Unicode sets; character, word
38 and line boundaries
39 * Comparison: Language sensitive collation and searching
40 * Transformations: normalization, upper/lowercase, script transliterations
41 (50+ pairs)
42 * Locales: Comprehensive locale data (230+) and resource bundle architecture
43 * Complex Text Layout: Arabic, Hebrew, Indic and Thai
44 * Time: Multi-calendar and time zone
45 * Formatting and Parsing: dates, times, numbers, currencies, messages and
46 rule based
47
48 %package doc
49 Summary: Documentation for the International Components for Unicode
50 Group: System/Libraries
51 Requires: %{name} = %{epoch}:%{version}-%{release}
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