File klish.spec of Package klish

Name: klish
Version: 1.4.1
Release: <CI_CNT>.<B_CNT>%{?dist}
License: New BSD License
Source: klish-%{version}.tar.bz2
Group: System Environment/Libraries
Summary: Kommand Line Interface Shell

Obsoletes: nio-klish

%description
The klish is a framework for implementing a CISCO-like CLI on a UNIX
systems. It is configurable by XML files.

%prep
%autosetup

%build

%configure --disable-gpl
%make_build

%install
%make_install

mv %{buildroot}/%{_prefix}/bin/clish %{buildroot}/%{_prefix}/bin/klish

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/*
%exclude %{_libdir}/*.la

%package devel
Group: Development/Libraries
Requires: klish
Summary: Kommand Line Interface Shell development files

%description devel
The klish is a framework for implementing a CISCO-like CLI on a UNIX
systems. It is configurable by XML files.

This package provides the include files needed for developing klish
applications.

%files devel
%defattr(-,root,root)
%{_includedir}

%changelog
* Fri Feb 23 2018 Perikles
- Simplify and port to OBS 

* Sun Mar 20 2011 Perikles
- added ldconfig setup
- clish -> klish 

* Sat Mar 19 2011 Perikles
- Fix installation locations. This one is BSD-licensed so we don't install sources inside the RPM 

* Sun Feb 21 2011 Perikles
- Create package.
openSUSE Build Service is sponsored by