forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable static lib, move header files, .so and config files to util-l…
…inux devel package. Disable static lib, move header files, .so and config files to util- linux devel package. Change-Id: I0fc6d064aa62eb628ed9ecc96ed0a37419a76722 Reviewed-on: http://photon-jenkins.eng.vmware.com/41 Tested-by: jenkins-photon <[email protected]> Reviewed-by: Touseef Liaqat <[email protected]>
- Loading branch information
1 parent
c4a48c6
commit b4e77fc
Showing
3 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Summary: Utilities for file systems, consoles, partitions, and messages | ||
Name: util-linux | ||
Version: 2.24.1 | ||
Release: 2%{?dist} | ||
Release: 3%{?dist} | ||
URL: http://www.kernel.org/pub/linux/utils/util-linux | ||
License: GPLv2+ | ||
Group: Applications/System | ||
|
@@ -21,13 +21,21 @@ Requires: util-linux >= 2.24.1 | |
%description lang | ||
These are the additional language files of util-linux. | ||
|
||
%package devel | ||
Summary: Header and library files for util-linux | ||
Group: Development/Libraries | ||
Requires: util-linux >= 2.24.1 | ||
%description devel | ||
These are the header and library files of util-linux. | ||
|
||
%prep | ||
%setup -q | ||
sed -i -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' $(grep -rl '/etc/adjtime' .) | ||
%build | ||
./configure \ | ||
--disable-nologin \ | ||
--disable-silent-rules | ||
--disable-silent-rules \ | ||
--disable-static | ||
make %{?_smp_mflags} | ||
%install | ||
install -vdm 755 %{buildroot}%{_sharedstatedir}/hwclock | ||
|
@@ -44,10 +52,6 @@ find %{buildroot} -name '*.la' -delete | |
/lib/*.so.* | ||
/sbin/* | ||
%{_bindir}/* | ||
%{_libdir}/*.so | ||
%{_libdir}/*.a | ||
%{_libdir}/pkgconfig/*.pc | ||
%{_includedir}/* | ||
%{_sbindir}/* | ||
%{_mandir}/*/* | ||
%{_datadir}/bash-completion/completions/* | ||
|
@@ -56,7 +60,15 @@ find %{buildroot} -name '*.la' -delete | |
%files lang -f %{name}.lang | ||
%defattr(-,root,root) | ||
|
||
%files devel | ||
%defattr(-,root,root) | ||
%{_libdir}/pkgconfig/*.pc | ||
%{_libdir}/*.so | ||
%{_includedir}/* | ||
|
||
%changelog | ||
* Tue Oct 6 2015 Xiaolin Li <[email protected]> 2.24.1-3 | ||
- Disable static, move header files, .so and config files to devel package. | ||
* Mon May 18 2015 Touseef Liaqat <[email protected]> 2.24.1-2 | ||
- Update according to UsrMove. | ||
* Wed Nov 5 2014 Divya Thaluru <[email protected]> 2.24.1-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters