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 <wangnan2015@hotmail.com>
Reviewed-by: Touseef Liaqat <tliaqat@vmware.com>
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Utilities for file systems, consoles, partitions, and messages |
2 | 2 |
Name: util-linux |
3 | 3 |
Version: 2.24.1 |
4 |
-Release: 2%{?dist} |
|
4 |
+Release: 3%{?dist} |
|
5 | 5 |
URL: http://www.kernel.org/pub/linux/utils/util-linux |
6 | 6 |
License: GPLv2+ |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -21,13 +21,21 @@ Requires: util-linux >= 2.24.1 |
21 | 21 |
%description lang |
22 | 22 |
These are the additional language files of util-linux. |
23 | 23 |
|
24 |
+%package devel |
|
25 |
+Summary: Header and library files for util-linux |
|
26 |
+Group: Development/Libraries |
|
27 |
+Requires: util-linux >= 2.24.1 |
|
28 |
+%description devel |
|
29 |
+These are the header and library files of util-linux. |
|
30 |
+ |
|
24 | 31 |
%prep |
25 | 32 |
%setup -q |
26 | 33 |
sed -i -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' $(grep -rl '/etc/adjtime' .) |
27 | 34 |
%build |
28 | 35 |
./configure \ |
29 | 36 |
--disable-nologin \ |
30 |
- --disable-silent-rules |
|
37 |
+ --disable-silent-rules \ |
|
38 |
+ --disable-static |
|
31 | 39 |
make %{?_smp_mflags} |
32 | 40 |
%install |
33 | 41 |
install -vdm 755 %{buildroot}%{_sharedstatedir}/hwclock |
... | ... |
@@ -44,10 +52,6 @@ find %{buildroot} -name '*.la' -delete |
44 | 44 |
/lib/*.so.* |
45 | 45 |
/sbin/* |
46 | 46 |
%{_bindir}/* |
47 |
-%{_libdir}/*.so |
|
48 |
-%{_libdir}/*.a |
|
49 |
-%{_libdir}/pkgconfig/*.pc |
|
50 |
-%{_includedir}/* |
|
51 | 47 |
%{_sbindir}/* |
52 | 48 |
%{_mandir}/*/* |
53 | 49 |
%{_datadir}/bash-completion/completions/* |
... | ... |
@@ -56,7 +60,15 @@ find %{buildroot} -name '*.la' -delete |
56 | 56 |
%files lang -f %{name}.lang |
57 | 57 |
%defattr(-,root,root) |
58 | 58 |
|
59 |
+%files devel |
|
60 |
+%defattr(-,root,root) |
|
61 |
+%{_libdir}/pkgconfig/*.pc |
|
62 |
+%{_libdir}/*.so |
|
63 |
+%{_includedir}/* |
|
64 |
+ |
|
59 | 65 |
%changelog |
66 |
+* Tue Oct 6 2015 Xiaolin Li <xiaolinl@vmware.com> 2.24.1-3 |
|
67 |
+- Disable static, move header files, .so and config files to devel package. |
|
60 | 68 |
* Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 2.24.1-2 |
61 | 69 |
- Update according to UsrMove. |
62 | 70 |
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.24.1-1 |
... | ... |
@@ -90,6 +90,9 @@ class ToolChainUtils(object): |
90 | 90 |
if rpmFile is None: |
91 | 91 |
rpmFile=self.findRPMFileInGivenLocation(package, constants.prevPublishRPMRepo) |
92 | 92 |
if rpmFile is None: |
93 |
+ if package == "util-linux-devel": |
|
94 |
+ self.logger.info("No old verion of util-linux-devel exists, skip until the new version is built") |
|
95 |
+ continue |
|
93 | 96 |
self.logger.error("Unable to find rpm "+ package +" in current and previous versions") |
94 | 97 |
raise "Input Error" |
95 | 98 |
rpmFiles += " " + rpmFile |
... | ... |
@@ -198,6 +201,9 @@ class ToolChainUtils(object): |
198 | 198 |
if rpmFile is None: |
199 | 199 |
rpmFile=self.findRPMFileInGivenLocation(package, constants.prevPublishRPMRepo) |
200 | 200 |
if rpmFile is None: |
201 |
+ if package == "util-linux-devel": |
|
202 |
+ self.logger.info("No old verion of util-linux-devel exists, skip until the new version is built") |
|
203 |
+ continue |
|
201 | 204 |
self.logger.error("Unable to find rpm "+ package +" in current and previous versions") |
202 | 205 |
raise "Input Error" |
203 | 206 |
rpmFiles += " " + rpmFile |
... | ... |
@@ -16,7 +16,7 @@ class constants(object): |
16 | 16 |
noDepsPackageList=["texinfo","bzip2","gettext","man-db","nspr","xz","bison","openjdk","go"] |
17 | 17 |
listToolChainPackages=["linux-api-headers", "glibc","zlib", "file", |
18 | 18 |
"binutils","gmp","mpfr", "mpc","gcc", "pkg-config", "ncurses", "bash", "bzip2", "sed","procps-ng","coreutils", "m4","grep", |
19 |
- "readline", "diffutils","gawk", "findutils", "gettext", "gzip","make", "patch","util-linux", |
|
19 |
+ "readline", "diffutils","gawk", "findutils", "gettext", "gzip","make", "patch","util-linux", "util-linux-devel", |
|
20 | 20 |
"tar", "xz","libtool", "flex", "bison", "lua","popt","nspr","sqlite-autoconf","nss", |
21 | 21 |
"elfutils", "expat","libffi","libpipeline", "gdbm","perl","texinfo","autoconf","automake", |
22 | 22 |
"openssl","python2","rpm", "groff", "man-db", "man-pages","cpio"] |
... | ... |
@@ -31,7 +31,7 @@ class constants(object): |
31 | 31 |
"libgcc","libgcc-devel","libstdc++","libstdc++-devel","libgomp","libgomp-devel","gcc", |
32 | 32 |
"pkg-config", "ncurses", "bash", "bzip2", "sed","procps-ng","coreutils", "m4","grep", |
33 | 33 |
"readline","diffutils","gawk", "findutils", "gettext", "gzip","make", "patch", |
34 |
- "util-linux", "tar", "xz","libtool", "flex", "bison", |
|
34 |
+ "util-linux", "util-linux-devel", "tar", "xz","libtool", "flex", "bison", |
|
35 | 35 |
"lua","popt","nspr","sqlite-autoconf","nss","elfutils-libelf", |
36 | 36 |
"libpipeline", "gdbm","perl","texinfo","rpm","rpm-build", "rpm-devel", |
37 | 37 |
"autoconf","automake", "groff", "man-db", "man-pages","elfutils","cpio"] |
... | ... |
@@ -41,7 +41,7 @@ class constants(object): |
41 | 41 |
"libgcc","libgcc-devel","libstdc++","libstdc++-devel","libgomp","libgomp-devel","gcc", |
42 | 42 |
"pkg-config", "ncurses", "bash", "bzip2", "sed","ncurses-devel","procps-ng","coreutils", "m4","grep", |
43 | 43 |
"readline", "diffutils","gawk", "findutils", "gettext", "gzip","make", "patch", |
44 |
- "util-linux", "tar", "xz","libtool", "flex", "bison", |
|
44 |
+ "util-linux", "util-linux-devel", "tar", "xz","libtool", "flex", "bison", |
|
45 | 45 |
"readline-devel", "lua","lua-devel","popt","popt-devel","nspr","sqlite-autoconf","nss","nss-devel", |
46 | 46 |
"bzip2-devel","elfutils-libelf","elfutils","elfutils-libelf-devel","elfutils-devel", |
47 | 47 |
"expat","libffi","libpipeline", "gdbm","perl","texinfo","autoconf","automake", |