source: projects/specs/trunk/i/icu/icu-vl.spec @ 12131

Revision 12131, 5.6 KB checked in by tomop, 5 years ago (diff)

Merge branch 'tomop'

RevLine 
[11365]1%define sover 60
[12131]2%define minorver 3
[11365]3
4%define _unpackaged_files_terminate_build 1
5
[521]6Summary: International Components for Unicode
7Summary(ja): ユニコード用国際化コンポーネント
8Name: icu
[12131]9Version: %{sover}.%{minorver}
[11365]10Release: 1%{?_dist_release}
[521]11Group:   Development/Tools
12License: MIT
[798]13URL:     http://icu-project.org/
[521]14
[12131]15Source0: https://github.com/unicode-org/icu/releases/download/release-%{sover}-%{minorver}/icu4c-%{sover}_%{minorver}-src.tgz
16Source1: https://github.com/unicode-org/icu/releases/download/release-%{sover}-%{minorver}/icu4c-%{sover}_%{minorver}-docs.zip
[521]17
18BuildRoot: %{_tmppath}/%{name}-%{version}-root
[798]19BuildRequires: gcc-c++
20BuildRequires: unzip perl
[521]21#Requires: libicu%{sover} = %{version}
22Requires: libicu = %{version}-%{release}
23
[8084]24Vendor: Project Vine
25Distribution: Vine Linux
26
[521]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}
[12131]66
[521]67find . -name CVS -o -name .cvsignore | xargs -r rm -rf
68perl -pi -e 's/^(HAVE_DOT\b.*=).*$/$1 YES/' source/Doxyfile.in
69
70mkdir docs
71pushd docs
72unzip %{SOURCE1}
73popd
74
75%build
76cd source
77export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
78export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
[798]79%configure --disable-static --with-data-packaging=library --disable-samples
[12131]80make %{?_smp_mflags}
[521]81
82%install
83rm -rf $RPM_BUILD_ROOT
84make -C source install DESTDIR=$RPM_BUILD_ROOT
[818]85cp -pR ./source/tools/ctestfw/libicutest.so* $RPM_BUILD_ROOT/%{_libdir}
[521]86chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
87
[12131]88%ifarch x86_64
[521]89%check || :
[12131]90make %{?_smp_mflags} -C source check
91%endif
[521]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)
[11365]102%license LICENSE
[521]103%doc license.html readme.html
104%{_bindir}/derb
105%{_bindir}/genbrk
[798]106%{_bindir}/gencfu
[521]107%{_bindir}/gencnval
[7938]108%{_bindir}/gendict
[521]109%{_bindir}/genrb
[798]110%{_bindir}/icuinfo
[521]111%{_bindir}/makeconv
112%{_bindir}/pkgdata
113%{_bindir}/uconv
114%{_sbindir}/*
115%{_mandir}/man?/*
116%exclude %{_mandir}/man1/icu-config.1*
117
118%files -n libicu
[11365]119%license LICENSE
[521]120%defattr(-, root, root, 0755)
121%{_libdir}/*.so.*
122
123%files -n libicu-devel
[11365]124%license LICENSE
[521]125%defattr(-, root, root, 0755)
126%{_bindir}/icu-config
127%{_includedir}/unicode
128%{_libdir}/*.so
129%{_libdir}/%{name}
[11365]130%{_libdir}/pkgconfig/*.pc
[521]131%{_mandir}/man1/icu-config.1*
[7938]132%{_datadir}/%{name}
[521]133
134%files -n libicu-doc
[11365]135%license LICENSE
[521]136%defattr(-,root,root,-)
137%doc docs/*
138
139%changelog
[12131]140* Fri Aug 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.3-1
141- updated to 60.3.
142- disables test on i686.
143
[11365]144* Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.2-1
145- updated to 60.2.
146
[10413]147* Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 56.1-2
148- rebuild with gcc-5.4.0
149
[9791]150* Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 56.1-1
151- update to 56.1
152
[9073]153* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 54.1-1
154- update to 54.1
155
[8084]156* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 52.1-1
157- new upstream release
158
[7938]159* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 51.2-1
160- update to 51.2
161
[818]162* Tue Apr 13 2010 Shu KONNO <owa@bg.wakwak.com> 4.4-2
163- install libicutest.so*
164
[798]165* Sat Apr 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4-1
166- new upstream release
167- built with new toolchain
168
[521]169* Sun Mar 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.1-1vl5
170- new upstream release
171- updated URL
172
173* Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 3.6-1vl5
174- applied new versioning policy, spec in utf-8
175
176* Tue Sep  4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.6-0vl1
177- updated to 3.6
178- removed ".so ver" from libicu package name
179- changed Group to Development/Tools
180- changed libicu-doc Group to Applications/Documentation
181
182* Tue Mar 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.4.1-0vl1
183- updated to 3.4.1
184
185* Sun Jul 31 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.2-3vl1
186- updated to 3.2 based on Fedora extra
187- new subpackage libicu-doc for API document
188
189* Sat Oct 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0-0vl1
190- Build for Vine Linux
191- add developers document to devel package
192- add Japanese summary
193
194* Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-1
195- Fixed a typo in the dependencies "libuci" should be "libicu". (Daniel Demus)
196
197* Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-0
198- Initial package. (using DAR)
Note: See TracBrowser for help on using the repository browser.