diff --git a/pendulum-2.1.2.tar.gz b/pendulum-2.1.2.tar.gz deleted file mode 100644 index 19261bed7ab86ac5dde4a1b9fec6bf14f8f006da..0000000000000000000000000000000000000000 Binary files a/pendulum-2.1.2.tar.gz and /dev/null differ diff --git a/pendulum-3.1.0.tar.gz b/pendulum-3.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..298d7bd2cceae664527b9e561ad8a8400edfb0d8 Binary files /dev/null and b/pendulum-3.1.0.tar.gz differ diff --git a/python-pendulum.spec b/python-pendulum.spec index f7ac95558275eaad7990cdc1c96dffed39fdd286..38ad7456fa2eb208681b5cd6d73a92fa9e622115 100644 --- a/python-pendulum.spec +++ b/python-pendulum.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-pendulum -Version: 2.1.2 +Version: 3.1.0 Release: 1 Summary: Python datetimes made easy License: MIT URL: https://pendulum.eustace.io -Source0: https://files.pythonhosted.org/packages/db/15/6e89ae7cde7907118769ed3d2481566d05b5fd362724025198bb95faf599/pendulum-2.1.2.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/pendulum/pendulum-%{version}.tar.gz +Source1: vendor.tar.gz %description Python datetimes made easy. @@ -19,24 +20,31 @@ BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-poetry-core +BuildRequires: python3-maturin +BuildRequires: cargo # General requires BuildRequires: python3-dateutil -BuildRequires: python3-pytzdata +BuildRequires: python3-tzdata BuildRequires: gcc # General requires Requires: python3-dateutil -Requires: python3-pytzdata +Requires: python3-tzdata +Obsoletes: %{name}-help %description -n python3-pendulum Python datetimes made easy. -%package help -Summary: Python datetimes made easy -Provides: python3-pendulum-doc -%description help -Python datetimes made easy. %prep -%autosetup -n pendulum-%{version} +%autosetup -n pendulum-%{version} -p1 +tar -xf %{SOURCE1} +mkdir .cargo +cat << EOF > .cargo/config.toml +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" +EOF %build %pyproject_build @@ -45,39 +53,31 @@ Python datetimes made easy. %pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . -%files -n python3-pendulum -f filelist.lst +%files -n python3-pendulum %dir %{python3_sitearch}/* %{python3_sitearch}/pendulum/* - -%files help -f doclist.lst -%{_docdir}/* +%{python3_sitearch}/pendulum-%{version}.dist-info/* %changelog +* Wed May 28 2025 chengwei - 3.1.0-1 +- Update package to version 3.1.0 + +* Mon Jan 27 2025 wangkai <13474090681@163.com> - 3.0.0-2 +- Use vendor to fix build error +- Remove empty help subpackage + +* Thu Aug 22 2024 yaoxin - 3.0.0-1 +- Update to 3.0.0: + * Relaxed dependency constraints. #760 + * The testing helpers are now optional and must be opted-in via the test extra. #778 + * Removed remaining mentions of periods instead of intervals. #757 + * Fixed the behavior of the week_of_month property for edge cases in January and December. #774 + * Fixed the handling of the fold attribute when deep-copying a DateTime instance. #776 + * Fixed errors where hours and days were not handled properly when adding durations. #775 + * Fixed errors where hours and days were not handled properly when adding durations. #775 +- Pelease see log : https://pendulum.eustace.io/history/ + * Thu Aug 03 2023 zhangchenglin - 2.1.2-1 - Update package to version 2.1.2 diff --git a/python-pendulum.yaml b/python-pendulum.yaml new file mode 100644 index 0000000000000000000000000000000000000000..21a5457820d08eb319d6bc1136d72d059492f94b --- /dev/null +++ b/python-pendulum.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: sdispater/pendulum +tag_pattern: "^" +seperator: "." diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7d1d66ed5be9cb34eba81d9bbc486eb74f8d569c Binary files /dev/null and b/vendor.tar.gz differ