source: projects/specs/trunk/i/icu60/icu60-vl.spec @ 12263

Revision 12263, 6.0 KB checked in by tomop, 4 years ago (diff)

updated 10 packages

epiphany-3.30.5-1

evolution-data-server-3.30.5-1

harfbuzz-2.6.2-1

icu-65.1-1

icu60-60.3-2

libboost-1.66.0-4

php73-7.3.10-1

postfix-3.4.7-1

webkitgtk4-2.26.1-1

xfsprogs-5.2.1-2

Line 
1%bcond_without libonly
2
3%define sover 60
4%define minorver 3
5
6%define _unpackaged_files_terminate_build 1
7
8Summary: International Components for Unicode
9Summary(ja): ユニコード用国際化コンポーネント
10Name: icu%{sover}
11Version: %{sover}.%{minorver}
12Release: 2%{?_dist_release}
13Group:   Development/Tools
14License: MIT
15URL:     http://icu-project.org/
16
17Source0: https://github.com/unicode-org/icu/releases/download/release-%{sover}-%{minorver}/icu4c-%{sover}_%{minorver}-src.tgz
18Source1: https://github.com/unicode-org/icu/releases/download/release-%{sover}-%{minorver}/icu4c-%{sover}_%{minorver}-docs.zip
19
20BuildRoot: %{_tmppath}/%{name}-%{version}-root
21BuildRequires: gcc-c++
22BuildRequires: unzip perl
23Requires: libicu%{sover} = %{version}
24
25Vendor: Project Vine
26Distribution: Vine Linux
27
28%description
29ICU is a C++ and C library that provides robust and full-featured Unicode
30support. This package contains the Unicode character database and derived
31properties, along with converters and time zones data.
32
33%package -n libicu%{sover}
34Summary: International Components for Unicode (library)
35Summary(ja): ユニコード用国際化コンポーネント (ライブラリ)
36Group: System Environment/Libraries
37Provides: libicu%{sover} = %{version}-%{release}
38
39%description -n libicu%{sover}
40ICU is a C++ and C library that provides robust and full-featured Unicode
41support. This package contains the runtime libraries for ICU. It does not
42contain any of the data files needed at runtime.
43
44%if %{without libonly}
45%package -n libicu%{sover}-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%{sover}-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%{sover}-doc
57Summary: Documentation for International Components for Unicode
58Summary(ja): ユニコード用国際化コンポーネントのドキュメント
59Group: Applications/Documentation
60
61%description -n libicu%{sover}-doc
62This package contains the development documentation for %{name}.
63%endif
64
65%prep
66%setup -q -n icu
67
68find . -name CVS -o -name .cvsignore | xargs -r rm -rf
69perl -pi -e 's/^(HAVE_DOT\b.*=).*$/$1 YES/' source/Doxyfile.in
70
71mkdir docs
72pushd docs
73unzip %{SOURCE1}
74popd
75
76%build
77cd source
78export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
79export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
80%configure --disable-static --with-data-packaging=library --disable-samples
81make %{?_smp_mflags}
82
83%install
84rm -rf $RPM_BUILD_ROOT
85make -C source install DESTDIR=$RPM_BUILD_ROOT
86cp -pR ./source/tools/ctestfw/libicutest.so* $RPM_BUILD_ROOT/%{_libdir}
87chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
88
89%if %{with libonly}
90rm -rf %{buildroot}%{_bindir}
91rm -rf %{buildroot}%{_sbindir}
92rm -rf %{buildroot}%{_libdir}/{icu,pkgconfig}
93rm -f  %{buildroot}%{_libdir}/*.so
94rm -rf %{buildroot}%{_includedir}
95rm -rf %{buildroot}%{_datadir}
96%endif
97
98%ifarch x86_64
99%check || :
100make %{?_smp_mflags} -C source check
101%endif
102
103%clean
104rm -rf $RPM_BUILD_ROOT
105
106%post -n libicu%{sover} -p /sbin/ldconfig
107
108%postun -n libicu%{sover} -p /sbin/ldconfig
109
110%if %{without libonly}
111%files
112%defattr(-, root, root, 0755)
113%license LICENSE
114%doc license.html readme.html
115%{_bindir}/derb
116%{_bindir}/genbrk
117%{_bindir}/gencfu
118%{_bindir}/gencnval
119%{_bindir}/gendict
120%{_bindir}/genrb
121%{_bindir}/icuinfo
122%{_bindir}/makeconv
123%{_bindir}/pkgdata
124%{_bindir}/uconv
125%{_sbindir}/*
126%{_mandir}/man?/*
127%exclude %{_mandir}/man1/icu-config.1*
128%endif
129
130%files -n libicu%{sover}
131%license LICENSE
132%defattr(-, root, root, 0755)
133%{_libdir}/*.so.*
134
135%if %{without libonly}
136%files -n libicu%{sover}-devel
137%license LICENSE
138%defattr(-, root, root, 0755)
139%{_bindir}/icu-config
140%{_includedir}/unicode
141%{_libdir}/*.so
142%{_libdir}/icu
143%{_libdir}/pkgconfig/*.pc
144%{_mandir}/man1/icu-config.1*
145%{_datadir}/icu
146
147%files -n libicu%{sover}-doc
148%license LICENSE
149%defattr(-,root,root,-)
150%doc docs/*
151%endif
152
153%changelog
154* Sun Oct 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.3-2
155- changed %%name and built for compatibility.
156
157* Fri Aug 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.3-1
158- updated to 60.3.
159- disables test on i686.
160
161* Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 60.2-1
162- updated to 60.2.
163
164* Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 56.1-2
165- rebuild with gcc-5.4.0
166
167* Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 56.1-1
168- update to 56.1
169
170* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 54.1-1
171- update to 54.1
172
173* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 52.1-1
174- new upstream release
175
176* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 51.2-1
177- update to 51.2
178
179* Tue Apr 13 2010 Shu KONNO <owa@bg.wakwak.com> 4.4-2
180- install libicutest.so*
181
182* Sat Apr 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4-1
183- new upstream release
184- built with new toolchain
185
186* Sun Mar 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.1-1vl5
187- new upstream release
188- updated URL
189
190* Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 3.6-1vl5
191- applied new versioning policy, spec in utf-8
192
193* Tue Sep  4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.6-0vl1
194- updated to 3.6
195- removed ".so ver" from libicu package name
196- changed Group to Development/Tools
197- changed libicu-doc Group to Applications/Documentation
198
199* Tue Mar 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.4.1-0vl1
200- updated to 3.4.1
201
202* Sun Jul 31 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.2-3vl1
203- updated to 3.2 based on Fedora extra
204- new subpackage libicu-doc for API document
205
206* Sat Oct 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0-0vl1
207- Build for Vine Linux
208- add developers document to devel package
209- add Japanese summary
210
211* Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-1
212- Fixed a typo in the dependencies "libuci" should be "libicu". (Daniel Demus)
213
214* Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 2.6.2-0
215- Initial package. (using DAR)
Note: See TracBrowser for help on using the repository browser.