packaging: use %{_libdir} instead of fixed path accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/5.0/unified/20181102.024921 accepted/tizen/5.5/unified/20191031.005613 accepted/tizen/5.5/unified/mobile/hotfix/20201027.062532 accepted/tizen/5.5/unified/wearable/hotfix/20201027.102712 accepted/tizen/6.0/unified/20201030.105258 accepted/tizen/6.0/unified/hotfix/20201103.000021 accepted/tizen/6.5/unified/20211029.013019 accepted/tizen/7.0/unified/20221110.063336 accepted/tizen/7.0/unified/hotfix/20221116.110820 accepted/tizen/8.0/unified/20231005.094909 accepted/tizen/unified/20180314.062115 accepted/tizen/unified/dev/20240620.010717 submit/tizen/20180313.064233 submit/tizen_5.0/20181101.000006 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 submit/tizen_5.5_wearable_hotfix/20201026.184306 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 submit/tizen_6.5/20211028.163401 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorSangjung woo <sangjung.woo@samsung.com>
Tue, 26 Sep 2017 01:47:54 +0000 (10:47 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 13 Mar 2018 06:37:24 +0000 (15:37 +0900)
This patch uses the %{_libdir} instead of fixed path so that built
result could be install in both 'lib' and 'lib64'.

Signed-off-by: Sangjung woo <sangjung.woo@samsung.com>
Corrected subject format.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
packaging/glog.spec

index 5cb70e011e8c8a6f512d1823cc63aeb4b4d89929..b4996d54e06b238c586ee81bd80fe3afd9b4f710 100644 (file)
@@ -1,5 +1,4 @@
 %define        RELEASE 1
-# %define rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
 %define        prefix  %{_prefix}
 %define NAME    glog
 %define VERSION 0.3.5
@@ -13,9 +12,8 @@ URL: http://github.com/google/glog
 License: BSD
 Vendor: Google
 Packager: Google Inc. <opensource@google.com>
-Source: https://github.com/google/glog/archive/v%{VERSION}.tar.gz
+Source: %{name}-%{version}.tar.gz
 Distribution: Redhat 7 and above.
-Buildroot: %{_tmppath}/%{name}-root
 Prefix: %prefix
 
 %description
@@ -46,7 +44,7 @@ make prefix=%prefix
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+make prefix=$RPM_BUILD_ROOT%{prefix} libdir=$RPM_BUILD_ROOT%{_libdir} install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -61,15 +59,14 @@ rm -rf $RPM_BUILD_ROOT
 ##     dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README
 %docdir %{prefix}/share/doc/%{NAME}-%{VERSION}
 %{prefix}/share/doc/%{NAME}-%{VERSION}/*
-
-%{prefix}/lib/libglog.so.0
-%{prefix}/lib/libglog.so.0.0.0
+%{_libdir}/libglog.so.0
+%{_libdir}/libglog.so.0.0.0
 
 %files devel
 %defattr(-,root,root)
 
-%{prefix}/include/glog
-%{prefix}/lib/libglog.a
-%{prefix}/lib/libglog.la
-%{prefix}/lib/libglog.so
-%{prefix}/lib/pkgconfig/libglog.pc
+%{_includedir}/glog
+%{_libdir}/libglog.a
+%{_libdir}/libglog.la
+%{_libdir}/libglog.so
+%{_libdir}/pkgconfig/libglog.pc