add packaging submit/trunk/20130325.083303
authorAnas Nashif <anas.nashif@intel.com>
Thu, 8 Nov 2012 02:07:21 +0000 (18:07 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Thu, 8 Nov 2012 02:07:21 +0000 (18:07 -0800)
packaging/baselibs.conf [new file with mode: 0644]
packaging/libelf0.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..f106ec9
--- /dev/null
@@ -0,0 +1,4 @@
+libelf0
+  obsoletes "libelf-<targettype> <= 0.8.10"
+  provides "libelf-<targettype> <= 0.8.10"
diff --git a/packaging/libelf0.spec b/packaging/libelf0.spec
new file mode 100644 (file)
index 0000000..00b3c36
--- /dev/null
@@ -0,0 +1,59 @@
+Name:           libelf0
+Version:        0.8.13
+Release:        0
+License:        LGPL-2.1+
+Summary:        An ELF Object File Access Library
+Url:            http://www.mr511.de/software/
+Group:          System/Libraries
+Source:         libelf-%{version}.tar.bz2
+Source2:        baselibs.conf
+BuildRequires:  pkgconfig
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%description
+The libelf package contains a library for accessing ELF object files.
+Libelf allows you to access the internals of the ELF object file
+format, so you can see the different sections of an ELF file.
+
+%package devel
+Summary:        Include Files and Libraries mandatory for Development
+Group:          Development/Libraries/C and C++
+Requires:       %{name} = %{version}
+Requires:       glibc-devel,
+Conflicts:      libelf1-devel
+
+%description devel
+This package contains all necessary include files and libraries needed
+to develop applications that require these.
+
+%prep
+%setup -q -n libelf-%{version}
+
+%build
+%configure --disable-nls
+make %{?_smp_mflags}
+
+%install
+make install instroot=%{buildroot}
+# remove the wrapper includes
+rm -f %{buildroot}%{_includedir}/*.h
+# remove unneeded *.la and *.a files
+rm -f %{buildroot}%{_libdir}/*.la
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_libdir}/libelf.so.*
+
+%files devel
+%defattr(-,root,root)
+%doc README ChangeLog COPYING.LIB VERSION
+%{_libdir}/libelf.so
+%{_libdir}/libelf.a
+%{_libdir}/pkgconfig/libelf.pc
+%{_includedir}/libelf
+
+%changelog