Rebase for iniparser-4.0 75/87075/1
authorAnas Nashif <anas.nashif@intel.com>
Mon, 25 Mar 2013 02:27:55 +0000 (19:27 -0700)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 6 Sep 2016 08:10:06 +0000 (17:10 +0900)
Change-Id: I65dfae91f01a48464890eb7003c1699894fcd4c5
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Makefile
packaging/iniparser.changes [new file with mode: 0644]
packaging/iniparser.manifest [new file with mode: 0644]
packaging/iniparser.spec [new file with mode: 0644]

index 78708a5..114b7ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ ARFLAGS = rcv
 
 SHLD = ${CC} ${CFLAGS}
 LDSHFLAGS = -shared -Wl,-Bsymbolic
-LDFLAGS += -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib
+LDFLAGS 
 
 # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX)
 # RANLIB  = ranlib
diff --git a/packaging/iniparser.changes b/packaging/iniparser.changes
new file mode 100644 (file)
index 0000000..244901c
--- /dev/null
@@ -0,0 +1,6 @@
+* Tue Jan 21 2014 Ćukasz Stelmach <l.stelmach@samsung.com> upstream/3.1@6fd23e7
+- Import upstream version 3.1
+
+* Thu Apr 04 2013 Anas Nashif <anas.nashif@intel.com> upstream/2.17@9523f21
+- Initial import
+
diff --git a/packaging/iniparser.manifest b/packaging/iniparser.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/iniparser.spec b/packaging/iniparser.spec
new file mode 100644 (file)
index 0000000..968f8ee
--- /dev/null
@@ -0,0 +1,68 @@
+Name:           iniparser
+Version:        3.1
+Release:        0
+License:        MIT
+Summary:        Stand-alone ini file parsing library
+Url:            http://ndevilla.free.fr/iniparser/
+Group:          System/Libraries
+Source:         http://ndevilla.free.fr/iniparser/iniparser-%{version}.tar.gz
+Source1001:     %{name}.manifest
+
+%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}
+
+%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 -n iniparser
+cp %{SOURCE1001} .
+
+%build
+%__make prefix=%{_prefix}  %{?_smp_mflags} CFLAGS="%{optflags} -fPIC"
+
+%install
+
+mkdir -p %{buildroot}/%{_libdir}
+install -m 755 libiniparser.so.0 %{buildroot}/%{_libdir}
+ln -s libiniparser.so.0 %{buildroot}/%{_libdir}/libiniparser.so
+mkdir -p %{buildroot}/%{_includedir}
+install -m 644 src/*.h %{buildroot}/%{_includedir}
+install -m 644 src/*.h %{buildroot}/%{_includedir}
+mkdir -p %{buildroot}/%{_libdir}/pkgconfig
+cat > %{buildroot}/%{_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
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%{_libdir}/*.so.*
+
+%files devel
+%manifest %{name}.manifest
+%{_includedir}/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc