tzdata-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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: 1%{?_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. * Sat Sep 04 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2010l-1
  96. - update to tzdata-2010l, tzcode-2010l
  97. - added java subpackage
  98. * Tue Apr 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2009d-1
  99. - update to tzdata-2009d, tzcode-2009d
  100. - spec in utf-8
  101. * Sun Apr 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2008b-1
  102. - update to tzdata-2008b, tzcode-2008a
  103. * Sun May 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2007d-1vl1
  104. - initial build for VineSeed
  105. * Fri Mar 23 2007 Petr Machata <pmachata@redhat.com> - 2007d-1
  106. - Upstream 2007d
  107. - Mongolia has abolished DST.
  108. - Turkey will use EU rules this year, changing at 01:00 UTC rather
  109. than 01:00 standard time.
  110. - Cuba observed DST starting Sunday.
  111. - Resolute, Nunavut switched from Central to Eastern time last
  112. November.
  113. * Mon Feb 26 2007 Petr Machata <pmachata@redhat.com> - 2007c-1
  114. - Upstream 2007c
  115. - Pulaski County, Indiana, switched back to eastern time.
  116. - Turkey switches at 01:00 standard time, not at 01:00 UTC.
  117. - Upstream 2007b
  118. - Changes to the commentary in "leapseconds".
  119. - Upstream 2007a
  120. - Updates to Bahamas, they will be in sync with 2007 US DST change
  121. - New zone Australia/Eucla
  122. - Africa/Asmera renamed to Africa/Asmara, link created
  123. - Atlantic/Faeroe renamed to Atlantic/Faroe, link created
  124. * Wed Nov 29 2006 Petr Machata <pmachata@redhat.com> - 2006p-1
  125. - Upstream 2006p
  126. - Covers changes from 2006m-2 and 2006m-3
  127. - Latitude/longitude changes for Europe/Jersey and Europe/Podgorica
  128. * Wed Nov 22 2006 Petr Machata <pmachata@redhat.com> - 2006m-3
  129. - Patch for Western Australia DST trial
  130. * Tue Oct 10 2006 Petr Machata <pmachata@redhat.com> - 2006m-2
  131. - Proposed upstream patch (#210058)
  132. - Jordan will switch to winter time on October 27, not September 29
  133. - Brazil's DST this year is the first Sunday in November to the last
  134. Sunday in February. (Thanks to Frederico A. C. Neves.)
  135. - ISO 3166 codes for Serbia and Montenegro, zone Europe/Podgorica
  136. - Commentary and past timestamps changes
  137. * Tue Oct 3 2006 Petr Machata <pmachata@redhat.com> - 2006m-1
  138. - Upstream 2006m:
  139. - Adjustments for Egypt, Palestine, Uruguay
  140. - Better description of `until' field in zic (8) manpage
  141. * Thu Sep 21 2006 Petr Machata <pmachata@redhat.com> - 2006l-1
  142. - Upstream 2006k, 2006l:
  143. - Adjustments for Egypt, Palestine, Cuba, Honduras
  144. - Documentation changes
  145. * Tue Aug 22 2006 Petr Machata <pmachata@redhat.com> - 2006j-1
  146. - Upstream 2006j
  147. - Honduras stopped observing DST on Monday at 00:00
  148. - America/Bermuda will follow the US's lead next year
  149. - America/Moncton will use US-style rules next year
  150. - New Zone America/Blanc-Sablon, for Canadians who observe AST all
  151. year
  152. - New zone: America/Atikokan instead of America/Coral_Harbour
  153. - New zones: Europe/Jersey, Europe/Guernsey, Europe/Isle_of_Man
  154. - Historical changes
  155. - Commentary updates
  156. - Upstream 2006i
  157. - localtime.c fixes
  158. - Upstream 2006h
  159. - zic leapsecond fix
  160. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2006g-1.1
  161. - rebuild
  162. * Thu May 11 2006 Petr Machata <pmachata@redhat.com> - 2006g-1
  163. - Honduras chose to follow Guatemala and will observe DST May/6 to Sep/2
  164. - Nicaragua updates
  165. * Tue May 2 2006 Petr Machata <pmachata@redhat.com> - 2006f-1
  166. - Upstream 2006f
  167. - America/Guatemala observes DST between Apr/30 and Oct/1
  168. - Historical changes for Nicaragua
  169. - Update of America/Indiana/Vincennes in zone table
  170. * Thu Apr 20 2006 Petr Machata <pmachata@redhat.com> - 2006d-1
  171. - Upstream 2006d
  172. - Haiti observes DST
  173. - Sri Lanka change actually took effect Apr/15
  174. - All Canada is now scheduled for 2007 US DST rules
  175. - Some historical fixes
  176. * Thu Apr 6 2006 Petr Machata <pmachata@redhat.com> - 2006c-1
  177. - Upstream 2006c
  178. - Time-related changes:
  179. - dozens of historical and commentary changes
  180. - Iran stopped observing DST
  181. - Sri Lanka switches from UTC+6 to UTC+5:30
  182. - America/Thule and America/Edmonton will adopt new US rules,
  183. starting 2007
  184. - Tunisia is adopting regular DST
  185. - Code:
  186. - asctime.c: Chages in format strings to silent gcc warnings
  187. - removing K&R notation from function signatures
  188. - few fixes across the code
  189. * Thu Mar 16 2006 Petr Machata <pmachata@redhat.com> - 2006b-2
  190. - Patch for Sri Lanka time zone change (#184514)
  191. * Thu Feb 22 2006 Petr Machata <pmachata@redhat.com> 2006b-1
  192. - Upstream 2006b:
  193. - using tz64code version, as 32 is legacy according to tzdata ML
  194. - new manual pages for ctime, strftime, tzset
  195. - some source code reorganizations
  196. - no timezone/dst rule updates
  197. * Thu Feb 02 2006 Petr Machata <pmachata@redhat.com> 2006a-2
  198. - Small changes in tst-timezone.c
  199. * Thu Feb 02 2006 Petr Machata <pmachata@redhat.com> 2006a-1
  200. - Upstream 2006a:
  201. - private.h(scheck): changing char* to char const*
  202. - Rule changes for Palestine, zone changes for Indiana/US, both
  203. changes for Canada.
  204. - Many related doc changes.
  205. - Naming scheme in spec file doesn't use %%{name}, but tzdata.
  206. * Thu Jan 12 2006 Petr Machata <pmachata@redhat.com> 2005r-3
  207. - 2005r-3
  208. - Meta changes. Renaming tzdata.tar.bz2 file to tzdata$ver-base,
  209. so that it won't clash across updates.
  210. * Thu Jan 5 2006 Petr Machata <pmachata@redhat.com> 2005r-2
  211. - 2005r
  212. - Zones EST, MST, HST, EST5EDT, CST6CDT, MST7MDT, PST8PDT moved to
  213. northamerica to guard against old files with obsolete information
  214. being left in the time zone binary directory.
  215. - Changes for countries that are supposed to join 2007 US DST
  216. change. This includes most of Canada, however entries already in
  217. the database (Alberta, British Columbia, Newfoundland, Northwest
  218. Territories, and Yukon) were left alone for the time being.
  219. - Fixes in zdump.c (abbrok): conditions are chained, and the string
  220. is checked for emptiness.
  221. * Sat Dec 17 2005 Jakub Jelinek <jakub@redhat.com> 2005q-2
  222. - 2005q
  223. - changes for Georgia, Azerbaijan, Jordan, Palestine, Cuba, Nicaragua
  224. - SystemV timezone changes
  225. * Wed Nov 2 2005 Jakub Jelinek <jakub@redhat.com> 2005n-2
  226. - 2005n
  227. - changes for Kyrgyzstan and Uruguay
  228. - fix a typo in the Makefile (used TZDATA env var instead of TZDIR during
  229. make check), update tst-timezone.c from glibc CVS (#172102)
  230. * Tue Sep 6 2005 Jakub Jelinek <jakub@redhat.com> 2005m-2
  231. - 2005m
  232. - changes for USA (extending DST by 4 weeks since 2007), Tunisia,
  233. Australia, Kazakhstan
  234. - historical timezone data changes for Japan, Poland, Northern Ireland and
  235. Mali
  236. - timezone name change for East Timor
  237. * Fri Jul 15 2005 Jakub Jelinek <jakub@redhat.com> 2005k-2
  238. - 2005k
  239. - leap seconds update
  240. * Sat Apr 30 2005 Jakub Jelinek <jakub@redhat.com> 2005i-2
  241. - 2005i
  242. - updates for Iran, Haiti and Nicaragua
  243. * Mon Apr 4 2005 Jakub Jelinek <jakub@redhat.com> 2005h-2
  244. - 2005h
  245. - fixes for Kazakhstan
  246. * Thu Mar 17 2005 Jakub Jelinek <jakub@redhat.com> 2005g-2
  247. - 2005g
  248. - fixes for Uruguay
  249. - include README and Theory from tzcode tarball in %{_docdir};
  250. Theory includes a good summary of how the timezone data files
  251. are supposed to be named
  252. * Tue Mar 1 2005 Jakub Jelinek <jakub@redhat.com> 2005f-2
  253. - 2005f
  254. - more updates for Israel, updates for Azerbaijan
  255. * Wed Jan 26 2005 Jakub Jelinek <jakub@redhat.com> 2005c-3
  256. - 2005c
  257. - updates for Israel and Paraguay
  258. * Mon Nov 29 2004 Jakub Jelinek <jakub@redhat.com> 2004g-1
  259. - 2004g (#141107)
  260. - updates for Cuba
  261. * Mon Oct 11 2004 Jakub Jelinek <jakub@redhat.com> 2004e-2
  262. - 2004e (#135194)
  263. - updates for Brazil, Uruguay and Argentina
  264. * Wed Aug 4 2004 Jakub Jelinek <jakub@redhat.com> 2004b-2
  265. - 2004b
  266. * Mon Oct 6 2003 Jakub Jelinek <jakub@redhat.com> 2003d-1
  267. - 2003d
  268. * Thu Sep 25 2003 Jakub Jelinek <jakub@redhat.com> 2003c-1
  269. - 2003c
  270. - updates for Brazil (#104840)
  271. * Mon Jul 28 2003 Jakub Jelinek <jakub@redhat.com> 2003a-2
  272. - rebuilt
  273. * Mon Jul 28 2003 Jakub Jelinek <jakub@redhat.com> 2003a-1
  274. - initial package