File ltrctl.spec of Package ltrctl

Name: ltrctl
Version: 1.0.1
Release: 1
Group:   Applications/Engineering

Vendor: L Card
URL: http://www.lcard.ru
License: GPL-2.0+

Source: ltrctl_1.0.1.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-root

BuildRequires: cmake >= 2.6, libltrapi1-devel >= 1.31.1

Summary: Command line frontend for ltrd daemon.
 

%description 
 This is command line frontend for ltrd daemon which control L Card
 LTR-Crates. ltrctl allows you send command to ltrd for control 
 crate connection, log level, get crate list, etc.

%global debug_package %{nil} 

%prep
#извлечение исходников из архива
%setup

%build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT


%files 
%defattr(0755,root,root)
/usr/bin/ltrctl