source: projects/specs/branches/6/i/icu/icu-vl.spec @ 8026

Revision 8026, 5.2 KB checked in by iwamoto, 10 years ago (diff)

kernel34, xorg-x11-server, icu, MySQL: security fixes

Line 
1%define sover 44
2Summary: International Components for Unicode
3Summary(ja): ユニコード用国際化コンポーネント
4Name: icu
5Version: 4.4
6Release: 4%{?_dist_release}
7
8Group:   Development/Tools
9License: MIT
10URL:     http://icu-project.org/
11
12Source0: http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_4-src.tgz
13Source1: http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_4-docs.zip
14
15Patch100: icu-CVE-2013-0900.patch
16Patch110: icu-4.4_CVE-2013-2924.patch   
17
18BuildRoot: %{_tmppath}/%{name}-%{version}-root
19BuildRequires: gcc-c++
20BuildRequires: unzip perl
21#Requires: libicu%{sover} = %{version}
22Requires: libicu = %{version}-%{release}
23
24Vendor: Project Vine
25Distribution: Vine Linux
26
27%description
28ICU is a C++ and C library that provides robust and full-featured Unicode
29support. This package contains the Unicode character database and derived
30properties, along with converters and time zones data.
31
32#package -n libicu%{sover}
33%package -n libicu
34Summary: International Components for Unicode (library)
35Summary(ja): ユニコード用国際化コンポーネント (ライブラリ)
36Group: System Environment/Libraries
37Provides: libicu%{sover} = %{version}-%{release}
38
39#description -n libicu%{sover}
40%description -n libicu
41ICU is a C++ and C library that provides robust and full-featured Unicode
42support. This package contains the runtime libraries for ICU. It does not
43contain any of the data files needed at runtime.
44
45%package -n libicu-devel
46Summary: Header files, libraries and development documentation for libicu
47Summary(ja): libicu 用のヘッダファイル、ライブラリおよび開発用ドキュメント
48Group: Development/Libraries
49Requires: libicu = %{version}-%{release}
50
51%description -n libicu-devel
52This package contains the header files, static libraries for %{name}.
53If you like to develop programs using %{name}, you will need to install
54%{name}-devel.
55
56%package -n libicu-doc
57Summary: Documentation for International Components for Unicode
58Summary(ja): ユニコード用国際化コンポーネントのドキュメント
59Group: Applications/Documentation
60
61%description -n libicu-doc
62This package contains the development documentation for %{name}.
63
64%prep
65%setup -q -n %{name}
66%patch100 -p4 -b .CVE-2013-0900
67%patch110 -p0 -b .CVE-2013-2924
68
69find . -name CVS -o -name .cvsignore | xargs -r rm -rf
70perl -pi -e 's/^(HAVE_DOT\b.*=).*$/$1 YES/' source/Doxyfile.in
71
72mkdir docs
73pushd docs
74unzip %{SOURCE1}
75popd
76
77%build
78cd source
79export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
80export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
81%configure --disable-static --with-data-packaging=library --disable-samples
82make
83
84%install
85rm -rf $RPM_BUILD_ROOT
86make -C source install DESTDIR=$RPM_BUILD_ROOT
87cp -pR ./source/tools/ctestfw/libicutest.so* $RPM_BUILD_ROOT/%{_libdir}
88chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
89
90%check || :
91make -C source check
92
93%clean
94rm -rf $RPM_BUILD_ROOT
95
96%post -n libicu -p /sbin/ldconfig
97
98%postun -n libicu -p /sbin/ldconfig
99
100%files
101%defattr(-, root, root, 0755)
102%doc license.html readme.html
103%{_bindir}/derb
104%{_bindir}/genbrk
105%{_bindir}/gencfu
106%{_bindir}/gencnval
107%{_bindir}/genctd
108%{_bindir}/genrb
109%{_bindir}/icuinfo
110%{_bindir}/makeconv
111%{_bindir}/pkgdata
112%{_bindir}/uconv
113%{_sbindir}/*
114%{_mandir}/man?/*
115%exclude %{_mandir}/man1/icu-config.1*
116
117%files -n libicu
118%defattr(-, root, root, 0755)
119%{_libdir}/*.so.*
120
121%files -n libicu-devel
122%defattr(-, root, root, 0755)
123%{_bindir}/icu-config
124%{_includedir}/layout
125%{_includedir}/unicode
126%{_libdir}/*.so
127#{_libdir}/*.a
128%{_libdir}/%{name}
129%{_mandir}/man1/icu-config.1*
130%dir %{_datadir}/icu/
131%dir %{_datadir}/icu/4.4
132%{_datadir}/icu/4.4/config
133%{_datadir}/icu/4.4/install-sh
134%{_datadir}/icu/4.4/mkinstalldirs
135%doc %{_datadir}/icu/4.4/license.html
136
137%files -n libicu-doc
138%defattr(-,root,root,-)
139%doc docs/*
140
141%changelog
142* Sat Nov  2 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.4-4
143- add patch100 for fix CVE-2013-0900 (race condition)
144- add patch110 for fix CVE-2013-2924 (use-after-free)
145- add Vendor/Distri tags
146
147* Sat May 19 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4-3
148- rebuilt with rpm-4.8.1-3
149
150* Tue Apr 13 2010 Shu KONNO <owa@bg.wakwak.com> 4.4-2
151- install libicutest.so*
152
153* Sat Apr 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4-1
154- new upstream release
155- built with new toolchain
156
157* Sun Mar 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.1-1vl5
158- new upstream release
159- updated URL
160
161* Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 3.6-1vl5
162- applied new versioning policy, spec in utf-8
163
164* Tue Sep  4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.6-0vl1
165- updated to 3.6
166- removed ".so ver" from libicu package name
167- changed Group to Development/Tools
168- changed libicu-doc Group to Applications/Documentation
169
170* Tue Mar 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.4.1-0vl1
171- updated to 3.4.1
172
173* Sun Jul 31 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.2-3vl1
174- updated to 3.2 based on Fedora extra
175- new subpackage libicu-doc for API document
176
177* Sat Oct 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0-0vl1
178- Build for Vine Linux
179- add developers document to devel package
180- add Japanese summary
181
182* Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-1
183- Fixed a typo in the dependencies "libuci" should be "libicu". (Daniel Demus)
184
185* Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-0
186- Initial package. (using DAR)
Note: See TracBrowser for help on using the repository browser.