3 # note: keep version in sync with setup.py
5 Summary: Intra2net library of common helper utilities
6 Group: Development/Languages
8 URL: http://www.intra2net.com
9 Source0: %{name}-%{version}.tar.gz
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13 BuildRequires: python3-devel
14 BuildRequires: python3-setuptools
17 Python interface to some internal workings of Intra2net systems plus internal helpers
19 %package -n python3-%{name}
20 Summary: Intra2net library of common helper utilities
21 Group: Development/Languages
22 %description -n python3-%{name}
23 Python interface to some internal workings of Intra2net systems plus internal helpers
28 if [ -n "%{patches}" ]; then
29 # Use git to apply patches, so that permission changes work
32 if [ -z "$GIT_COMMITTER_NAME" ]; then
33 git config user.email "opensource@intra2net.com"
34 git config user.name "Intra2net Automatic Patch Applicator"
37 git commit --no-gpg-sign -a -q -m 'Initial commit for %{version}'
45 ln -s src pyi2ncommon # make src importable from current dir
46 PYTHONPATH=.:$PYTHONPATH python3 -m unittest discover test
51 %files -n python3-%{name}
52 # keep in sync with list in make_dist.py
53 %defattr(-,root,root,-)
55 %license Linking-Exception.txt
59 %doc doc/about_docu.rst
60 %{python3_sitelib}/%{name}
61 %{python3_sitelib}/%{name}-*.egg-info