Skip to content

Commit 96c4e40

Browse files
authored
Merge pull request #34 from RobSanders/FixSymLinkOnLibraryFiles
Fix sym link on library files
2 parents da38673 + 3a92550 commit 96c4e40

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

libcli.spec

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Version: 1.9.8
22
Summary: Cisco-like telnet command-line library
33
Name: libcli
4-
Release: 1
4+
Release: 4
55
License: LGPL
66
Group: Library/Communication
77
Source: %{name}-%{version}.tar.gz
@@ -42,8 +42,10 @@ install -p -m 644 libcli*.h %{buildroot}%{_includedir}/
4242
install -d -p %{buildroot}%{_libdir}
4343
install -p -m 755 libcli.so.%{version} %{buildroot}%{_libdir}/
4444
install -p -m 755 libcli.a %{buildroot}%{_libdir}/
45-
ln -s %{_libdir}/libcli.so.%{version} %{buildroot}%{_libdir}/libcli.so.%{verMajMin}
46-
ln -s %{_libdir}/libcli.so.%{verMajMin} %{buildroot}%{_libdir}/libcli.so
45+
46+
cd %{buildroot}%{_libdir}
47+
ln -s libcli.so.%{version} libcli.so.%{verMajMin}
48+
ln -s libcli.so.%{verMajMin} libcli.so
4749

4850
%post -p /sbin/ldconfig
4951

@@ -65,6 +67,9 @@ rm -rf $RPM_BUILD_ROOT
6567
%defattr(-, root, root)
6668

6769
%changelog
70+
* Wed Sep 19 2018 Rob Sanders <[email protected]> 1.9.8-4
71+
- Update spac file to use relative links for libcli.so symlinks
72+
6873
* Tue Sep 18 2018 Rob Sanders <[email protected]> 1.9.8-3
6974
- Update spec file similar to EPEL's for regular and devel pacakges
7075
- Update Makefile rpm target to build both regular and devel pacakges

0 commit comments

Comments
 (0)