File ltrapi.spec of Package ltrapi
Name: ltrapi
Version: 1.32.37
Release: 1
Group: Development/Libraries/C and C++
Vendor: L Card
URL: http://www.lcard.ru
License: MIT
Source: ltrapi_1.32.37.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: cmake >= 2.6
Summary: Source package for libraries for L Card LTR-Crates
%description
This package contains sources for libraries for control
L-Card LTR-Crates and LTR-modules.
#запрет отладочной информации, т.к. на некоторых платформах (Fedora >= 27) есть проблемы сборки пакетов с ней
%global debug_package %{nil}
%prep
#извлечение исходников из архива
%setup
%build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLTRAPI_INSTALL_INCLUDE=%{_includedir}/ltr/include -DLTRAPI_INSTALL_PASCAL=%{_includedir}/ltr/pascal \
-DLTRAPI_INSTALL_LIB=%{_libdir} -DLTRAPI_INSTALL_DATA=%{_datadir}/ltrapi
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
#---------- package with developers files ---------------
%package -n libltrapi1-devel
Summary: Libraries for control 'L Card' LTR-Crates (development files)
Group: Development/Libraries/C and C++
Requires: libltrapi1 = 1.32.37
Requires: libltr010api1 = 1.32.37
Requires: libltr021api1 = 1.32.37
Requires: libltr030api1 = 1.32.37
Requires: libltr032api1 = 1.32.37
Requires: libltrlogapi1 = 1.32.37
Requires: libltravrapi1 = 1.32.37
Requires: libltrbootapi1 = 1.32.37
Requires: libltr11api1 = 1.32.37
Requires: libltr12api1 = 1.32.37
Requires: libltr114api1 = 1.32.37
Requires: libltr22api1 = 1.32.37
Requires: libltr24api1 = 1.32.37
Requires: libltr25api1 = 1.32.37
Requires: libltr27api1 = 1.32.37
Requires: libltr34api1 = 1.32.37
Requires: libltr35api1 = 1.32.37
Requires: libltr41api1 = 1.32.37
Requires: libltr42api1 = 1.32.37
Requires: libltr43api1 = 1.32.37
Requires: libltr51api1 = 1.32.37
Requires: libltr210api1 = 1.32.37
Requires: libltr212api1 = 1.32.37
Requires: libltr216api1 = 1.32.37
Requires: libltedsapi1 = 1.32.37
Requires: liblpw25api1 = 1.32.37
%description -n libltrapi1-devel
This package contains libraries that allow you connect to ltrd daemon and control L-Card
LTR-Crates and LTR-Modules.
This package contains the development headers for the libraries found in
packages libltrapi1, libltr11api1, etc.
You need these files if you writing your own software. Non-developers likely
have little use for this package.
%files -n libltrapi1-devel
%defattr(-,root,root)
%dir %{_includedir}/ltr
%{_includedir}/ltr/include
%{_includedir}/ltr/pascal
%{_libdir}/lib*.so
#----------------------- ltrapi ---------------------------------
%package -n libltrapi1
Summary: Library for control 'L Card' LTR-Crates and LTR-modules
Group: System/Libraries
%post -n libltrapi1
ldconfig
%postun -n libltrapi1
ldconfig
%files -n libltrapi1
%defattr(0644,root,root)
%{_libdir}/libltrapi.so.*
%description -n libltrapi1
This package contains the library which allows you to control 'L Card' LTR-Crates and LTR-modules.
API to control certain LTR-module you can find in packages with names like libltrXXXapi1,
where XXX - module number (ltr114api1, ltr34api1, etc).
This package contains the shared object files.
#----------------------- ltr010api ---------------------------------
%package -n libltr010api1
Summary: Library for control LTR-U-8/16 Crates (runtime libraries)
Group: System/Libraries
%post -n libltr010api1
ldconfig
%postun -n libltr010api1
ldconfig
%files -n libltr010api1
%defattr(0644,root,root)
%{_libdir}/libltr010api.so.*
%description -n libltr010api1
This package contains the library which allows you to control L-Card LTR-Crates
with LTR010 crate-controller (LTR-U-8/16).
This is low level API used by others libraries.
This package contains the shared object files.
#----------------------- ltr021api ---------------------------------
%package -n libltr021api1
Summary: Library for control LTR-U-1-4 Crates (runtime libraries)
Group: System/Libraries
%post -n libltr021api1
ldconfig
%postun -n libltr021api1
ldconfig
%files -n libltr021api1
%defattr(0644,root,root)
%{_libdir}/libltr021api.so.*
%description -n libltr021api1
This package contains the library which allows you to configure L-Card LTR-Crates
with LTR021 crate-controller (LTR-U-1-4).
This package contains the shared object files.
#----------------------- ltr030api ---------------------------------
%package -n libltr030api1
Summary: Library for control LTR-EU Crates (runtime libraries)
Group: System/Libraries
%post -n libltr030api1
ldconfig
%postun -n libltr030api1
ldconfig
%files -n libltr030api1
%defattr(0644,root,root)
%{_libdir}/libltr030api.so.*
%description -n libltr030api1
This package contains the library which allows you to configure and
update firmware for L-Card LTR-Crates with LTR030/LTR031
crate-controller (LTR-EU-8/16, LTR-EU-2).
This is low level API used by others libraries.
This package contains the shared object files.
#----------------------- ltr032api ---------------------------------
%package -n libltr032api1
Summary: Library for control LTR-E Crates (runtime libraries)
Group: System/Libraries
%post -n libltr032api1
ldconfig
%postun -n libltr032api1
ldconfig
%files -n libltr032api1
%defattr(0644,root,root)
%{_libdir}/libltr032api.so.*
%description -n libltr032api1
This package contains the library which allows you to
control L-Card LTR-Crates with LTR032
crate-controller (LTR-E-7/15).
This package contains the shared object files.
#----------------------- ltrlogapi ---------------------------------
%package -n libltrlogapi1
Summary: Library for getting ltrd log (runtime libraries)
Group: System/Libraries
%post -n libltrlogapi1
ldconfig
%postun -n libltrlogapi1
ldconfig
%files -n libltrlogapi1
%defattr(0644,root,root)
%{_libdir}/libltrlogapi.so.*
%description -n libltrlogapi1
This package contains the library which allows you to
get ltrd log in real-time.
This package contains the shared object files.
#----------------------- ltravrapi ---------------------------------
%package -n libltravrapi1
Summary: Library for update AVR firmware for LTR-modules (runtime libraries)
Group: System/Libraries
%post -n libltravrapi1
ldconfig
%postun -n libltravrapi1
ldconfig
%files -n libltravrapi1
%defattr(0644,root,root)
%{_libdir}/libltravrapi.so.*
%description -n libltravrapi1
This package contains the library with API wich allows you update AVR-firmware
for LTR-modules with AVR microcontroller (LTR11, LTR12, LTR114, LTR27, LTR41, LTR42, LTR43, LTR51).
This package contains the shared object files.
#----------------------- ltrbootapi ---------------------------------
%package -n libltrbootapi1
Summary: Library for update firmware for LTR-U-8/16 crates (runtime libraries)
Group: System/Libraries
%post -n libltrbootapi1
ldconfig
%postun -n libltrbootapi1
ldconfig
%files -n libltrbootapi1
%defattr(0644,root,root)
%{_libdir}/libltrbootapi.so.*
%description -n libltrbootapi1
This package contains the library which provide functions that allow you update FPGA-firmware for
'L Card' LTR-U 8/16 crates.
This package contains the shared object files.
#----------------------- ltr11api ---------------------------------
%package -n libltr11api1
Summary: Library for control LTR11 module (runtime libraries)
Group: System/Libraries
%post -n libltr11api1
ldconfig
%postun -n libltr11api1
ldconfig
%files -n libltr11api1
%defattr(0644,root,root)
%{_libdir}/libltr11api.so.*
%description -n libltr11api1
This package contains the library which allows you control LTR11 module.
This package contains the shared object files.
#----------------------- ltr12api ---------------------------------
%package -n libltr12api1
Summary: Library for control LTR12 module (runtime libraries)
Group: System/Libraries
%post -n libltr12api1
ldconfig
%postun -n libltr12api1
ldconfig
%files -n libltr12api1
%defattr(0644,root,root)
%{_libdir}/libltr12api.so.*
%description -n libltr12api1
This package contains the library which allows you control LTR12 module.
This package contains the shared object files.
#----------------------- ltr114api ---------------------------------
%package -n libltr114api1
Summary: Library for control LTR114 module (runtime libraries)
Group: System/Libraries
%post -n libltr114api1
ldconfig
%postun -n libltr114api1
ldconfig
%files -n libltr114api1
%defattr(0644,root,root)
%{_libdir}/libltr114api.so.*
%description -n libltr114api1
This package contains the library which allows you control LTR114 module.
This package contains the shared object files.
#----------------------- ltr22api ---------------------------------
%package -n libltr22api1
Summary: Library for control LTR22 module (runtime libraries)
Group: System/Libraries
%post -n libltr22api1
ldconfig
%postun -n libltr22api1
ldconfig
%files -n libltr22api1
%defattr(0644,root,root)
%{_libdir}/libltr22api.so.*
%description -n libltr22api1
This package contains the library which allows you control LTR22 module.
This package contains the shared object files.
#----------------------- ltr24api ---------------------------------
%package -n libltr24api1
Summary: Library for control LTR24 module (runtime libraries)
Group: System/Libraries
%post -n libltr24api1
ldconfig
%postun -n libltr24api1
ldconfig
%files -n libltr24api1
%defattr(0644,root,root)
%{_libdir}/libltr24api.so.*
%description -n libltr24api1
This package contains the library which allows you control LTR24 module.
This package contains the shared object files.
#----------------------- ltr25api ---------------------------------
%package -n libltr25api1
Summary: Library for control LTR25 module (runtime libraries)
Group: System/Libraries
%post -n libltr25api1
ldconfig
%postun -n libltr25api1
ldconfig
%files -n libltr25api1
%defattr(0644,root,root)
%{_libdir}/libltr25api.so.*
%description -n libltr25api1
This package contains the library which allows you control LTR25 module.
This package contains the shared object files.
#----------------------- ltr27api ---------------------------------
%package -n libltr27api1
Summary: Library for control LTR27 module (runtime libraries)
Group: System/Libraries
%post -n libltr27api1
ldconfig
%postun -n libltr27api1
ldconfig
%files -n libltr27api1
%defattr(0644,root,root)
%{_libdir}/libltr27api.so.*
%description -n libltr27api1
This package contains the library which allows you control LTR27 module.
This package contains the shared object files.
#----------------------- ltr34api ---------------------------------
%package -n libltr34api1
Summary: Library for control LTR34 module (runtime libraries)
Group: System/Libraries
%post -n libltr34api1
ldconfig
%postun -n libltr34api1
ldconfig
%files -n libltr34api1
%defattr(0644,root,root)
%{_libdir}/libltr34api.so.*
%description -n libltr34api1
This package contains the library which allows you control LTR34 module.
This package contains the shared object files.
#----------------------- ltr35api ---------------------------------
%package -n libltr35api1
Summary: Library for control LTR35 module (runtime libraries)
Group: System/Libraries
%post -n libltr35api1
ldconfig
%postun -n libltr35api1
ldconfig
%files -n libltr35api1
%defattr(0644,root,root)
%{_libdir}/libltr35api.so.*
%description -n libltr35api1
This package contains the library which allows you control LTR35 module.
This package contains the shared object files.
#----------------------- ltr41api ---------------------------------
%package -n libltr41api1
Summary: Library for control LTR41 module (runtime libraries)
Group: System/Libraries
%post -n libltr41api1
ldconfig
%postun -n libltr41api1
ldconfig
%files -n libltr41api1
%defattr(0644,root,root)
%{_libdir}/libltr41api.so.*
%description -n libltr41api1
This package contains the library which allows you control LTR41 module.
This package contains the shared object files.
#----------------------- ltr42api ---------------------------------
%package -n libltr42api1
Summary: Library for control LTR42 module (runtime libraries)
Group: System/Libraries
%post -n libltr42api1
ldconfig
%postun -n libltr42api1
ldconfig
%files -n libltr42api1
%defattr(0644,root,root)
%{_libdir}/libltr42api.so.*
%description -n libltr42api1
This package contains the library which allows you control LTR42 module.
This package contains the shared object files.
#----------------------- ltr43api ---------------------------------
%package -n libltr43api1
Summary: Library for control LTR43 module (runtime libraries)
Group: System/Libraries
%post -n libltr43api1
ldconfig
%postun -n libltr43api1
ldconfig
%files -n libltr43api1
%defattr(0644,root,root)
%{_libdir}/libltr43api.so.*
%description -n libltr43api1
This package contains the library which allows you control LTR43 module.
This package contains the shared object files.
#----------------------- ltr51api ---------------------------------
%package -n libltr51api1
Summary: Library for control LTR51 module (runtime libraries)
Group: System/Libraries
%post -n libltr51api1
ldconfig
%postun -n libltr51api1
ldconfig
%files -n libltr51api1
%defattr(0644,root,root)
%{_libdir}/libltr51api.so.*
%dir %{_datadir}/ltrapi
%{_datadir}/ltrapi/ltr51
%description -n libltr51api1
This package contains the library which allows you control LTR51 module.
This package contains the shared object files.
#----------------------- ltr210api ---------------------------------
%package -n libltr210api1
Summary: Library for control LTR210 module (runtime libraries)
Group: System/Libraries
%post -n libltr210api1
ldconfig
%postun -n libltr210api1
ldconfig
%files -n libltr210api1
%defattr(0644,root,root)
%{_libdir}/libltr210api.so.*
%dir %{_datadir}/ltrapi
%{_datadir}/ltrapi/ltr210
%description -n libltr210api1
This package contains the library which allows you control LTR210 module.
This package contains the shared object files.
#----------------------- ltr212api ---------------------------------
%package -n libltr212api1
Summary: Library for control LTR212 module (runtime libraries)
Group: System/Libraries
%post -n libltr212api1
ldconfig
%postun -n libltr212api1
ldconfig
%files -n libltr212api1
%defattr(0644,root,root)
%{_libdir}/libltr212api.so.*
%dir %{_datadir}/ltrapi
%{_datadir}/ltrapi/ltr212
%description -n libltr212api1
This package contains the library which allows you control LTR212 module.
This package contains the shared object files.
#----------------------- ltr216api ---------------------------------
%package -n libltr216api1
Summary: Library for control LTR216 module (runtime libraries)
Group: System/Libraries
%post -n libltr216api1
ldconfig
%postun -n libltr216api1
ldconfig
%files -n libltr216api1
%defattr(0644,root,root)
%{_libdir}/libltr216api.so.*
%description -n libltr216api1
This package contains the library which allows you control LTR216 module.
This package contains the shared object files.
#----------------------- ltedsapi ---------------------------------
%package -n libltedsapi1
Summary: Library for decode and encode TEDS data (runtime libraries)
Group: System/Libraries
%post -n libltedsapi1
ldconfig
%postun -n libltedsapi1
ldconfig
%files -n libltedsapi1
%defattr(0644,root,root)
%{_libdir}/libltedsapi.so.*
%description -n libltedsapi1
This package contains the library which allows you decode and encode TEDS data..
This package contains the shared object files.
#----------------------- lpw25api ---------------------------------
%package -n liblpw25api1
Summary: Library for process LPW25 data (runtime libraries)
Group: System/Libraries
%post -n liblpw25api1
ldconfig
%postun -n liblpw25api1
ldconfig
%files -n liblpw25api1
%defattr(0644,root,root)
%{_libdir}/liblpw25api.so.*
%description -n liblpw25api1
This package contains the library which allows you process data from LPW25 trasducer output.
This package contains the shared object files.