Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

bacnet-stack-dcdb-0.8.6.spec 1.52 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
Name: bacnet-stack-devel-dcdb
Summary: BACnet stack development files patched for DCDB
Group: Development/Libraries
Version: 0.8.6
Release: 1

License: GPL with exception
URL: http://bacnet.sourceforge.net/
Source: https://downloads.sourceforge.net/bacnet/bacnet-stack/bacnet-stack-%{version}/bacnet-stack-%{version}.tgz
Patch: bacnet-stack-%{version}.patch
Packager: DCDB project <info@dcdb.it>

Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gcc
#TODO icon, vendor and preReq?

#ExclusiveArch: x86_64
ExclusiveOS: linux

%description
The BACnet stack is an open source implementation of the BACnet protocol for embedded systems. This package provides include files and a static library of the originial BACnet stack but patched the original sources for better integration with DataCenter DataBase (DCDB). 

The original sources can be found at 
 http://bacnet.sourceforge.net/
For more information on the DCDB project visit 
 https://dcdb.it

%global debug_package %{nil}

%prep
%setup -q -n bacnet-stack-%{version}
%patch -p1

%build
BACNET_PORT=linux MAKE_DEFINE=-fpic make library

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libdir}
install -m644 include/*.h -D -t $RPM_BUILD_ROOT%{_includedir}/bacnet
install -m755 lib/libbacnet.a -D -t $RPM_BUILD_ROOT%{_libdir}

%post -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_includedir}/bacnet/*.h
%{_libdir}/libbacnet.a

%changelog
* Wed Jul 03 2019 Micha Mueller <micha.mueller@lrz.de> 0.8.6-1
- Initial release