[Tizen-submit] 2582: New package Tizen:2.1:Base/libcap

noreply at tizen.org noreply at tizen.org
Tue Apr 23 10:34:45 GMT 2013


Hi,
Adding new package libcap in project Tizen:2.1:Base. 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/libcap
Tag: submit/tizen_2.1/20130423.103316
Commit: 4f3a519 Tizen 2.1 base

Thank You,
Jinkun Jang

[This message was auto-generated]

---

Request: #2582

  submit:       Tizen:2.1:Base:build/libcap(cleanup) -> Tizen:2.1:Base


Message:
Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: external/libcap
Tag: submit/tizen_2.1/20130423.103316
Commit: 4f3a519 Tizen 2.1 base

State:   new        2013-04-23T03:04:44 tizenrobot
Comment: <no comment>
new:
----
  libcap-2.21.tar.gz
  libcap.spec

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

++++++ new spec file:
--- libcap.spec
+++ libcap.spec
@@ -0,0 +1,72 @@
+#
+# Please submit bugfixes or comments via http://bugs.meego.com/
+#
+
+Name:           libcap
+Version:        2.21
+Release:        1
+VCS:        external/libcap#2.1_release-0-g4f3a519
+Summary:        Library for getting and setting POSIX
+Source:         http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.gz
+
+License:        LGPLv2+
+Url:            http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
+Group:          System/Libraries
+BuildRequires:  libattr-devel
+
+%description
+libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
+draft 15 capabilities.
+
+%package devel
+Summary:        Development files for libcap
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+
+%description devel
+Development files (Headers, libraries for static linking, etc) for libcap.
+
+libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
+draft 15 capabilities.
+
+Install libcap-devel if you want to develop or compile applications using
+libcap.
+
+%prep
+%setup -q
+
+%build
+# libcap can not be build with _smp_mflags:
+make PREFIX=%{_prefix} LIBDIR=%{_lib} SBINDIR=%{_sbindir} \
+     INCDIR=%{_includedir} MANDIR=%{_mandir} COPTFLAG="%{optflags}"
+
+%install
+make RAISE_SETFCAP=no install DESTDIR=%{buildroot} \
+             LIBDIR=%{buildroot}/%{_lib} \
+             SBINDIR=%{buildroot}/%{_sbindir} \
+             INCDIR=%{buildroot}/%{_includedir} \
+             MANDIR=%{buildroot}/%{_mandir}/ \
+             COPTFLAG="%{optflags}"
+
+# remove static lib
+rm -f %{buildroot}/%{_lib}/libcap.a
+
+chmod +x %{buildroot}/%{_lib}/*.so.*
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%docs_package
+
+%files
+%defattr(-,root,root,-)
+/%{_lib}/*.so.*
+%{_sbindir}/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+/%{_lib}/*.so
+%{_mandir}/*
+

other changes:

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


More information about the Tizen-submit mailing list