LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kconfig-frontends.spec of Package kconfig-frontends (Project devel:tools)

#
# spec file for package kconfig-frontends
#
# Copyright (c) 2013 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/
#


Name:           kconfig-frontends
%define lname	libkconfig-parser-3_8_0
Summary:        The kconfig build config option selector, its frontends and tools
License:        GPL-2.0
Group:          Development/Tools/Building
Version:        3.8.0.0
Release:        0
Url:            http://ymorin.is-a-geek.org/projects/kconfig-frontends

#Hg-Clone:	http://ymorin.is-a-geek.org/hg/kconfig-frontends
Source:         http://ymorin.is-a-geek.org/download/kconfig-frontends/kconfig-frontends-3.8.0.0.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  gcc-c++
BuildRequires:  gperf
BuildRequires:  libtool
BuildRequires:  ncurses-devel
BuildRequires:  pkgconfig
BuildRequires:  xz
BuildRequires:  pkgconfig(Qt3Support)
BuildRequires:  pkgconfig(QtCore)
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libglade-2.0)

%description
Kconfig is the configuration language used by the Linux kernel. This
package is a copy of the frontends and the parser found in the Linux
kernel source tree, adapted to being built outside of the kernel build
infrastructure.

%package -n %lname
Summary:        The kconfig description language parser
Group:          System/Libraries

%description -n %lname

%package devel
Summary:        Development files for the kconfig language parser
Group:          Development/Libraries/C and C++
Requires:       %lname = %version

%description devel

%package curses
Summary:        Curses frontends for kconfig, a build config option selector
Group:          Development/Tools/Building

%description curses

%package gtk
Summary:        GTK frontends for kconfig, a build config option selector
Group:          Development/Tools/Building

%description gtk

%package qt
Summary:        Qt frontends for kconfig, a build config option selector
Group:          Development/Tools/Building

%description qt

%prep
%setup -q

%build
#
# The package defaults to the prefix "kconfig-", but %%configure
# overrides this, so we have to override it again.
#
%configure --program-prefix="kconfig-"
make %{?_smp_mflags} V=1

%install
b="%buildroot"
make install DESTDIR="$b" docdir="%_docdir/%name"
rm -f "$b/%_libdir"/*.la
mkdir -p "$b/%_docdir/%name"
cp -a COPYING "$b/%_docdir/%name/"

%check
make check

%files
%defattr(-,root,root)
%_bindir/kconfig-conf
%_bindir/kconfig-diff
%_bindir/kconfig-gettext
%_bindir/kconfig-merge
%_bindir/kconfig-tweak
%dir %_docdir/%name
%_docdir/%name/COPYING
%_docdir/%name/kconfig.txt
%_docdir/%name/kconfig-language.txt

%files -n %lname
%defattr(-,root,root)
%_libdir/libkconfig-parser-3.8.0.so

%files devel
%defattr(-,root,root)
%_includedir/kconfig
%_libdir/libkconfig-parser.so

%files curses
%_bindir/kconfig-mconf
%_bindir/kconfig-nconf

%files gtk
%defattr(-,root,root)
%_bindir/kconfig-gconf
%dir %_datadir/%name
%_datadir/%name/gconf.glade

%files qt
%defattr(-,root,root)
%_bindir/kconfig-qconf

%changelog