Commit 4df97a4c authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

add spec files for building RPM

parent a80b6fb5
Pipeline #11950 passed with stage
in 7 seconds
Name: libxil
Version: 0.1
Vendor: Institute for Automation of Complex Power Systems
Packager: Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
Release: 1%{?dist}
Summary: Modified Xilinx drivers for VILLASnode
License: Xilinx BSD?
URL: https://git.rwth-aachen.de/VILLASframework/libxil
#Source0: https://git.rwth-aachen.de/VILLASframework/libxil/repository/archive.tar.gz?ref=%{version}
Source0: libxil-0.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc cmake
%description
Source: https://github.com/Xilinx/embeddedsw
%package devel
Summary: Headers and libraries for building apps that use libxil
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The development headers for libxil.
%prep
%setup -q
%build
mkdir -p build
cd build
%cmake ..
make
%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
/usr/lib/libxil.so
/usr/lib/pkgconfig/libxil.pc
%files devel
/usr/include/xilinx/*
%changelog
* Fri Mar 17 2017 Steffen Vogel <stvogel@eonerc.rwth-aachen.de
- Initial RPM release
\ No newline at end of file
Supports Markdown
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