@HEADER-COMMENT@ @HEADER@ Group: System/YaST License: GPL v2 or later # obviously BuildRequires: gcc-c++ # 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 # logging # renamed: http://lists.opensuse.org/opensuse-packaging/2007-11/msg00076.html BuildRequires: libblocxx-devel # libycp includes crypto built-ins BuildRequires: libxcrypt-devel 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: libxcrypt-devel hwinfo-devel Requires: glibc-devel libstdc++-devel pcre-devel libblocxx-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. @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 # .packlist %{perl_vendorarch}/auto/ycp /var/adm/perl-modules/%name %files devel %defattr(-,root,root) @ybindir@/ybcdump %{_libdir}/lib*.so %{_libdir}/lib*.la @plugindir@/lib*.so @plugindir@/lib*.la @includedir@ @pkgconfigdir@/@RPMNAME@.pc %doc @docdir@ %doc %{_datadir}/doc/yastdoc @ydatadir@/devtools/bin/generateYCPWrappers