Commit 46eadf3b authored by Micha Müller's avatar Micha Müller
Browse files

Add experimental RPM spec files for deps requiring patches

parent 3d386d8b
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
Name: libmosquitto-dcdb
Summary: Mosquitto library patched for DCDB
Group: System Environment/Libraries
Version: 1.5.5
Release: 1
License: BSD
URL: http://mosquitto.org/
Source: http://mosquitto.org/files/source/mosquitto-%{version}.tar.gz
Patch: mosquitto-%{version}.patch
Packager: DCDB project <info@dcdb.it>
Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gcc-c++
BuildRequires: openssl-devel
%description
Mosquitto is an open source implementation of the MQ Telemetry Transport
protocol version 3.1 and 3.1.1. MQTT provides a lightweight method of carrying
out messaging using a publish/subscribe model. This package provides
libmosquitto.so but patched the original sources for better integration with
DataCenter DataBase (DCDB).
The original sources can be found at
http://mosquitto.org/
For more information on the DCDB project visit
https://dcdb.it
%prep
%setup -q -n mosquitto-%{version}
# Set the install prefix to $RPM_BUILD_ROOT
sed -i "s|prefix?=/usr/local|prefix?=/usr|" config.mk
%patch -p1
%build
cd lib/
%if 0%{?rhel} == 7
export CFLAGS="%{optflags} -std=gnu99"
%else
export CFLAGS="%{optflags}"
%endif
export LDFLAGS="%{optflags} %{__global_ldflags} -Wl,--as-needed"
make all %{?_smp_mflags} WITH_SHARED_LIBRARIES=yes WITH_STATIC_LIBRARIES=no WITH_STRIP=no
%install
rm -rf $RPM_BUILD_ROOT
%if "%{_lib}" == "lib64"
export LIB_SUFFIX=64
%endif
cd lib/
%make_install
%post -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.so.*
%{_libdir}/pkgconfig/*.pc
%changelog
* Thu Jul 04 2019 Micha Mueller <micha.mueller@lrz.de> 1.5.5-1
- Initial release
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment