python-XStatic-JQuery-Migrate/python-XStatic-JQuery-Migrate.spec

94 lines
3.5 KiB
RPMSpec
Raw Normal View History

2021-01-30 11:30:55 +08:00
%global _empty_manifest_terminate_build 0
2021-07-09 07:56:42 +00:00
Name: python-XStatic-JQuery-Migrate
Version: 1.2.1.2
Release: 1
Summary: JQuery-Migrate 1.2.1 (XStatic packaging standard)
License: MIT
URL: https://github.com/jquery/jquery-migrate
Source0: https://files.pythonhosted.org/packages/18/24/cd2802e16668870860e087a4188415a60df2a9dc721c1ef7eb7fc4bcc546/XStatic-JQuery-Migrate-1.2.1.2.tar.gz
BuildArch: noarch
2021-01-30 11:30:55 +08:00
%description
JQuery-Migrate JavaScript library packaged for setuptools (easy_install) / pip.
This package is intended to be used by **any** project that needs these files.
It intentionally does **not** provide any extra code except some metadata
**nor** has any extra requirements. You MAY use some minimal support code from
the XStatic base package, if you like.
You can find more info about the xstatic packaging way in the package `XStatic`.
%package -n python3-XStatic-JQuery-Migrate
2021-07-09 07:56:42 +00:00
Summary: JQuery-Migrate 1.2.1 (XStatic packaging standard)
Provides: python-XStatic-JQuery-Migrate
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
2021-01-30 11:30:55 +08:00
%description -n python3-XStatic-JQuery-Migrate
JQuery-Migrate JavaScript library packaged for setuptools (easy_install) / pip.
This package is intended to be used by **any** project that needs these files.
It intentionally does **not** provide any extra code except some metadata
**nor** has any extra requirements. You MAY use some minimal support code from
the XStatic base package, if you like.
You can find more info about the xstatic packaging way in the package `XStatic`.
%package help
2021-07-09 07:56:42 +00:00
Summary: JQuery-Migrate 1.2.1 (XStatic packaging standard)
Provides: python3-XStatic-JQuery-Migrate-doc
2021-01-30 11:30:55 +08:00
%description help
JQuery-Migrate JavaScript library packaged for setuptools (easy_install) / pip.
This package is intended to be used by **any** project that needs these files.
It intentionally does **not** provide any extra code except some metadata
**nor** has any extra requirements. You MAY use some minimal support code from
the XStatic base package, if you like.
You can find more info about the xstatic packaging way in the package `XStatic`.
%prep
2021-07-09 07:56:42 +00:00
%autosetup -n XStatic-JQuery-Migrate-1.2.1.2 -S git
2021-01-30 11:30:55 +08:00
%build
%py3_build
2021-07-09 07:56:42 +00:00
2021-01-30 11:30:55 +08:00
%install
%py3_install
2021-07-09 07:56:42 +00:00
2021-01-30 11:30:55 +08:00
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
2021-07-09 07:56:42 +00:00
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-30 11:30:55 +08:00
fi
if [ -d usr/lib64 ]; then
2021-07-09 07:56:42 +00:00
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-30 11:30:55 +08:00
fi
if [ -d usr/bin ]; then
2021-07-09 07:56:42 +00:00
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-30 11:30:55 +08:00
fi
if [ -d usr/sbin ]; then
2021-07-09 07:56:42 +00:00
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-30 11:30:55 +08:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
2021-07-09 07:56:42 +00:00
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2021-01-30 11:30:55 +08:00
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2021-07-09 07:56:42 +00:00
%check
%{__python3} setup.py test
2021-01-30 11:30:55 +08:00
%files -n python3-XStatic-JQuery-Migrate -f filelist.lst
%dir %{python3_sitelib}/*
2021-07-09 07:56:42 +00:00
2021-01-30 11:30:55 +08:00
%files help -f doclist.lst
%{_docdir}/*
%changelog
2021-07-09 07:56:42 +00:00
* Fri Jul 09 2021 OpenStack_SIG <openstack@openeuler.org>
- Downgrade to 1.2.1.2
2021-01-30 11:30:55 +08:00
* Sat Jan 30 2021 liusheng <liusheng2048@gmail.com>
- Initial package