tzdata-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. Summary: Timezone data
  2. Summary(ja): タイムゾーンのデータ
  3. Name: tzdata
  4. Version: 2010l
  5. %define tzdata_version 2010l
  6. %define tzcode_version 2010l
  7. Release: 2%{?_dist_release}
  8. License: Public Domain
  9. Group: System Environment/Base
  10. URL: ftp://elsie.nci.nih.gov/pub/
  11. # The tzdata-base-0.tar.bz2 is a simple building infrastructure and
  12. # a test suite. It is occasionally updated from glibc sources, and as
  13. # such is under LGPLv2+, but none of this ever gets to be part of
  14. # final zoneinfo files.
  15. Source0: tzdata-base-0.tar.bz2
  16. # These are official upstream.
  17. Source1: ftp://elsie.nci.nih.gov/pub/tzdata%{tzdata_version}.tar.gz
  18. Source2: ftp://elsie.nci.nih.gov/pub/tzcode%{tzcode_version}.tar.gz
  19. Source3: javazic.tar.gz
  20. Patch0: javazic-fixup.patch
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildArch: noarch
  23. BuildRequires: gawk, glibc, perl
  24. BuildRequires: java-devel
  25. BuildRequires: glibc-common >= 2.5.90-7
  26. Conflicts: glibc-common <= 2.3.2-63
  27. %description
  28. This package contains data files with rules for various timezones around
  29. the world.
  30. %description -l ja
  31. このパッケージには世界中のタイムゾーンに関するデータファイルが収録されています.
  32. %package java
  33. Summary: Timezone data for Java
  34. Group: System Environment/Base
  35. %description java
  36. This package contains timezone information for use by Java runtimes.
  37. %prep
  38. %setup -n tzdata
  39. mkdir tzdata%{tzdata_version}
  40. tar xzf %{SOURCE1} -C tzdata%{tzdata_version}
  41. mkdir tzcode%{tzcode_version}
  42. tar xzf %{SOURCE2} -C tzcode%{tzcode_version}
  43. sed -e 's|@objpfx@|'`pwd`'/obj/|' \
  44. -e 's|@datadir@|%{_datadir}|' \
  45. Makeconfig.in > Makeconfig
  46. mkdir javazic
  47. tar zxf %{SOURCE3} -C javazic
  48. pushd javazic
  49. %patch0
  50. # Hack alert! sun.tools may be defined and installed in the
  51. # VM. In order to guarantee that we are using IcedTea/OpenJDK
  52. # for creating the zoneinfo files, rebase all the packages
  53. # from "sun." to "rht.". Unfortunately, gcj does not support
  54. # any of the -Xclasspath options, so we must go this route
  55. # to ensure the greatest compatibility.
  56. mv sun rht
  57. find . -type f -name '*.java' -print0 \
  58. | xargs -0 -- sed -i -e 's:sun\.tools\.:rht.tools.:g' \
  59. -e 's:sun\.util\.:rht.util.:g'
  60. popd
  61. %build
  62. make
  63. grep -v tz-art.htm tzcode%{tzcode_version}/tz-link.htm > tzcode%{tzcode_version}/tz-link.html
  64. pushd javazic
  65. javac -source 1.5 -target 1.5 -classpath . `find . -name \*.java`
  66. popd
  67. pushd tzdata%{tzdata_version}
  68. java -classpath ../javazic/ rht.tools.javazic.Main -V %{version} \
  69. -d ../zoneinfo/java \
  70. africa antarctica asia australasia europe northamerica pacificnew \
  71. southamerica backward etcetera solar87 solar88 solar89 systemv \
  72. ../javazic/tzdata_jdk/gmt ../javazic/tzdata_jdk/jdk11_backward
  73. popd
  74. %install
  75. rm -fr $RPM_BUILD_ROOT
  76. sed -i 's|@install_root@|%{buildroot}|' Makeconfig
  77. make install
  78. cp -pr zoneinfo/java $RPM_BUILD_ROOT%{_datadir}/javazi
  79. %check
  80. echo ====================TESTING=========================
  81. make check
  82. echo ====================TESTING END=====================
  83. %clean
  84. rm -fr $RPM_BUILD_ROOT
  85. %files
  86. %defattr(-,root,root)
  87. %{_datadir}/zoneinfo
  88. %doc tzcode%{tzcode_version}/README
  89. %doc tzcode%{tzcode_version}/Theory
  90. %doc tzcode%{tzcode_version}/tz-link.html
  91. %files java
  92. %defattr(-,root,root)
  93. %{_datadir}/javazi
  94. %changelog
  95. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2010l-2
  96. - rebuilt with rpm-4.8.1-3
  97. * Sat Sep 04 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2010l-1
  98. - update to tzdata-2010l, tzcode-2010l
  99. - added java subpackage
  100. * Tue Apr 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2009d-1
  101. - update to tzdata-2009d, tzcode-2009d
  102. - spec in utf-8
  103. * Sun Apr 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2008b-1
  104. - update to tzdata-2008b, tzcode-2008a
  105. * Sun May 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2007d-1vl1
  106. - initial build for VineSeed
  107. * Fri Mar 23 2007 Petr Machata <pmachata@redhat.com> - 2007d-1
  108. - Upstream 2007d
  109. - Mongolia has abolished DST.
  110. - Turkey will use EU rules this year, changing at 01:00 UTC rather
  111. than 01:00 standard time.
  112. - Cuba observed DST starting Sunday.
  113. - Resolute, Nunavut switched from Central to Eastern time last
  114. November.
  115. * Mon Feb 26 2007 Petr Machata <pmachata@redhat.com> - 2007c-1
  116. - Upstream 2007c
  117. - Pulaski County, Indiana, switched back to eastern time.
  118. - Turkey switches at 01:00 standard time, not at 01:00 UTC.
  119. - Upstream 2007b
  120. - Changes to the commentary in "leapseconds".
  121. - Upstream 2007a
  122. - Updates to Bahamas, they will be in sync with 2007 US DST change
  123. - New zone Australia/Eucla
  124. - Africa/Asmera renamed to Africa/Asmara, link created
  125. - Atlantic/Faeroe renamed to Atlantic/Faroe, link created
  126. * Wed Nov 29 2006 Petr Machata <pmachata@redhat.com> - 2006p-1
  127. - Upstream 2006p
  128. - Covers changes from 2006m-2 and 2006m-3
  129. - Latitude/longitude changes for Europe/Jersey and Europe/Podgorica
  130. * Wed Nov 22 2006 Petr Machata <pmachata@redhat.com> - 2006m-3
  131. - Patch for Western Australia DST trial
  132. * Tue Oct 10 2006 Petr Machata <pmachata@redhat.com> - 2006m-2
  133. - Proposed upstream patch (#210058)
  134. - Jordan will switch to winter time on October 27, not September 29
  135. - Brazil's DST this year is the first Sunday in November to the last
  136. Sunday in February. (Thanks to Frederico A. C. Neves.)
  137. - ISO 3166 codes for Serbia and Montenegro, zone Europe/Podgorica
  138. - Commentary and past timestamps changes
  139. * Tue Oct 3 2006 Petr Machata <pmachata@redhat.com> - 2006m-1
  140. - Upstream 2006m:
  141. - Adjustments for Egypt, Palestine, Uruguay
  142. - Better description of `until' field in zic (8) manpage
  143. * Thu Sep 21 2006 Petr Machata <pmachata@redhat.com> - 2006l-1
  144. - Upstream 2006k, 2006l:
  145. - Adjustments for Egypt, Palestine, Cuba, Honduras
  146. - Documentation changes
  147. * Tue Aug 22 2006 Petr Machata <pmachata@redhat.com> - 2006j-1
  148. - Upstream 2006j
  149. - Honduras stopped observing DST on Monday at 00:00
  150. - America/Bermuda will follow the US's lead next year
  151. - America/Moncton will use US-style rules next year
  152. - New Zone America/Blanc-Sablon, for Canadians who observe AST all
  153. year
  154. - New zone: America/Atikokan instead of America/Coral_Harbour
  155. - New zones: Europe/Jersey, Europe/Guernsey, Europe/Isle_of_Man
  156. - Historical changes
  157. - Commentary updates
  158. - Upstream 2006i
  159. - localtime.c fixes
  160. - Upstream 2006h
  161. - zic leapsecond fix
  162. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2006g-1.1
  163. - rebuild
  164. * Thu May 11 2006 Petr Machata <pmachata@redhat.com> - 2006g-1
  165. - Honduras chose to follow Guatemala and will observe DST May/6 to Sep/2
  166. - Nicaragua updates
  167. * Tue May 2 2006 Petr Machata <pmachata@redhat.com> - 2006f-1
  168. - Upstream 2006f
  169. - America/Guatemala observes DST between Apr/30 and Oct/1
  170. - Historical changes for Nicaragua
  171. - Update of America/Indiana/Vincennes in zone table
  172. * Thu Apr 20 2006 Petr Machata <pmachata@redhat.com> - 2006d-1
  173. - Upstream 2006d
  174. - Haiti observes DST
  175. - Sri Lanka change actually took effect Apr/15
  176. - All Canada is now scheduled for 2007 US DST rules
  177. - Some historical fixes
  178. * Thu Apr 6 2006 Petr Machata <pmachata@redhat.com> - 2006c-1
  179. - Upstream 2006c
  180. - Time-related changes:
  181. - dozens of historical and commentary changes
  182. - Iran stopped observing DST
  183. - Sri Lanka switches from UTC+6 to UTC+5:30
  184. - America/Thule and America/Edmonton will adopt new US rules,
  185. starting 2007
  186. - Tunisia is adopting regular DST
  187. - Code:
  188. - asctime.c: Chages in format strings to silent gcc warnings
  189. - removing K&R notation from function signatures
  190. - few fixes across the code
  191. * Thu Mar 16 2006 Petr Machata <pmachata@redhat.com> - 2006b-2
  192. - Patch for Sri Lanka time zone change (#184514)
  193. * Thu Feb 22 2006 Petr Machata <pmachata@redhat.com> 2006b-1
  194. - Upstream 2006b:
  195. - using tz64code version, as 32 is legacy according to tzdata ML
  196. - new manual pages for ctime, strftime, tzset
  197. - some source code reorganizations
  198. - no timezone/dst rule updates
  199. * Thu Feb 02 2006 Petr Machata <pmachata@redhat.com> 2006a-2
  200. - Small changes in tst-timezone.c
  201. * Thu Feb 02 2006 Petr Machata <pmachata@redhat.com> 2006a-1
  202. - Upstream 2006a:
  203. - private.h(scheck): changing char* to char const*
  204. - Rule changes for Palestine, zone changes for Indiana/US, both
  205. changes for Canada.
  206. - Many related doc changes.
  207. - Naming scheme in spec file doesn't use %%{name}, but tzdata.
  208. * Thu Jan 12 2006 Petr Machata <pmachata@redhat.com> 2005r-3
  209. - 2005r-3
  210. - Meta changes. Renaming tzdata.tar.bz2 file to tzdata$ver-base,
  211. so that it won't clash across updates.
  212. * Thu Jan 5 2006 Petr Machata <pmachata@redhat.com> 2005r-2
  213. - 2005r
  214. - Zones EST, MST, HST, EST5EDT, CST6CDT, MST7MDT, PST8PDT moved to
  215. northamerica to guard against old files with obsolete information
  216. being left in the time zone binary directory.
  217. - Changes for countries that are supposed to join 2007 US DST
  218. change. This includes most of Canada, however entries already in
  219. the database (Alberta, British Columbia, Newfoundland, Northwest
  220. Territories, and Yukon) were left alone for the time being.
  221. - Fixes in zdump.c (abbrok): conditions are chained, and the string
  222. is checked for emptiness.
  223. * Sat Dec 17 2005 Jakub Jelinek <jakub@redhat.com> 2005q-2
  224. - 2005q
  225. - changes for Georgia, Azerbaijan, Jordan, Palestine, Cuba, Nicaragua
  226. - SystemV timezone changes
  227. * Wed Nov 2 2005 Jakub Jelinek <jakub@redhat.com> 2005n-2
  228. - 2005n
  229. - changes for Kyrgyzstan and Uruguay
  230. - fix a typo in the Makefile (used TZDATA env var instead of TZDIR during
  231. make check), update tst-timezone.c from glibc CVS (#172102)
  232. * Tue Sep 6 2005 Jakub Jelinek <jakub@redhat.com> 2005m-2
  233. - 2005m
  234. - changes for USA (extending DST by 4 weeks since 2007), Tunisia,
  235. Australia, Kazakhstan
  236. - historical timezone data changes for Japan, Poland, Northern Ireland and
  237. Mali
  238. - timezone name change for East Timor
  239. * Fri Jul 15 2005 Jakub Jelinek <jakub@redhat.com> 2005k-2
  240. - 2005k
  241. - leap seconds update
  242. * Sat Apr 30 2005 Jakub Jelinek <jakub@redhat.com> 2005i-2
  243. - 2005i
  244. - updates for Iran, Haiti and Nicaragua
  245. * Mon Apr 4 2005 Jakub Jelinek <jakub@redhat.com> 2005h-2
  246. - 2005h
  247. - fixes for Kazakhstan
  248. * Thu Mar 17 2005 Jakub Jelinek <jakub@redhat.com> 2005g-2
  249. - 2005g
  250. - fixes for Uruguay
  251. - include README and Theory from tzcode tarball in %{_docdir};
  252. Theory includes a good summary of how the timezone data files
  253. are supposed to be named
  254. * Tue Mar 1 2005 Jakub Jelinek <jakub@redhat.com> 2005f-2
  255. - 2005f
  256. - more updates for Israel, updates for Azerbaijan
  257. * Wed Jan 26 2005 Jakub Jelinek <jakub@redhat.com> 2005c-3
  258. - 2005c
  259. - updates for Israel and Paraguay
  260. * Mon Nov 29 2004 Jakub Jelinek <jakub@redhat.com> 2004g-1
  261. - 2004g (#141107)
  262. - updates for Cuba
  263. * Mon Oct 11 2004 Jakub Jelinek <jakub@redhat.com> 2004e-2
  264. - 2004e (#135194)
  265. - updates for Brazil, Uruguay and Argentina
  266. * Wed Aug 4 2004 Jakub Jelinek <jakub@redhat.com> 2004b-2
  267. - 2004b
  268. * Mon Oct 6 2003 Jakub Jelinek <jakub@redhat.com> 2003d-1
  269. - 2003d
  270. * Thu Sep 25 2003 Jakub Jelinek <jakub@redhat.com> 2003c-1
  271. - 2003c
  272. - updates for Brazil (#104840)
  273. * Mon Jul 28 2003 Jakub Jelinek <jakub@redhat.com> 2003a-2
  274. - rebuilt
  275. * Mon Jul 28 2003 Jakub Jelinek <jakub@redhat.com> 2003a-1
  276. - initial package