Skip to content

Commit

Permalink
Disable static lib, move header files, .so and config files to util-l…
Browse files Browse the repository at this point in the history
…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
xiaolin-vmware authored and Touseef Liaqat committed Oct 7, 2015
1 parent c4a48c6 commit b4e77fc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
24 changes: 18 additions & 6 deletions SPECS/util-linux/util-linux.spec
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
Expand All @@ -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
Expand All @@ -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/*
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions support/package-builder/ToolChainUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def installToolChain(self,chrootID):
if rpmFile is None:
rpmFile=self.findRPMFileInGivenLocation(package, constants.prevPublishRPMRepo)
if rpmFile is None:
if package == "util-linux-devel":
self.logger.info("No old verion of util-linux-devel exists, skip until the new version is built")
continue
self.logger.error("Unable to find rpm "+ package +" in current and previous versions")
raise "Input Error"
rpmFiles += " " + rpmFile
Expand Down Expand Up @@ -198,6 +201,9 @@ def installToolChainRPMS(self,chrootID):
if rpmFile is None:
rpmFile=self.findRPMFileInGivenLocation(package, constants.prevPublishRPMRepo)
if rpmFile is None:
if package == "util-linux-devel":
self.logger.info("No old verion of util-linux-devel exists, skip until the new version is built")
continue
self.logger.error("Unable to find rpm "+ package +" in current and previous versions")
raise "Input Error"
rpmFiles += " " + rpmFile
Expand Down
6 changes: 3 additions & 3 deletions support/package-builder/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class constants(object):
noDepsPackageList=["texinfo","bzip2","gettext","man-db","nspr","xz","bison","openjdk","go"]
listToolChainPackages=["linux-api-headers", "glibc","zlib", "file",
"binutils","gmp","mpfr", "mpc","gcc", "pkg-config", "ncurses", "bash", "bzip2", "sed","procps-ng","coreutils", "m4","grep",
"readline", "diffutils","gawk", "findutils", "gettext", "gzip","make", "patch","util-linux",
"readline", "diffutils","gawk", "findutils", "gettext", "gzip","make", "patch","util-linux", "util-linux-devel",
"tar", "xz","libtool", "flex", "bison", "lua","popt","nspr","sqlite-autoconf","nss",
"elfutils", "expat","libffi","libpipeline", "gdbm","perl","texinfo","autoconf","automake",
"openssl","python2","rpm", "groff", "man-db", "man-pages","cpio"]
Expand All @@ -31,7 +31,7 @@ class constants(object):
"libgcc","libgcc-devel","libstdc++","libstdc++-devel","libgomp","libgomp-devel","gcc",
"pkg-config", "ncurses", "bash", "bzip2", "sed","procps-ng","coreutils", "m4","grep",
"readline","diffutils","gawk", "findutils", "gettext", "gzip","make", "patch",
"util-linux", "tar", "xz","libtool", "flex", "bison",
"util-linux", "util-linux-devel", "tar", "xz","libtool", "flex", "bison",
"lua","popt","nspr","sqlite-autoconf","nss","elfutils-libelf",
"libpipeline", "gdbm","perl","texinfo","rpm","rpm-build", "rpm-devel",
"autoconf","automake", "groff", "man-db", "man-pages","elfutils","cpio"]
Expand All @@ -41,7 +41,7 @@ class constants(object):
"libgcc","libgcc-devel","libstdc++","libstdc++-devel","libgomp","libgomp-devel","gcc",
"pkg-config", "ncurses", "bash", "bzip2", "sed","ncurses-devel","procps-ng","coreutils", "m4","grep",
"readline", "diffutils","gawk", "findutils", "gettext", "gzip","make", "patch",
"util-linux", "tar", "xz","libtool", "flex", "bison",
"util-linux", "util-linux-devel", "tar", "xz","libtool", "flex", "bison",
"readline-devel", "lua","lua-devel","popt","popt-devel","nspr","sqlite-autoconf","nss","nss-devel",
"bzip2-devel","elfutils-libelf","elfutils","elfutils-libelf-devel","elfutils-devel",
"expat","libffi","libpipeline", "gdbm","perl","texinfo","autoconf","automake",
Expand Down

0 comments on commit b4e77fc

Please sign in to comment.