forked from yast/yast-devtools
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathyast2-devtools.spec.in
86 lines (75 loc) · 2.32 KB
/
yast2-devtools.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@HEADER-COMMENT@
@HEADER@
Group: System/YaST
License: GPL-2.0+
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gcc-c++
BuildRequires: libxslt
BuildRequires: perl-XML-Writer
BuildRequires: pkgconfig
BuildRequires: sgml-skel
BuildRequires: libtool
BuildRequires: automake
Requires: perl
Requires: perl-XML-Writer
Requires: libxslt
# we install our .pc under $prefix/share
Requires: pkgconfig >= 0.16
Requires: automake autoconf
Requires: gettext-tools
Recommends: cmake
# /usr/lib/YaST2/bin/ydoxygen needs it
Recommends: doxygen
# for svn builds of binary packages
Recommends: libtool
Provides: ycpdoc ydoc
Obsoletes: ycpdoc ydoc
Provides: yast2-config-newmodule yast2-trans-newmodule
Obsoletes: yast2-config-newmodule yast2-trans-newmodule
Summary: YaST2 - Development Tools
BuildArch: noarch
%description
Scripts and templates for developing YaST2 modules and components.
Required for rebuilding the existing YaST2 modules and components (both
YCP and C++).
@PREP@
%build
autoreconf --force --install
./configure --prefix=%{_prefix} --libdir=%{_libdir}
make
@INSTALL@
%if 0%{?qemu_user_space_build}
# disable testsuite on QEMU builds, will fail
cat > "$RPM_BUILD_ROOT/@ydatadir@/devtools/NO_MAKE_CHECK" <<EOF
Disabling testsuite on QEMU builds, as the userspace emulation
is not complete enough for yast2-core
EOF
%endif
# Change false to true in the following line when yast2 core is broken
false && cat > "$RPM_BUILD_ROOT/@ydatadir@/devtools/NO_MAKE_CHECK" <<EOF
When yast2 core is broken and the interpreter does not work,
submitting yast2-devtools with the flag file existing will
prevent ycp developers being flooded by testsuite failures.
EOF
%files
%defattr(-,root,root)
%{_prefix}/bin/y2tool
%{_prefix}/bin/yastdoc
%dir %{_prefix}/share/emacs
%dir %{_prefix}/share/emacs/site-lisp
%{_prefix}/share/emacs/site-lisp/*ycp-mode.el
%dir %{_prefix}/share/vim
%dir %{_prefix}/share/vim/site
%dir %{_prefix}/share/vim/site/syntax
%{_prefix}/share/vim/site/syntax/ycp.vim
%dir %{_prefix}/share/vim/site/ftdetect
%{_prefix}/share/vim/site/ftdetect/ycp_filetype.vim
%dir %{_prefix}/lib/YaST2
%{_prefix}/share/cmake
@ybindir@
%dir %{_prefix}/share/YaST2
@ydatadir@
%{_prefix}/share/aclocal/*.m4
@pkgconfigdatadir@/@RPMNAME@.pc
%doc @docdir@
%changelog