Fix build dependency bug 62/114662/2
authorsangwan.kwon <sangwan.kwon@samsung.com>
Tue, 14 Feb 2017 10:05:27 +0000 (19:05 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Wed, 15 Feb 2017 00:46:06 +0000 (09:46 +0900)
[Problem]
* hash-signer.sh which the file will be placed into the binary RPM
* use tizen-platform-config's macro,
* but the package has only BuildRequires.

[Solution]
* Add 'Requires: tizen-platform-config' to spec file.
* Additionally replace libX-devel to pkgconfig(libX).

ref) https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires

Change-Id: I11311de9694bb86c918edf07caf2bf39a4349b0a
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
packaging/hash-signer.spec

index 3e6c126..318d044 100644 (file)
@@ -8,11 +8,13 @@ Source0:    %{name}-%{version}.tar.gz
 BuildRequires: coreutils
 BuildRequires: findutils
 BuildRequires: xmlsec1
-BuildRequires: libtzplatform-config-devel
-Requires:   xmlstarlet
-Requires:   xmlsec1
-Requires:   zip
-Requires:   unzip
+BuildRequires: pkgconfig(libtzplatform-config)
+Requires: xmlstarlet
+Requires: xmlsec1
+Requires: zip
+Requires: unzip
+Requires: tizen-platform-config
+
 %description
 hash-signer is command line signing tool for OBS/GBS. It generates signature
 files in OBS/GBS build time. Refer to signature spec  http://www.w3.org/TR/widgets-digsig.
@@ -22,7 +24,6 @@ files in OBS/GBS build time. Refer to signature spec  http://www.w3.org/TR/widge
 
 %build
 
-
 %install
 rm -rf %{buildroot}