update package
This commit is contained in:
parent
7a2fd2fc15
commit
0685824301
34
satyr.spec
34
satyr.spec
@ -1,4 +1,3 @@
|
|||||||
%define with_python2 1
|
|
||||||
%define with_python3 1
|
%define with_python3 1
|
||||||
|
|
||||||
Name: satyr
|
Name: satyr
|
||||||
@ -7,15 +6,14 @@ Release: 0
|
|||||||
Summary: Tools to create anonymous, machine-friendly problem reports
|
Summary: Tools to create anonymous, machine-friendly problem reports
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/abrt/satyr
|
URL: https://github.com/abrt/satyr
|
||||||
Source0: https://github.com/abrt/satyr/archive/%{version}.tar.gz
|
Source0: https://github.com/abrt/%{name}/archive/%{name}-%{version}.tar.gz
|
||||||
Patch9001: use-python2-explicitly-in-configure.patch
|
|
||||||
|
|
||||||
BuildRequires: elfutils-devel elfutils-libelf-devel binutils-devel rpm-devel libtool
|
Requires: json-c nettle
|
||||||
|
BuildRequires: elfutils-devel elfutils-libelf-devel binutils-devel rpm-devel libtool gperf
|
||||||
BuildRequires: doxygen pkgconfig automake gcc-c++ gdb git
|
BuildRequires: doxygen pkgconfig automake gcc-c++ gdb git
|
||||||
|
BuildRequires: pkgconfig(json-c)
|
||||||
|
BuildRequires: nettle nettle-devel
|
||||||
|
|
||||||
%if %{with_python2}
|
|
||||||
BuildRequires: python2-devel python2-sphinx
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with_python3}
|
%if %{with_python3}
|
||||||
BuildRequires: python3-devel python3-sphinx
|
BuildRequires: python3-devel python3-sphinx
|
||||||
@ -43,18 +41,6 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
Header files for satyr.
|
Header files for satyr.
|
||||||
|
|
||||||
%if %{with_python2}
|
|
||||||
%package -n python2-satyr
|
|
||||||
Summary: python2 for satyr
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
|
||||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-python < 0.24
|
|
||||||
%{?python_provide:%python_provide python2-satyr}
|
|
||||||
|
|
||||||
%description -n python2-satyr
|
|
||||||
python2 for satyr
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with_python3}
|
%if %{with_python3}
|
||||||
%package -n python3-satyr
|
%package -n python3-satyr
|
||||||
@ -73,10 +59,9 @@ python3 for satyr
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%define __scm_apply_git(qp:m:) %{__git} am
|
%define __scm_apply_git(qp:m:) %{__git} am
|
||||||
%autosetup -n satyr-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
bash autogen.sh
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
|
||||||
%configure --enable-doxygen-docs
|
%configure --enable-doxygen-docs
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
@ -105,10 +90,7 @@ make check|| {
|
|||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
|
|
||||||
%if %{with_python2}
|
|
||||||
%files -n python2-satyr
|
|
||||||
%{python2_sitearch}/*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with_python3}
|
%if %{with_python3}
|
||||||
%files -n python3-satyr
|
%files -n python3-satyr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user