Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Rotkraut:Data
python-icat
python-icat.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-icat.spec of Package python-icat
%if 0%{?sle_version} >= 150500 %global pyversfx 311 %global python %__python311 %global python_sitelib %python311_sitelib %else %global pyversfx 3 %global python %__python3 %global python_sitelib %python3_sitelib %endif Name: python-icat Version: 1.5.0 Release: 0 Url: https://github.com/icatproject/python-icat Summary: Python interface to ICAT and IDS License: Apache-2.0 Group: Development/Libraries/Python Source: https://github.com/icatproject/python-icat/releases/download/%{version}/python-icat-%{version}.tar.gz BuildRequires: python%{pyversfx}-base >= 3.4 BuildRequires: python%{pyversfx}-setuptools BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch %description This package provides a collection of modules for writing Python programs that access an `ICAT`_ service using the SOAP interface. It is based on Suds and extends it with ICAT specific features. .. _ICAT: https://icatproject.org/ %package examples Summary: Python interface to ICAT and IDS Group: Documentation/Other Requires: %{name} = %{version} %description examples This package provides a collection of modules for writing Python programs that access an `ICAT`_ service using the SOAP interface. It is based on Suds and extends it with ICAT specific features. .. _ICAT: https://icatproject.org/ This package contains example scripts. %package man Summary: Python interface to ICAT and IDS Group: Documentation/Other Requires: %{name} = %{version} Requires: man %description man This package provides a collection of modules for writing Python programs that access an `ICAT`_ service using the SOAP interface. It is based on Suds and extends it with ICAT specific features. .. _ICAT: https://icatproject.org/ This package contains the manual pages for the command line scripts. %package -n python%{pyversfx}-icat Summary: Python interface to ICAT and IDS Requires: %{name} = %{version} Requires: python%{pyversfx}-lxml Requires: python%{pyversfx}-packaging Requires: python%{pyversfx}-suds Recommends: %{name}-man Recommends: python%{pyversfx}-PyYAML %description -n python%{pyversfx}-icat This package provides a collection of modules for writing Python programs that access an `ICAT`_ service using the SOAP interface. It is based on Suds and extends it with ICAT specific features. .. _ICAT: https://icatproject.org/ %prep %setup -q -n %{name}-%{version} %build %{python} setup.py build %install %{python} setup.py install --optimize=1 --prefix=%{_prefix} --root=%{buildroot} for f in `ls %{buildroot}%{_bindir}` do mv %{buildroot}%{_bindir}/$f %{buildroot}%{_bindir}/${f%%.py} done %__install -d -m 755 %{buildroot}%{_datadir}/icat %__cp -p etc/ingest-*.xsd etc/ingest.xslt %{buildroot}%{_datadir}/icat %__install -d -m 755 %{buildroot}%{_mandir}/man1 %__cp -p doc/man/*.1 %{buildroot}%{_mandir}/man1 %__install -d -m 755 %{buildroot}%{_docdir}/%{name} %__cp -pr README.rst CHANGES.rst doc/* %{buildroot}%{_docdir}/%{name} %__chmod -f a-x %{buildroot}%{_docdir}/%{name}/examples/*.py %fdupes %{buildroot}%{python_sitelib} %files %defattr(-,root,root) %license LICENSE.txt %{_datadir}/icat %doc %{_docdir}/%{name} %exclude %{_docdir}/%{name}/examples %exclude %{_docdir}/%{name}/man %exclude %{_docdir}/%{name}/tutorial %files examples %defattr(-,root,root) %dir %{_docdir}/%{name} %doc %{_docdir}/%{name}/examples %doc %{_docdir}/%{name}/tutorial %files man %defattr(-,root,root) %{_mandir}/man1/* %files -n python%{pyversfx}-icat %defattr(-,root,root) %{python_sitelib}/* %{_bindir}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor