File analitza.spec of Package analitza

#
# spec file for package analitza
#
# Copyright (c) 2012 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:           analitza
BuildRequires:  libkde4-devel
BuildRequires:  readline-devel
Url:            https://projects.kde.org/projects/kde/kdeedu/analitza
Version:        4.8.4
Release:        0
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A library to add mathematical features to programs
License:        LGPL-2.1+
Group:          System/GUI/KDE
Requires:       libqt4 > 4.4
Source:         %{name}-%{version}.tar.xz
Requires:       libanalitza0 = %{version}

%description
The analitza library will let you add mathematical features to your program.

%package -n libanalitza0
Summary:        A library to add mathematical features to programs
Group:          System/GUI/KDE

%description -n libanalitza0
The analitza library will let you add mathematical features to your program.


%package devel
Summary:        A library to add mathematical features to programs - development files
Group:          Development/Libraries/C and C++
Requires:       libanalitza0 >= %{version}

%description devel
Development files for Analitza, Analitza library will let you add mathematical features to your programs.


%prep
%setup -q -n %{name}-%{version}

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%makeinstall

%post -n libanalitza0 -p /sbin/ldconfig

%postun -n libanalitza0 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n libanalitza0
%defattr(-,root,root)
%doc COPYING
%_kde4_libdir/libanalitza*.so.*

%files devel
%defattr(-,root,root)
%_kde4_libdir/libanalitza*.so
%{_includedir}/analitza/
%{_includedir}/analitzagui/
%_kde4_libdir/cmake/analitza/

%files 
%defattr(-,root,root)
%{_kde4_bindir}/calgebra

%changelog
openSUSE Build Service is sponsored by