2007-08-09 12:05:51 +02:00
|
|
|
#
|
2011-02-18 13:23:56 +01:00
|
|
|
# spec file for package timezone
|
2007-08-09 12:05:51 +02:00
|
|
|
#
|
2023-01-24 09:25:52 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2024-02-02 13:20:34 +01:00
|
|
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
2007-08-09 12:05:51 +02:00
|
|
|
#
|
2008-09-24 17:38:31 +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.
|
|
|
|
|
2019-03-26 12:51:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-08-09 12:05:51 +02:00
|
|
|
#
|
|
|
|
|
2008-04-06 09:06:08 +02:00
|
|
|
|
2024-02-02 13:20:34 +01:00
|
|
|
%global AREA Etc
|
|
|
|
%global ZONE UTC
|
2020-04-15 18:09:50 +02:00
|
|
|
Name: timezone
|
2024-02-02 13:20:34 +01:00
|
|
|
Version: 2024a
|
|
|
|
Release: 0
|
2014-09-28 09:01:13 +02:00
|
|
|
Summary: Time Zone Descriptions
|
2018-10-18 10:06:26 +02:00
|
|
|
License: BSD-3-Clause AND SUSE-Public-Domain
|
2007-08-09 12:05:51 +02:00
|
|
|
Group: System/Base
|
2024-02-02 13:20:34 +01:00
|
|
|
URL: https://www.iana.org/time-zones
|
2016-11-03 09:22:41 +01:00
|
|
|
Source: https://www.iana.org/time-zones/repository/releases/tzdata%{version}.tar.gz
|
|
|
|
Source1: https://www.iana.org/time-zones/repository/releases/tzcode%{version}.tar.gz
|
|
|
|
Source2: https://www.iana.org/time-zones/repository/releases/tzdata%{version}.tar.gz.asc
|
|
|
|
Source3: https://www.iana.org/time-zones/repository/releases/tzcode%{version}.tar.gz.asc
|
2022-08-15 09:13:46 +02:00
|
|
|
Source4: timezone.keyring
|
2020-04-15 18:09:50 +02:00
|
|
|
Source5: %{name}.changes
|
2007-08-09 12:05:51 +02:00
|
|
|
Patch0: tzdata-china.diff
|
2009-10-27 16:41:55 +01:00
|
|
|
Patch3: iso3166-uk.diff
|
2018-10-18 15:32:15 +02:00
|
|
|
Patch4: timezone-2018f-bsc1112310.patch
|
2020-10-30 12:54:32 +01:00
|
|
|
Patch5: fat.patch
|
2007-08-09 12:05:51 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
These are configuration files that describe available time zones. You
|
|
|
|
can select an appropriate time zone for your system with YaST.
|
2020-04-15 18:09:50 +02:00
|
|
|
|
2007-08-09 12:05:51 +02:00
|
|
|
%prep
|
2024-02-02 13:20:34 +01:00
|
|
|
%autosetup -p1 -c -a1
|
|
|
|
sed -ri 's@%{_prefix}/local%{_sysconfdir}/zoneinfo@%{_datadir}/zoneinfo@g' *.[1358]
|
2020-05-25 15:36:51 +02:00
|
|
|
touch version
|
|
|
|
|
2007-08-09 12:05:51 +02:00
|
|
|
%build
|
2009-04-24 01:12:06 +02:00
|
|
|
unset ${!LC_*}
|
|
|
|
LANG=POSIX
|
|
|
|
LC_ALL=POSIX
|
|
|
|
AREA=%{AREA}
|
|
|
|
ZONE=%{ZONE}
|
|
|
|
export AREA LANG LC_ALL ZONE
|
2024-02-02 13:20:34 +01:00
|
|
|
%make_build TZDIR=%{_datadir}/zoneinfo CC="gcc" CFLAGS="%{optflags} -DHAVE_GETTEXT=1 -DTZDEFAULT='\"%{_sysconfdir}/localtime\"' -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -Dlint" AWK=awk BUGEMAIL="opensuse-support@opensuse.org"
|
|
|
|
%make_build TZDIR=zoneinfo AWK=awk zones
|
2007-08-09 12:05:51 +02:00
|
|
|
# Generate posixrules
|
2020-10-30 12:54:32 +01:00
|
|
|
./zic -b fat -y ./yearistype -d zoneinfo -p %{AREA}/%{ZONE}
|
2007-08-09 12:05:51 +02:00
|
|
|
|
|
|
|
%install
|
2024-02-02 13:20:34 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/zoneinfo
|
|
|
|
cp -a zoneinfo %{buildroot}%{_datadir}/zoneinfo/posix
|
|
|
|
cp -al %{buildroot}%{_datadir}/zoneinfo/posix/. %{buildroot}%{_datadir}/zoneinfo
|
|
|
|
cp -a zoneinfo-leaps %{buildroot}%{_datadir}/zoneinfo/right
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/localtime
|
|
|
|
rm -f %{buildroot}%{_datadir}/zoneinfo/posixrules
|
2014-02-10 22:11:02 +01:00
|
|
|
%if 0%{?suse_version} >= 1230
|
2024-02-02 13:20:34 +01:00
|
|
|
ln -sf %{_datadir}/zoneinfo/%{AREA}/%{ZONE} %{buildroot}%{_sysconfdir}/localtime
|
2014-02-10 22:11:02 +01:00
|
|
|
%else
|
2024-02-02 13:20:34 +01:00
|
|
|
cp -fp %{buildroot}%{_datadir}/zoneinfo/%{AREA}/%{ZONE} %{buildroot}%{_sysconfdir}/localtime
|
2014-02-10 22:11:02 +01:00
|
|
|
%endif
|
2024-02-02 13:20:34 +01:00
|
|
|
ln -sf %{_sysconfdir}/localtime %{buildroot}%{_datadir}/zoneinfo/posixrules
|
|
|
|
install -m 644 iso3166.tab %{buildroot}%{_datadir}/zoneinfo/iso3166.tab
|
|
|
|
install -m 644 zone.tab %{buildroot}%{_datadir}/zoneinfo/zone.tab
|
|
|
|
install -m 644 zone1970.tab %{buildroot}%{_datadir}/zoneinfo/zone1970.tab
|
|
|
|
install -m 644 tzdata.zi %{buildroot}%{_datadir}/zoneinfo/tzdata.zi
|
2009-04-24 01:12:06 +02:00
|
|
|
install -D -m 755 tzselect %{buildroot}%{_bindir}/tzselect
|
|
|
|
install -D -m 755 zdump %{buildroot}%{_sbindir}/zdump
|
|
|
|
install -D -m 755 zic %{buildroot}%{_sbindir}/zic
|
2023-01-24 09:25:52 +01:00
|
|
|
install -m 644 -t %{buildroot}%{_datadir}/zoneinfo/ leapseconds leapseconds.awk leap-seconds.list
|
2007-08-09 12:05:51 +02:00
|
|
|
|
|
|
|
%files
|
2024-02-02 13:20:34 +01:00
|
|
|
%license LICENSE
|
|
|
|
%verify(not link md5 size mtime) %config(missingok,noreplace) %{_sysconfdir}/localtime
|
2017-10-12 13:25:51 +02:00
|
|
|
%{_datadir}/zoneinfo
|
2007-08-09 12:05:51 +02:00
|
|
|
%{_bindir}/tzselect
|
|
|
|
%{_sbindir}/zdump
|
|
|
|
%{_sbindir}/zic
|
2007-12-06 02:30:48 +01:00
|
|
|
|
2007-08-09 12:05:51 +02:00
|
|
|
%changelog
|