File yast2-devtools.spec of Package yast2-devtools
#
# spec file for package yast2-devtools (Version 2.18.11)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: yast2-devtools
Version: 2.18.11
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-devtools-2.18.11.tar.bz2
Prefix: /usr
Group: System/YaST
License: GPL v2 or later
BuildRequires: docbook-xsl-stylesheets gcc-c++ libxslt perl-XML-Writer pkgconfig sgml-skel
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
%setup -n yast2-devtools-2.18.11
%build
autoreconf --force --install
%{?suse_update_config:%{suse_update_config -f}}
./configure --prefix=%{prefix} --libdir=%{_libdir}
make
%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
d=${f##*/}
%suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done
%ifarch %arm
# disable testsuite on ARM architecture
cat > "$RPM_BUILD_ROOT//usr/share/YaST2/data/devtools/NO_MAKE_CHECK" <<EOF
Disabling testsuite on ARM architecture, it should be enabled again
once yast2-core is fixed.
EOF
%endif
# Change false to true in the following line when yast2 core is broken
false && cat > "$RPM_BUILD_ROOT//usr/share/YaST2/data/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
%clean
rm -rf "$RPM_BUILD_ROOT"
%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
%{prefix}/lib/YaST2/bin
%dir %{prefix}/share/YaST2
/usr/share/YaST2/data
%{prefix}/share/aclocal/*.m4
%{prefix}/share/pkgconfig/yast2-devtools.pc
%doc %{prefix}/share/doc/packages/yast2-devtools
%changelog