-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlibxil.spec
59 lines (43 loc) · 1.22 KB
/
libxil.spec
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
58
59
Name: libxil
Version: 1.1
Vendor: Institute for Automation of Complex Power Systems
Packager: Steffen Vogel <[email protected]>
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 -DCMAKE_INSTALL_LIBDIR=${_libdir} ..
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
%{_libdir}/libxil.so
%{_libdir}/pkgconfig/libxil.pc
%files devel
%{_includedir}/xilinx/*
%changelog
* Fri Mar 17 2017 Steffen Vogel <[email protected]
- Initial RPM release