Bump to 2023c accepted/tizen_6.0_base accepted/tizen_6.0_base_tool accepted/tizen_6.5_base accepted/tizen_6.5_base_tool accepted/tizen_7.0_base accepted/tizen_7.0_base_tool accepted/tizen_8.0_base accepted/tizen_9.0_base accepted/tizen_base accepted/tizen_base_tool sandbox/tzdata_2023c tizen_6.0_base tizen_6.5_base tizen_7.0_base tizen_8.0_base tizen_9.0_base tizen_base accepted/tizen/6.0/base/20230713.143106 accepted/tizen/6.0/base/tool/20230423.211426 accepted/tizen/6.5/base/20230714.002727 accepted/tizen/6.5/base/tool/20230420.231329 accepted/tizen/7.0/base/20230714.003136 accepted/tizen/7.0/base/tool/20230420.064534 accepted/tizen/8.0/base/20231005.045241 accepted/tizen/9.0/base/20241030.074957 accepted/tizen/base/20230714.003539 accepted/tizen/base/tool/20230420.080331 submit/tizen_6.0_base/20230419.065936 submit/tizen_6.0_base/20230420.054822 submit/tizen_6.5_base/20230419.065923 submit/tizen_6.5_base/20230420.053953 submit/tizen_7.0_base/20230420.053747 submit/tizen_base/20230420.053315 tizen_8.0_m2_release tizen_9.0_m2_release
authorTizenOpenSource <tizenopensrc@samsung.com>
Thu, 20 Apr 2023 05:22:13 +0000 (14:22 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Thu, 20 Apr 2023 05:22:13 +0000 (14:22 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/tzdata-rpmlintrc [new file with mode: 0644]
packaging/tzdata.changes [new file with mode: 0644]
packaging/tzdata.manifest [new file with mode: 0644]
packaging/tzdata.spec [new file with mode: 0644]

diff --git a/packaging/tzdata-rpmlintrc b/packaging/tzdata-rpmlintrc
new file mode 100644 (file)
index 0000000..3b6b114
--- /dev/null
@@ -0,0 +1 @@
+addFilter("E: invalid-license");
diff --git a/packaging/tzdata.changes b/packaging/tzdata.changes
new file mode 100644 (file)
index 0000000..cf71864
--- /dev/null
@@ -0,0 +1,6 @@
+* Fri Mar 22 2013 Anas Nashif <anas.nashif@intel.com> upstream/2012e@c4cd0c4
+- Fixed package groups
+
+* Mon Feb 25 2013 Patrick McCarty <patrick.mccarty@linux.intel.com> upstream/2012e@db3d9a9
+- (TZPC-1000) Reference $ZONE instead of $TIMEZONE in the %post section
+
diff --git a/packaging/tzdata.manifest b/packaging/tzdata.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/tzdata.spec b/packaging/tzdata.spec
new file mode 100644 (file)
index 0000000..4bcb202
--- /dev/null
@@ -0,0 +1,82 @@
+Name:           tzdata
+Summary:        Timezone Descriptions
+License:        PD
+Group:          Base/Configuration
+Url:            https://www.iana.org/time-zones
+Requires(pre):         filesystem, coreutils
+# COMMON-BEGIN
+Version:        2023c
+Release:        0
+Source:         ftp://ftp.iana.org/tz/releases/tzdata%{version}.tar.gz
+Source1001:     tzdata.manifest
+Provides:       timezone
+# COMMON-END
+%global AREA    Etc
+%global ZONE    UTC
+
+%description
+These are configuration files that describe available time zones. You
+can select an appropriate time zone for your system with YaST.
+
+
+
+%prep
+%setup -c
+cp %{SOURCE1001} .
+# COMMON-PREP-BEGIN
+# COMMON-PREP-END
+
+%build
+unset ${!LC_*}
+LANG=POSIX
+LC_ALL=POSIX
+AREA=%{AREA}
+ZONE=%{ZONE}
+export AREA LANG LC_ALL ZONE
+%__make %{?_smp_mflags} TZDIR=%{_prefix}/share/zoneinfo CFLAGS="$RPM_OPT_FLAGS -DHAVE_GETTEXT=1 -DTZDEFAULT='\"/etc/localtime\"' -fPIE" LDFLAGS=" -pie " AWK=awk
+%__make %{?_smp_mflags} TZDIR=zoneinfo CFLAGS=" -fPIE " LDFLAGS=" -pie "  AWK=awk zones
+# Generate posixrules
+./zic -y ./yearistype -d zoneinfo -p %{AREA}/%{ZONE}
+
+%install
+mkdir -p %{buildroot}%{_prefix}/share/zoneinfo
+cp -a zoneinfo %{buildroot}%{_prefix}/share/zoneinfo/posix
+cp -al %{buildroot}%{_prefix}/share/zoneinfo/posix/. %{buildroot}%{_prefix}/share/zoneinfo
+cp -a zoneinfo-leaps %{buildroot}%{_prefix}/share/zoneinfo/right
+mkdir -p %{buildroot}/etc
+rm -f  %{buildroot}/etc/localtime
+rm -f  %{buildroot}%{_prefix}/share/zoneinfo/posixrules
+cp -fp %{buildroot}%{_prefix}/share/zoneinfo/%{AREA}/%{ZONE} %{buildroot}/etc/localtime
+ln -sf /etc/localtime      %{buildroot}%{_prefix}/share/zoneinfo/posixrules
+install -m 644 iso3166.tab %{buildroot}%{_prefix}/share/zoneinfo/iso3166.tab
+install -m 644 zone.tab    %{buildroot}%{_prefix}/share/zoneinfo/zone.tab
+install -D -m 755 tzselect %{buildroot}%{_bindir}/tzselect
+install -D -m 755 zdump    %{buildroot}%{_sbindir}/zdump
+install -D -m 755 zic      %{buildroot}%{_sbindir}/zic
+
+%clean
+rm -rf %{buildroot}
+
+%post
+if [ -f /etc/sysconfig/clock ];
+then
+    . /etc/sysconfig/clock
+    if [ -n "$ZONE" -a -f /etc/localtime -a -f /usr/share/zoneinfo/$ZONE ]; then
+        new=$(mktemp /etc/localtime.XXXXXXXX) || exit 1
+        cp -l /usr/share/zoneinfo/$ZONE $new 2>/dev/null || cp -fp /usr/share/zoneinfo/$ZONE $new
+        mv -f $new /etc/localtime
+    else
+        [ ! -f /etc/localtime ] || echo "WARNING: Not updating /etc/localtime with new zone file" >&2
+    fi
+fi
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%license LICENSE
+%verify(not link md5 size mtime) %config(missingok,noreplace) %{_sysconfdir}/localtime
+%verify(not link md5 size mtime) %config(missingok,noreplace) %{_prefix}/share/zoneinfo/posixrules
+%{_prefix}/share/zoneinfo
+%{_bindir}/tzselect
+%{_sbindir}/zdump
+%{_sbindir}/zic