summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangjung woo <sangjung.woo@samsung.com>2017-09-26 14:22:47 +0900
committerInki Dae <inki.dae@samsung.com>2018-03-12 14:23:36 +0900
commite5819300dd3cfb625643033d361b0876d3d75c87 (patch)
tree8808d224a0a80fc82b83efaf744d026a37691d81
parente292e0452fcfd5a8ae055b59052fc041cbab4abf (diff)
downloadgflags-accepted/tizen_6.5_unified.tar.gz
gflags-accepted/tizen_6.5_unified.tar.bz2
gflags-accepted/tizen_6.5_unified.zip
This patch newly added the RPM spec & manifest file to build RPM package. Signed-off-by: Sangjung woo <sangjung.woo@samsung.com> Corrected subject format. Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--packaging/gflags.manifest5
-rw-r--r--packaging/gflags.spec67
2 files changed, 72 insertions, 0 deletions
diff --git a/packaging/gflags.manifest b/packaging/gflags.manifest
new file mode 100644
index 0000000..2a0cec5
--- /dev/null
+++ b/packaging/gflags.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/gflags.spec b/packaging/gflags.spec
new file mode 100644
index 0000000..c9dc83e
--- /dev/null
+++ b/packaging/gflags.spec
@@ -0,0 +1,67 @@
+Name: gflags
+Summary: A commandline flags library that allows for distributed flags
+Version: 2.2.1
+Release: 1
+Group: Development/Libraries
+URL: http://code.google.com/p/gflags
+License: BSD
+Vendor: Google Inc. and others
+Packager: Google Inc. and others <google-gflags@googlegroups.com>
+Source0: %{name}-%{version}.tar.gz
+Source1: %{name}.manifest
+Distribution: Redhat 7 and above.
+
+BuildRequires: cmake
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description
+The %name package contains a library that implements commandline flags
+processing. As such it's a replacement for getopt(). It has increased
+flexibility, including built-in support for C++ types like string, and
+the ability to define flags in the source file in which they're used.
+
+%package devel
+Summary: A commandline flags library that allows for distributed flags
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description devel
+The %name-devel package contains static and debug libraries and header
+files for developing applications that use the %name package.
+
+%prep
+%setup -q
+cp %{SOURCE1} .
+
+%build
+mkdir -p build
+cd build
+%cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LIBDIR=%{_libdir}
+make %{?_smp_mflags}
+
+%install
+cd build
+make DESTDIR=%{buildroot} install
+
+# Remove unnecessary files
+rm -rf %{buildroot}%{_libdir}/cmake
+rm -rf %{buildroot}/home/abuild
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%manifest %{name}.manifest
+%{_libdir}/*.so.*
+%{_bindir}/gflags_completions.sh
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/gflags
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc