-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlibcworthy.spec
55 lines (42 loc) · 1.1 KB
/
libcworthy.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
%define _build_id_links none
%define debug_package %{nil}
Summary: Netware CWorthy Library for Linux
License: LGPL
Name: libcworthy
Version: 1.17
Release: 1%{?dist}
URL: https://www.github.com/jeffmerkey/netware-cworthy-linux
Source0: %{name}-%{version}.tar.gz
Requires: ncurses
BuildRequires: ncurses-devel
%description
The %{name} package contains the Netware CWorthy libraries for Linux.
%prep
%setup -q -n %{name}-%{version}
%build
%{__make}
%install
[ -n "%{buildroot}" -a "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_sbindir}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__mkdir_p} %{buildroot}%{_includedir}
%{__mkdir_p} %{buildroot}%{_libdir}
%{__make} \
DESTDIR=%{buildroot} NOCHK=1 LIBDIR=%{_libdir} \
INCDIR=%{_includedir} BINDIR=%{_bindir} \
install
%pre
%post
%{_sbindir}/ldconfig
%{_sbindir}/ldconfig
%preun
%postun
%{_sbindir}/ldconfig
%{_sbindir}/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/ifcon
%{_includedir}/cworthy.h
%{_libdir}/libcworthy.a
%{_libdir}/libcworthy.so
%changelog