1 Star 0 Fork 5

ocs-commit-check/tzdata

forked from OpenCloudOS Stream/tzdata 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tzdata.spec 2.41 KB
一键复制 编辑 原始数据 按行查看 历史
Summary: Timezone data
Name: tzdata
Version: 2023c
Release: 4%{?dist}
License: Public Domain
URL: https://www.iana.org/time-zones
Source0: ftp://ftp.iana.org/tz/releases/tzdata%{version}.tar.gz
Source1: ftp://ftp.iana.org/tz/releases/tzcode%{version}.tar.gz
Patch3000: tzdata-china.diff
Patch3001: 0002-Fix-have-snprintf-error.patch
Patch3002: 0003-continue-to-ship-posixrules.patch
BuildRequires: make, glibc
BuildRequires: gawk, perl-interpreter, glibc-common >= 2.5.90-7
BuildArchitectures: noarch
%description
The Time Zone Database (often called tz or zoneinfo) contains code and data
that represent the history of local time for many representative locations
around the globe.
%prep
%autosetup -c -a 1
echo "%{name}%{version}" >> VERSION
%build
make tzdata.zi
FILES="africa antarctica asia australasia europe northamerica southamerica
etcetera backward factory"
mkdir -p zoneinfo/{,posix,right}
zic -y ./yearistype -d zoneinfo -L /dev/null -p America/New_York $FILES
zic -y ./yearistype -d zoneinfo/posix -L /dev/null $FILES
zic -y ./yearistype -d zoneinfo/right -L leapseconds $FILES
%install
rm -fr %{buildroot}
install -d %{buildroot}%{_datadir}
cp -prd zoneinfo %{buildroot}%{_datadir}
install -p -m 644 zone.tab zone1970.tab iso3166.tab leap-seconds.list leapseconds tzdata.zi %{buildroot}%{_datadir}/zoneinfo
%files
%license LICENSE
%doc README
%doc theory.html
%doc tz-link.html
%doc tz-art.html
%{_datadir}/zoneinfo
%changelog
* Thu Sep 26 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2023c-4
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2023c-3
- Rebuilt for loongarch release
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2023c-2
- Rebuilt for OpenCloudOS Stream 23.09
* Thu Jul 13 2023 Wang Guodong <gordonwwang@tencent.com> - 2023c-1
- Upgrade to 2023c
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2022g-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2022g-2
- Rebuilt for OpenCloudOS Stream 23
* Wed May 18 2022 Zhao Zhen <jeremiazhao@tencent.com> - 2022g-1
- updated version to 2022g
- added beijing time
* Wed May 18 2022 Zhao Zhen <jeremiazhao@tencent.com> - 2022a-1
- Initial, remove tzdata-java, timezone files of java will moved into java package.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-commit-check/tzdata.git
git@gitee.com:ocs-commit-check/tzdata.git
ocs-commit-check
tzdata
tzdata
master

搜索帮助