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_9.0_unified.tar.gz
gflags-accepted/tizen_9.0_unified.tar.bz2
gflags-accepted/tizen_9.0_unified.zip
packaging: Add RPM spec file for packagingtizen_9.0_m2_releasetizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.163401submit/tizen_6.0_hotfix/20201103.115101submit/tizen_6.0_hotfix/20201102.192901submit/tizen_6.0/20201029.205501submit/tizen_5.5_wearable_hotfix/20201026.184306submit/tizen_5.5_mobile_hotfix/20201026.185106submit/tizen_5.5/20191031.000006submit/tizen_5.0/20181101.000006submit/tizen/20180312.052625accepted/tizen/unified/20180313.061108accepted/tizen/9.0/unified/20241030.231751accepted/tizen/8.0/unified/20231005.094859accepted/tizen/7.0/unified/hotfix/20221116.110811accepted/tizen/7.0/unified/20221110.060106accepted/tizen/6.5/unified/20211029.012922accepted/tizen/6.0/unified/hotfix/20201102.235620accepted/tizen/6.0/unified/20201030.104605accepted/tizen/5.5/unified/wearable/hotfix/20201027.102345accepted/tizen/5.5/unified/mobile/hotfix/20201027.062110accepted/tizen/5.5/unified/20191031.005157accepted/tizen/5.0/unified/20181102.024438tizen_9.0tizen_8.0tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizenaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unified
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