Add rpm packaging
authorWonYoung, Choi <wy80.choi@samsung.com>
Tue, 9 Aug 2011 08:08:37 +0000 (17:08 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 21 Aug 2012 08:29:53 +0000 (17:29 +0900)
Change-Id: I5da6fd231ed8615bfb4a2b1ee96176c9426c41a2

packaging/libhangul.spec [new file with mode: 0644]

diff --git a/packaging/libhangul.spec b/packaging/libhangul.spec
new file mode 100644 (file)
index 0000000..742d891
--- /dev/null
@@ -0,0 +1,95 @@
+# >> macros
+# << macros
+
+Name:       libhangul
+Summary:    Hangul keyboard input library
+Version:    2.1.10
+Release:    2
+Group:      System/Libraries
+License:    TBD
+Source0:    %{name}-%{version}.tar.bz2
+Requires(post):  /sbin/ldconfig
+Requires(postun):  /sbin/ldconfig
+
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+
+%description
+This library implements Hangul keyboard input with various types of Korean keyboards.  It is intended to be a base library of Korean input methods on multiple platforms.
+This package contains the shared library and the runtime data.
+
+%package data
+Summary:    Hangul keyboard input library - data
+Group:      System/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+%description data
+This package contains the architecture independent data.
+
+
+%package devel
+Summary:    Hangul keyboard input library - development files
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+%description devel
+This package contains the header files and the static library.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+# >> setup
+# << setup
+
+%build
+# >> build pre
+# << build pre
+
+%reconfigure --disable-static
+
+# Call make instruction with smp support
+make %{?jobs:-j%jobs}
+
+# >> build post
+# << build post
+%install
+rm -rf %{buildroot}
+# >> install pre
+# << install pre
+%make_install
+
+# >> install post
+# << install post
+
+%clean
+rm -rf %{buildroot}
+
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+
+%files
+%defattr(-,root,root,-)
+# >> files
+%{_libdir}/lib*.so*
+# << files
+
+
+%files data
+%defattr(-,root,root,-)
+# >> files
+%{_datadir}/libhangul/*
+# << files
+
+
+%files devel
+%defattr(-,root,root,-)
+# >> files devel
+%{_includedir}/hangul-1.0/*.h
+%{_libdir}/pkgconfig/*.pc
+# << files devel
+