forked from pool/python-bugzilla
- Apply python-bugzilla-0.6.2-section.patch
- Cleanup spec file - Package README OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=27
This commit is contained in:
committed by
Git OBS Bridge
parent
f361911ee8
commit
916fcc938d
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 22 12:13:06 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Apply python-bugzilla-0.6.2-section.patch
|
||||
- Cleanup spec file
|
||||
- Package README
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 16 13:01:19 UTC 2013 - werner@suse.de
|
||||
|
||||
|
||||
@@ -28,13 +28,13 @@ Source: %{name}-%{version}-openSUSE-1.tar.bz2
|
||||
# https://gitorious.org/opensuse/python-bugzilla
|
||||
Patch0: %{name}-0.6.2-novell-default.patch
|
||||
Patch1: %{name}-0.6.2-backtraces.patch
|
||||
|
||||
Patch2: %{name}-0.6.2-section.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
%if 0%{?suse_version} && 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
%{py_requires}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
@@ -52,22 +52,22 @@ but gosh - why not just write something in Python instead?
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%{__python} setup.py build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
|
||||
%install
|
||||
%{__python} setup.py install \
|
||||
--root=%{buildroot} \
|
||||
--prefix=%{_prefix} \
|
||||
--record-rpm=INSTALLED_FILES
|
||||
sed -i 's#%{_mandir}/man1/bugzilla.1#%{_mandir}/man1/bugzilla.1.gz#' INSTALLED_FILES
|
||||
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
||||
#\ --record-rpm=INSTALLED_FILES
|
||||
#sed -i 's#%{_mandir}/man1/bugzilla.1#%{_mandir}/man1/bugzilla.1.gz#' INSTALLED_FILES
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root,0755)
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%{_bindir}/bugzilla
|
||||
%{python_sitelib}/bugzilla
|
||||
%{python_sitelib}/python_bugzilla-%{version}-py%{py_ver}.egg-info
|
||||
%{_mandir}/man1/bugzilla.1.gz
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user