mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
rpm: build libiec61850 RPM package
This commit is contained in:
parent
2c5c2f67bb
commit
cc8bbcf10b
4 changed files with 80 additions and 4 deletions
|
@ -45,6 +45,14 @@ rpm-nanomsg: $(BUILDDIR)/thirdparty/nanomsg/ | $(RPMDIR)/SOURCES/
|
|||
make -C$(BUILDDIR)/thirdparty/nanomsg package_source
|
||||
cp $(BUILDDIR)/thirdparty/nanomsg/nanomsg-*.tar.gz $(RPMDIR)/SOURCES/
|
||||
rpmbuild -ba --define="_topdir $$(pwd)/$(RPMDIR)" $(SRCDIR)/packaging/rpm/nanomsg.spec
|
||||
|
||||
rpm-libiec61850: $(BUILDDIR)/thirdparty/libiec61850/ | $(RPMDIR)/SOURCES/
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX) -DCPACK_GENERATOR=TGZ \
|
||||
-H$(SRCDIR)/thirdparty/libiec61850 \
|
||||
-B$(BUILDDIR)/thirdparty/libiec61850 $(CMAKE_OPTS)
|
||||
make -C$(BUILDDIR)/thirdparty/libiec61850 package_source
|
||||
cp $(BUILDDIR)/thirdparty/libiec61850/libiec61850_*.tar.gz $(RPMDIR)/SOURCES/
|
||||
rpmbuild -ba --define="_topdir $$(pwd)/$(RPMDIR)" $(SRCDIR)/packaging/rpm/libiec61850.spec
|
||||
|
||||
rpm-libwebsockets: CMAKE_OPTS += -DLWS_IPV6=1 -DLWS_WITH_STATIC=0 -DLWS_WITHOUT_TESTAPPS=1 -DLWS_WITH_HTTP2=1 -DLWS_WITH_SERVER_STATUS=1
|
||||
rpm-libwebsockets: | $(RPMDIR)/RPMS/x86_64/ $(BUILDDIR)/thirdparty/libwebsockets/
|
||||
|
|
68
packaging/rpm/libiec61850.spec
Normal file
68
packaging/rpm/libiec61850.spec
Normal file
|
@ -0,0 +1,68 @@
|
|||
Name: libiec61850
|
||||
Version: 1.1
|
||||
Vendor: MZ Automation
|
||||
Packager: Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
||||
Release: 1%{?dist}
|
||||
Summary: Open source libraries for IEC 61850 and IEC 60870-5-104
|
||||
|
||||
License: GPL-3.0
|
||||
URL: https://github.com/mz-automation/libiec61850
|
||||
#Source0: https://github.com/mz-automation/libiec61850/repository/archive.tar.gz?ref=v%{version}
|
||||
Source0: libiec61850_1.1.0.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: gcc cmake
|
||||
|
||||
%description
|
||||
|
||||
IEC 61850 is an international standard for communication systems in Substation Automation Systems (SAS) and management of Decentralized Energy Resources (DER).
|
||||
It is seen as one of the communication standards of the emerging Smart Grid.
|
||||
Despite of its complexity and other drawbacks that make it difficult to implement and to use, the protocol is the only one of its kind that is in widespread use by utility companies and equipment manufacturers.
|
||||
|
||||
The project libIEC61850 provides a server and client library for the IEC 61850/MMS, IEC 61850/GOOSE and IEC 61850-9-2/Sampled Values communication protocols written in C.
|
||||
It is available under the GPLv3 license. With this library available everybody can now become easily familiar with IEC 61850.
|
||||
A tabular overview of the provided IEC 61850 ACSI services is available on the project website.
|
||||
|
||||
The library is designed according to edition 2 of the IEC 61850 standard series, but should be compatible to edition 1 in most cases.
|
||||
|
||||
%package devel
|
||||
|
||||
Summary: Headers and libraries for building apps that use libiec61850
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
|
||||
The development headers for libiec61850.
|
||||
|
||||
%prep
|
||||
%setup -q -n libiec61850_1.1.0/
|
||||
|
||||
%build
|
||||
mkdir -p build
|
||||
cd build
|
||||
%cmake -DCMAKE_INSTALL_LIBDIR=${_libdir} ..
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
cd build
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%{_prefix}/lib/libiec61850.so.1.1.0
|
||||
%{_prefix}/lib/libiec61850.so
|
||||
%{_prefix}/lib/libiec61850.a
|
||||
|
||||
%files devel
|
||||
%{_includedir}/libiec61850/*
|
||||
|
||||
%changelog
|
||||
* Mon Nov 6 2017 Steffen Vogel <stvogel@eonerc.rwth-aachen.de
|
||||
- Initial RPM release
|
|
@ -10,7 +10,7 @@ Summary: A fast, scalable, and easy to use socket library
|
|||
Group: System Environment/Libraries
|
||||
License: MIT
|
||||
URL: http://nanomsg.org/
|
||||
Source0: nanomsg-%{version}-40-g5cc0074.tar.gz
|
||||
Source0: nanomsg-1.0.0-40-g5cc0074.tar.gz
|
||||
|
||||
BuildRequires: rubygem-asciidoctor xmlto cmake
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
|
@ -154,4 +154,4 @@ rm -fR %{buildroot}
|
|||
- check section added as a build conditional
|
||||
- ensure man pages for nanocat symlinks present
|
||||
- disable RPATH in library
|
||||
- License set to MIT
|
||||
- License set to MIT
|
||||
|
|
|
@ -14,8 +14,8 @@ BuildRequires: gcc pkgconfig make
|
|||
|
||||
Requires: iproute kernel-modules-extra module-init-tools
|
||||
|
||||
BuildRequires: openssl-devel libconfig-devel libnl3-devel libcurl-devel jansson-devel libxil-devel libwebsockets-devel zeromq-devel nanomsg-devel
|
||||
Requires: openssl libconfig libnl3 libcurl jansson libxil libwebsockets zeromq nanomsg
|
||||
BuildRequires: openssl-devel libconfig-devel libnl3-devel libcurl-devel jansson-devel libxil-devel libwebsockets-devel zeromq-devel nanomsg-devel libiec61850-devel
|
||||
Requires: openssl libconfig libnl3 libcurl jansson libxil libwebsockets zeromq nanomsg libiec61850
|
||||
|
||||
%description
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue