1 # Set to 0 if "normal release"
5 %define release_prefix 0pre%{pre_release}.
8 Name: obs-service-git-buildpackage
10 Group: Development/Tools/Building
11 Summary: Get sources from a repository managed with the git-buildpackage suite
13 Release: %{?release_prefix}%{?opensuse_bs:<CI_CNT>.<B_CNT>}%{!?opensuse_bs:1}
14 URL: http://www.tizen.org
15 Source: %{name}-%{version}.tar.bz2
16 Requires: git-buildpackage
17 Requires: git-buildpackage-rpm
18 Requires: gbp-repocache = %{version}-%{release}
20 BuildRequires: python-setuptools
22 BuildRequires: python-coverage
23 BuildRequires: python-nose
24 BuildRequires: git-buildpackage-rpm
29 This is a source service for openSUSE Build Service.
31 It supports cloning/updating repo from git and exporting sources and packaging
32 files that are managed with git-buildpackage tools.
36 Summary: Utility fuctions for the GBP OBS source service
37 Group: Development/Tools/Building
38 Requires: python >= 2.6
39 Requires: gbp-repocache = %{version}
42 This package contains generic utility functions for the git-buildpackage OBS
46 %package -n gbp-repocache
47 Summary: Git repository cache API
48 Group: Development/Tools/Building
49 Requires: git-buildpackage-common
51 %description -n gbp-repocache
52 This package provides an implementation and python API of a Git repository
61 %{__python} setup.py build
66 GIT_AUTHOR_EMAIL=rpmbuild@example.com GIT_AUTHOR_NAME=rpmbuild \
67 GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL \
68 %{__python} setup.py nosetests
73 %{__python} setup.py install --skip-build --root=%{buildroot} --prefix=%{_prefix}
74 rm -rf %{buildroot}%{python_sitelib}/*info
78 %defattr(-,root,root,-)
79 %doc COPYING DEPLOYMENT
81 %dir /usr/lib/obs/service
82 /usr/lib/obs/service/*
83 %{python_sitelib}/obs_service_gbp
84 %dir %{_sysconfdir}/obs
85 %dir %{_sysconfdir}/obs/services
86 %config %{_sysconfdir}/obs/services/*
89 %defattr(-,root,root,-)
91 %{python_sitelib}/obs_service_gbp_utils
93 %files -n gbp-repocache
94 %defattr(-,root,root,-)
96 %{python_sitelib}/gbp_repocache