Skip to content

Commit

Permalink
which, netcat: avoid conflicts
Browse files Browse the repository at this point in the history
/usr/share/info directory removed from both packages

Change-Id: I0e3ad0b860f5bae0bea9464e463d64ec44ca94be
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4075
Reviewed-by: Sharath George
Tested-by: Sharath George
  • Loading branch information
YustasSwamp authored and Sharath George committed Oct 19, 2017
1 parent 2366bc4 commit c75b8bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
10 changes: 7 additions & 3 deletions SPECS/netcat/netcat.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol.
Name: netcat
Version: 0.7.1
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv2
URL: http://netcat.sourceforge.net/
Group: Productivity/Networking/Other
Expand All @@ -19,9 +19,10 @@ It is designed to be a reliable "back-end" tool that can be used directly or eas
%build

%configure
make %{?_smp_mflags}
%make_build
%install
make DESTDIR=%{buildroot} install
%make_install
rm -rf %{buildroot}%{_infodir}

%clean
rm -rf %{buildroot}
Expand All @@ -31,6 +32,9 @@ rm -rf %{buildroot}
%{_bindir}
%{_datadir}
%changelog
* Thu Oct 19 2017 Alexey Makhalov <[email protected]> 0.7.1-5
- Remove infodir
- Use standard build macros
* Fri Oct 13 2017 Alexey Makhalov <[email protected]> 0.7.1-4
- Use standard configure macros
* Wed Jul 27 2016 Divya Thaluru <[email protected]> 0.7.1-3
Expand Down
14 changes: 8 additions & 6 deletions SPECS/which/which.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Program shows full path of (shell) commands
Name: which
Version: 2.21
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv3+
URL: http://savannah.gnu.org/projects/which
Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
Expand All @@ -15,17 +15,19 @@ Program for showing the full the path of (shell) commands.
%prep
%setup -q
%build
./configure \
--prefix=%{_prefix}
make %{?_smp_mflags}
%configure
%make_build
%install
make DESTDIR=%{buildroot} install
%make_install
rm -rf %{buildroot}%{_infodir}
%files
%defattr(-,root,root)
%{_bindir}/*
/usr/share/info/*
%{_mandir}/man1/*
%changelog
* Thu Oct 19 2017 Alexey Makhalov <[email protected]> 2.21-5
- Remove infodir
- Use standard configure/build macros
* Mon Oct 02 2017 Alexey Makhalov <[email protected]> 2.21-4
- Added conflicts toybox
* Mon Oct 10 2016 ChangLee <[email protected]> 2.21-3
Expand Down

0 comments on commit c75b8bd

Please sign in to comment.