From c6928bd48fdd33fa4c8c01f93915b782b34548ab Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Jul 30 2013 13:41:16 +0000 Subject: import librtas-1.3.8-2.el7.src.rpm --- diff --git a/.librtas.metadata b/.librtas.metadata new file mode 100644 index 0000000..5f4e0ff --- /dev/null +++ b/.librtas.metadata @@ -0,0 +1 @@ +98ab148b4d3f089cc86938dc01b2c8a98bc6210c SOURCES/librtas-1.3.8.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/librtas-1.3.4-libdir.patch b/SOURCES/librtas-1.3.4-libdir.patch new file mode 100644 index 0000000..f1cb553 --- /dev/null +++ b/SOURCES/librtas-1.3.4-libdir.patch @@ -0,0 +1,21 @@ +diff -up librtas-1.3.5/rules.mk.libdir librtas-1.3.5/rules.mk +--- librtas-1.3.5/rules.mk.libdir 2010-01-28 20:04:30.000000000 +0100 ++++ librtas-1.3.5/rules.mk 2011-08-09 15:47:16.842521606 +0200 +@@ -145,7 +145,7 @@ define install_sbin + endef + + define install_lib +- $(call install_files,$1,755,$2/$(LIB_DIR)$(call is_lib64,$1)) ++ $(call install_files,$1,755,$2/$(LIB_DIR)) + endef + + define install_inc +@@ -188,7 +188,7 @@ define uninstall_sbin + endef + + define uninstall_lib +- $(call uninstall_files,$1,$2/$(LIB_DIR)$(call is_lib64,$1)) ++ $(call uninstall_files,$1,$2/$(LIB_DIR)) + endef + + define uninstall_inc diff --git a/SOURCES/librtas-1.3.6-ln.patch b/SOURCES/librtas-1.3.6-ln.patch new file mode 100644 index 0000000..f1714c5 --- /dev/null +++ b/SOURCES/librtas-1.3.6-ln.patch @@ -0,0 +1,55 @@ +diff -up librtas-1.3.6/libofdt_src/Makefile.ln librtas-1.3.6/libofdt_src/Makefile +--- librtas-1.3.6/libofdt_src/Makefile.ln 2011-02-07 11:53:34.000000000 -0500 ++++ librtas-1.3.6/libofdt_src/Makefile 2011-08-11 06:45:39.948735397 -0400 +@@ -26,12 +26,12 @@ all: $(LIBOFDT_OBJS) $(LIBOFDT_HDRS) + install: + @$(call install_lib,$(LIBOFDT),$(DESTDIR)) + @$(call install_inc,$(LIBOFDT_SHIP_HDR),$(DESTDIR)) +- @ln -sf $(LIBOFDT) $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBOFDT))/$(LIBOFDT_SONAME) ++ @ln -sf $(LIBOFDT) $(DESTDIR)/$(LIB_DIR)/$(LIBOFDT_SONAME) + + uninstall: + @$(call uninstall_lib,$(LIBOFDT),$(DESTDIR)) + @$(call uninstall_inc,$(LIBOFDT_SHIP_HDR),$(DESTDIR)) +- @rm -f $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBOFDT))/$(LIBOFDT_SONAME) ++ @rm -f $(DESTDIR)/$(LIB_DIR)/$(LIBOFDT_SONAME) + + clean: + @echo "Cleaning up $(WORK_DIR) files..." +diff -up librtas-1.3.6/librtasevent_src/Makefile.ln librtas-1.3.6/librtasevent_src/Makefile +--- librtas-1.3.6/librtasevent_src/Makefile.ln 2011-02-07 11:53:34.000000000 -0500 ++++ librtas-1.3.6/librtasevent_src/Makefile 2011-08-11 06:47:03.377757115 -0400 +@@ -27,13 +27,12 @@ all: $(LIBRE_OBJS) $(HEADERS) + install: + @$(call install_lib,$(LIBRE),$(DESTDIR)) + @$(call install_inc,$(LIBRE_HDRS),$(DESTDIR)) +- @ln -sf $(LIBRE) $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBRE))/$(LIBRE_SONAME) +- @ln -sf $(LIBRE) $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBRE))/$(LIBRE_SONAME).1 ++ @ln -sf $(LIBRE) $(DESTDIR)/$(LIB_DIR)/$(LIBRE_SONAME) + + uninstall: + @$(call uninstall_lib,$(LIBRE),$(DESTDIR)) + @$(call uninstall_inc,$(LIBRE_HDRS),$(DESTDIR)) +- @rm -f $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBRE))/$(LIBRE_SONAME) ++ @rm -f $(DESTDIR)/$(LIB_DIR)/$(LIBRE_SONAME) + + clean: + @echo "Cleaning up $(WORK_DIR) files..." +diff -up librtas-1.3.6/librtas_src/Makefile.ln librtas-1.3.6/librtas_src/Makefile +--- librtas-1.3.6/librtas_src/Makefile.ln 2011-02-07 11:53:34.000000000 -0500 ++++ librtas-1.3.6/librtas_src/Makefile 2011-08-11 06:45:39.950735397 -0400 +@@ -32,12 +32,12 @@ librtas_static: $(LIBRTAS_OBJS) $(HEADER + install: + @$(call install_lib,$(LIBRTAS),$(DESTDIR)) + @$(call install_inc,$(HEADERS),$(DESTDIR)) +- @ln -sf $(LIBRTAS) $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBRTAS))/$(LIBRTAS_SONAME) ++ @ln -sf $(LIBRTAS) $(DESTDIR)/$(LIB_DIR)/$(LIBRTAS_SONAME) + + uninstall: + @$(call uninstall_lib,$(LIBRTAS),$(DESTDIR)) + @$(call uninstall_inc,$(LIBRTAS_HDR),$(DESTDIR)) +- @rm -f $(DESTDIR)/$(LIB_DIR)$(call is_lib64,$(LIBRTAS))/$(LIBRTAS_SONAME) ++ @rm -f $(DESTDIR)/$(LIB_DIR)/$(LIBRTAS_SONAME) + + clean: + @echo "Cleaning up $(WORK_DIR) files..." diff --git a/SPECS/librtas.spec b/SPECS/librtas.spec new file mode 100644 index 0000000..1163826 --- /dev/null +++ b/SPECS/librtas.spec @@ -0,0 +1,149 @@ +Summary: Libraries to provide access to RTAS calls and RTAS events +Name: librtas +Version: 1.3.8 +Release: 2%{?dist} +URL: http://librtas.ozlabs.org +License: CPL +Group: System Environment/Libraries + +Source: http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}.tar.gz +#Fedora specific patch +Patch0: %{name}-1.3.4-libdir.patch +Patch1: %{name}-1.3.6-ln.patch + +ExclusiveArch: ppc ppc64 + +%description +The librtas shared library provides userspace with an interface +through which certain RTAS calls can be made. The library uses +either of the RTAS User Module or the RTAS system call to direct +the kernel in making these calls. + +The librtasevent shared library provides users with a set of +definitions and common routines useful in parsing and dumping +the contents of RTAS events. + +%package devel +Summary: C header files for development with librtas +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The librtas-devel packages contains the header files necessary for +developing programs using librtas. + +%prep +%setup +%patch0 -p1 -b .libdir +%patch1 -p1 -b .ln + +%build +%{__make} CFLAGS="%{optflags} -fPIC -DPIC -I." %{?_smp_mflags} + +%install +mkdir -p %{buildroot}/%{_libdir} +%{__make} install DESTDIR=%{buildroot} LIB_DIR=%{_libdir} INSTALL="install -p" +%{__rm} -rf %{buildroot}%{_datadir}/doc + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc COPYRIGHT README Changelog +%{_libdir}/librtas.so.%{version} +%{_libdir}/librtasevent.so.%{version} +%{_libdir}/libofdt.so.%{version} + +%files devel +%defattr(-,root,root,-) +%{_libdir}/librtas.so +%{_libdir}/librtasevent.so +%{_includedir}/librtas.h +%{_includedir}/librtasevent.h +%{_includedir}/librtasevent_v4.h +%{_includedir}/librtasevent_v6.h +%{_includedir}/common.h +%{_includedir}/libofdt.h +%{_libdir}/libofdt.so + +%changelog +* Tue Jul 30 2013 Filip Kocina - 1.3.8-2 +- Source URL fix + +* Thu May 16 2013 Vasant Hegde - 1.3.8 +- Update to latest upstream 1.3.8 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.3.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 1.3.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.3.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Aug 11 2011 Jiri Skala 1.3.6-1 +- update to latest upstream 1.3.6 + +* Mon Aug 08 2011 Jiri Skala 1.3.5-1 +- update to latest upstream 1.3.5 + +* Tue Feb 08 2011 Fedora Release Engineering - 1.3.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Sep 11 2010 Parag Nemade 2.30.3-3 +- Merge-review cleanup (#226059) + +* Mon Sep 21 2009 Roman Rakus - 1.3.4-1 +- Upstream release 1.3.4 + +* Sat Jul 25 2009 Fedora Release Engineering - 1.3.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.3.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 08 2008 David Cantrell - 1.3.3-3 +- Rebuild for gcc-4.3 + +* Tue Dec 18 2007 David Cantrell - 1.3.3-2 +- Spec cleanups + +* Tue Dec 18 2007 David Cantrell - 1.3.3-1 +- Upgraded to librtas-1.3.3 (#253522) + +* Mon Sep 10 2007 David Cantrell - 1.3.2-1 +- Upgraded to librtas-1.3.2 +- Cleaned up spec file to conform to Fedora packaging guidelines + +* Tue Aug 21 2007 David Cantrell - 1.2.4-4 +- Rebuild + +* Sat Mar 31 2007 David Woodhouse - 1.2.4-3 +- Install libraries into /usr/lib64 on PPC64. + +* Tue Aug 01 2006 Paul Nasrat - 1.2.4-2 +- Backport syscall fix from upstream + +* Wed Jul 12 2006 Jesse Keating - 1.2.4-1.2.2 +- rebuild + +* Fri Feb 10 2006 Jesse Keating - 1.2.4-1.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 1.2.4-1.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Thu Nov 03 2005 Paul Nasrat 1.2.4-1 +- Update to latest version + +* Thu Nov 03 2005 Paul Nasrat 1.2.2-1 +- Initial release