forked from yast/yast-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyast2-core.spec.in
141 lines (117 loc) · 3 KB
/
yast2-core.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@HEADER-COMMENT@
@HEADER@
Group: System/YaST
License: GPL-2.0+
# obviously
BuildRequires: gcc-c++ boost-devel libtool
# we have a parser
BuildRequires: flex bison
# needed for all yast packages
BuildRequires: yast2-devtools
# testsuite
BuildRequires: dejagnu
# autodocs
BuildRequires: doxygen
# docbook docs
BuildRequires: docbook-xsl-stylesheets libxslt
# catalog: convert URIs to local filenames
BuildRequires: sgml-skel
Summary: YaST2 - Core Libraries
Requires: perl = %{perl_version}
Provides: liby2util = 2.16.1
Obsoletes: liby2util < 2.16.1
%description
This package contains the scanner, parser, and interpreter runtime
library for the YCP scripting language used in YaST2.
@HEADER-DEVEL@
Summary: YaST2 - Core Libraries
Provides: liby2util-devel = 2.16.1
Obsoletes: liby2util-devel < 2.16.1
Requires: hwinfo-devel
Requires: glibc-devel libstdc++-devel sysfsutils
# required for libscr
# for FlexLexer.h; I think that this dependency could be made
# private but it seems not worth the effort
Requires: flex
%description devel
This package contains include and documentation files for developing
applications using the YaST2 YCP interpreter.
%package debugger
Requires: yast2-core = %version
Group: Development/Libraries
Summary: YaST2 - Core Libraries
%description debugger
YCP debugger client.
@PREP@
%build
%ifarch %arm
# disable autodoc building on ARM architecture
sed -i Makefile.am -e 's/autodocs//'
sed -i Makefile.in -e 's/autodocs//'
sed -i SUBDIRS -e 's/autodocs//'
%endif
export SUSE_ASNEEDED=0 # disable --as-needed until this package is fixed
@BUILD@
@INSTALL@
mkdir -p "$RPM_BUILD_ROOT"@logdir@
%perl_process_packlist
@CLEAN@
%post
/sbin/ldconfig
# bnc#485992, since oS 11.2
C=blacklist
if test -f /etc/modprobe.d/$C; then
mv -f /etc/modprobe.d/$C /etc/modprobe.d/50-$C.conf
fi
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_libdir}/YaST2
%if "%_lib" == "lib64"
%dir /usr/lib/YaST2
%endif
%dir /usr/share/YaST2
%dir %attr(0700,root,root) @logdir@
%dir @ybindir@
%dir @plugindir@
%dir @scrconfdir@
%dir @execcompdir@/servers
%dir @execcompdir@/servers_non_y2
/usr/bin/ycpc
%{_libdir}/lib*.so.*
@ybindir@/y2base
@ybindir@/startshell
@ybindir@/tty_wrapper
@ybindir@/md_autorun
@ybindir@/elf-arch
@plugindir@/lib*.so.*
@scrconfdir@/*.scr
@execcompdir@/servers/scr
@execcompdir@/servers_non_y2/ag_*
# perl part (stdio agents)
# *: regular build compresses them, debug does not
%_mandir/man3/ycp.3pm*
%_mandir/man3/YaST::SCRAgent.3pm*
%{perl_vendorlib}/ycp.pm
%dir %{perl_vendorlib}/YaST
%{perl_vendorlib}/YaST/SCRAgent.pm
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
# .packlist
%{perl_vendorarch}/auto/ycp
/var/adm/perl-modules/%name
%endif
%files devel
%defattr(-,root,root)
@ybindir@/ybcdump
%{_libdir}/lib*.so
%{_libdir}/lib*.la
@plugindir@/lib*.so
@plugindir@/lib*.la
@includedir@
@pkgconfigdir@/@[email protected]
%doc @docdir@
%doc %{_datadir}/doc/yastdoc
@ydatadir@/devtools/bin/generateYCPWrappers
%files debugger
%defattr(-,root,root)
%attr(0755,-,-) /usr/lib/YaST2/bin/ycp-debugger