2008-10-06 19:11:15 +02:00
|
|
|
#
|
2011-09-05 17:56:03 +02:00
|
|
|
# spec file for package timezone-java
|
2008-10-06 19:11:15 +02:00
|
|
|
#
|
2013-02-04 18:03:30 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-10-06 19:11:15 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: timezone-java
|
2012-04-03 17:39:06 +02:00
|
|
|
BuildRequires: fastjar
|
|
|
|
BuildRequires: gcc-gij
|
|
|
|
BuildRequires: javazic
|
2008-10-06 19:11:15 +02:00
|
|
|
Summary: Timezone Descriptions
|
2012-04-03 17:39:06 +02:00
|
|
|
License: BSD-3-Clause and SUSE-Public-Domain
|
2008-10-06 19:11:15 +02:00
|
|
|
Group: System/Base
|
2008-12-03 16:46:21 +01:00
|
|
|
# COMMON-BEGIN
|
|
|
|
# COMMON-BEGIN
|
2013-10-02 13:34:00 +02:00
|
|
|
Version: 2013g
|
2012-04-03 17:39:06 +02:00
|
|
|
Release: 0
|
2012-07-25 16:20:50 +02:00
|
|
|
Source: ftp://ftp.iana.org/tz/releases/tzdata%{version}.tar.gz
|
2012-08-13 14:46:17 +02:00
|
|
|
Source1: ftp://ftp.iana.org/tz/releases/tzcode%{version}.tar.gz
|
2011-10-25 17:14:10 +02:00
|
|
|
Patch0: tzdata-china.diff
|
|
|
|
Patch1: tzcode-zic.diff
|
2013-10-23 10:14:47 +02:00
|
|
|
# PATCH-FIX-OPENSUSE bnc#845530
|
|
|
|
Patch2: tzcode-fromname.patch
|
2011-10-25 17:14:10 +02:00
|
|
|
Patch3: iso3166-uk.diff
|
|
|
|
Patch4: tzcode-link.diff
|
2012-09-14 12:40:45 +02:00
|
|
|
Patch5: tzcode-symlink.patch
|
2008-12-03 16:46:21 +01:00
|
|
|
# COMMON-END
|
|
|
|
# COMMON-END
|
2012-10-29 20:13:44 +01:00
|
|
|
Url: http://www.gnu.org/software/libc/libc.html
|
2008-10-23 12:31:58 +02:00
|
|
|
PreReq: filesystem, coreutils
|
2008-10-06 19:11:15 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
Provides: tzdata-java = %{version}-%{release}
|
2008-12-03 16:46:21 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-10-06 19:11:15 +02:00
|
|
|
|
|
|
|
%description
|
2008-10-13 18:37:29 +02:00
|
|
|
These are configuration files that describe available time zones - this
|
|
|
|
package is intended for Java Virtual Machine based on OpenJDK.
|
2008-10-06 19:11:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2011-10-26 15:49:35 +02:00
|
|
|
%setup -c -a 1
|
2011-10-25 17:14:10 +02:00
|
|
|
# COMMON-PREP-BEGIN
|
|
|
|
# COMMON-PREP-BEGIN
|
2013-10-02 13:34:00 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2013-10-23 10:14:47 +02:00
|
|
|
%patch2 -p1
|
2013-10-02 13:34:00 +02:00
|
|
|
%patch3 -p1
|
2012-09-14 12:40:45 +02:00
|
|
|
%if 0%{?suse_version} < 1220
|
2013-10-02 13:34:00 +02:00
|
|
|
%patch4 -p1
|
2012-09-14 12:40:45 +02:00
|
|
|
%else
|
|
|
|
%patch5 -p1
|
|
|
|
%endif
|
2013-10-23 10:14:47 +02:00
|
|
|
sed -ri 's@/usr/local/etc/zoneinfo@%{_datadir}/zoneinfo@g' *.[1358]
|
2011-10-25 17:14:10 +02:00
|
|
|
# COMMON-PREP-END
|
|
|
|
# COMMON-PREP-END
|
2008-10-06 19:11:15 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
gij -jar %{_javadir}/javazic.jar -V %{version} \
|
|
|
|
-d javazi \
|
|
|
|
africa antarctica asia australasia europe northamerica pacificnew \
|
|
|
|
southamerica backward etcetera solar87 solar88 solar89 systemv \
|
|
|
|
%{_datadir}/javazic/tzdata_jdk/gmt \
|
|
|
|
%{_datadir}/javazic/tzdata_jdk/jdk11_backward
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT/%{_datadir}
|
|
|
|
cp -a javazi $RPM_BUILD_ROOT%{_datadir}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/javazi
|
|
|
|
|
|
|
|
%changelog
|