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

Revision 6197, 4.9 KB checked in by inagaki, 12 years ago (diff)

update: eigen2, fastjar, icu

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