13 Star 0 Fork 6

ocs-commit/tzdata

forked from OpenCloudOS Stream/tzdata 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tzdata.spec 2.74 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-12-24 19:15 . - Apply patches from rpm-tracker
Summary: Timezone data
Name: tzdata
Version: 2023c
Release: 5%{?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
Patch0001: https://github.com/eggert/tz/commit/5e95797d9a5bd0d21e601e3bd3928943886b71fe.patch
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
* Tue Dec 24 2024 Tracker Robot <trackbot@opencloudos.tech> - 2023c-5
- Apply patches from rpm-tracker
- [Performance] 5e95797d9a5bd0d21e601e3bd3928943886b71fe.patch: * tz-link.html: Mention DoT geodata (thanks to Roozbeh Pournader).
* 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.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-commit/tzdata.git
git@gitee.com:ocs-commit/tzdata.git
ocs-commit
tzdata
tzdata
master

搜索帮助