[Tizen-submit] 2842: New package Tizen:2.1:Main/iniparser

noreply at tizen.org noreply at tizen.org
Wed Apr 24 22:51:35 GMT 2013


Hi,
Adding new package iniparser in project Tizen:2.1:Main. Please review and accept ASAP.

Justification for this new package:

Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: external/iniparser
Tag: submit/tizen_2.1/20130424.225158
Commit: 904bb8c Tizen 2.1 base

Thank You,
Jinkun Jang

[This message was auto-generated]

---

Request: #2842

  submit:       Tizen:2.1:Main:build/iniparser(cleanup) -> Tizen:2.1:Main


Message:
Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: external/iniparser
Tag: submit/tizen_2.1/20130424.225158
Commit: 904bb8c Tizen 2.1 base

State:   new        2013-04-24T15:22:13 tizenrobot
Comment: <no comment>
new:
----
  iniparser-2.17.tar.gz
  iniparser.manifest
  iniparser.spec

spec files:
-----------

++++++ new spec file:
--- iniparser.spec
+++ iniparser.spec
@@ -0,0 +1,86 @@
+#sbs-git:slp/unmodified/iniparser iniparser 2.17 2a9012b9ef8ccf91d380cd8293767ab6f101830b
+Name:       iniparser
+Summary:    Stand-alone ini file parsing library
+Version:    2.17
+Release:    3
+VCS:        external/iniparser#2.1_release-0-g904bb8c
+Group:      Applications/Databases
+License:    MIT
+URL:        http://ndevilla.free.fr/iniparser/
+Source:     http://ndevilla.free.fr/iniparser/iniparser-%{version}.tar.gz
+Source1001:     %{name}.manifest
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description
+iniparser is a free stand-alone ini file parsing library.
+It is written in portable ANSI C and should compile anywhere.
+iniparser is distributed under an MIT license.
+
+%package devel
+Summary:    Development tools for stand-alone ini file parsing library
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+%description devel
+This package contains the header files and development documentation
+for %{name}. If you like to develop programs using %{name}, you will need
+to install %{name}-devel.
+
+%prep
+%setup -q
+
+%build
+cp %{SOURCE1001} .
+LDFLAGS="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed $LDFLAGS" \
+	make prefix=%{_prefix}
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p $RPM_BUILD_ROOT/%{_libdir}
+install -m 755 libiniparser.so.0 $RPM_BUILD_ROOT/%{_libdir}
+ln -s libiniparser.so.0 $RPM_BUILD_ROOT/%{_libdir}/libiniparser.so
+mkdir -p $RPM_BUILD_ROOT/%{_includedir}
+install -m 755 src/*.h $RPM_BUILD_ROOT/%{_includedir}
+install -m 755 src/*.h $RPM_BUILD_ROOT/%{_includedir}
+mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
+cat > $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/%{name}.pc <<EOF
+prefix = %{_prefix}
+exec_prefix = %{_exec_prefix}
+libdir = %{_libdir}
+includedir = %{_includedir}
+
+Name : iniparser
+Description : a free stand-alone ini file parsing library.
+Version : %{version}
+Libs : -L\${libdir} -liniparser
+Cflags : -I\${includedir}
+
+EOF
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
+for keyword in LICENSE COPYING COPYRIGHT;
+do
+	for file in `find %{_builddir} -name $keyword`;
+	do
+		cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
+		echo "";
+	done;
+done
+

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list