Skip to content

Commit

Permalink
Merge pull request #34 from RobSanders/FixSymLinkOnLibraryFiles
Browse files Browse the repository at this point in the history
Fix sym link on library files
  • Loading branch information
dparrish authored Sep 22, 2018
2 parents da38673 + 3a92550 commit 96c4e40
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions libcli.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Version: 1.9.8
Summary: Cisco-like telnet command-line library
Name: libcli
Release: 1
Release: 4
License: LGPL
Group: Library/Communication
Source: %{name}-%{version}.tar.gz
Expand Down Expand Up @@ -42,8 +42,10 @@ install -p -m 644 libcli*.h %{buildroot}%{_includedir}/
install -d -p %{buildroot}%{_libdir}
install -p -m 755 libcli.so.%{version} %{buildroot}%{_libdir}/
install -p -m 755 libcli.a %{buildroot}%{_libdir}/
ln -s %{_libdir}/libcli.so.%{version} %{buildroot}%{_libdir}/libcli.so.%{verMajMin}
ln -s %{_libdir}/libcli.so.%{verMajMin} %{buildroot}%{_libdir}/libcli.so

cd %{buildroot}%{_libdir}
ln -s libcli.so.%{version} libcli.so.%{verMajMin}
ln -s libcli.so.%{verMajMin} libcli.so

%post -p /sbin/ldconfig

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

%changelog
* Wed Sep 19 2018 Rob Sanders <[email protected]> 1.9.8-4
- Update spac file to use relative links for libcli.so symlinks

* Tue Sep 18 2018 Rob Sanders <[email protected]> 1.9.8-3
- Update spec file similar to EPEL's for regular and devel pacakges
- Update Makefile rpm target to build both regular and devel pacakges
Expand Down

0 comments on commit 96c4e40

Please sign in to comment.