rpms/librtas/devel librtas-1.3.2-mode.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 librtas.spec, 1.11, 1.12 sources, 1.5, 1.6 librtas-1.2.4-no_syscall1.patch, 1.1, NONE

David Cantrell (dcantrel) fedora-extras-commits at redhat.com
Sat Sep 15 19:40:12 UTC 2007


Author: dcantrel

Update of /cvs/pkgs/rpms/librtas/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32047

Modified Files:
	.cvsignore librtas.spec sources 
Added Files:
	librtas-1.3.2-mode.patch 
Removed Files:
	librtas-1.2.4-no_syscall1.patch 
Log Message:
* Mon Sep 10 2007 David Cantrell <dcantrell at redhat.com> - 1.3.2-1
- Upgraded to librtas-1.3.2
- Cleaned up spec file to conform to Fedora packaging guidelines


librtas-1.3.2-mode.patch:

--- NEW FILE librtas-1.3.2-mode.patch ---
diff -up librtas-1.3.2/librtas_src/syscall_rmo.c.mode librtas-1.3.2/librtas_src/syscall_rmo.c
--- librtas-1.3.2/librtas_src/syscall_rmo.c.mode	2007-08-06 12:02:34.000000000 -0400
+++ librtas-1.3.2/librtas_src/syscall_rmo.c	2007-09-05 17:03:10.000000000 -0400
@@ -117,7 +117,7 @@ static int acquire_file_lock(off_t start
 
 	/* Lazily open lock file */
 	if (wa_config.lockfile_fd < 0) {
-		wa_config.lockfile_fd = open(lockfile_path, O_CREAT | O_RDWR);
+		wa_config.lockfile_fd = open(lockfile_path, O_CREAT | O_RDWR, 0600);
 		if (wa_config.lockfile_fd < 0) {
 			dbg1("could not open lockfile %s\n", lockfile_path);
 			return RTAS_IO_ASSERT;


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/librtas/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore	31 Mar 2007 02:53:39 -0000	1.4
+++ .cvsignore	15 Sep 2007 19:39:40 -0000	1.5
@@ -1 +1 @@
-librtas-1.2.4.tar.gz
+librtas-1.3.2.tar.gz


Index: librtas.spec
===================================================================
RCS file: /cvs/pkgs/rpms/librtas/devel/librtas.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- librtas.spec	21 Aug 2007 15:56:30 -0000	1.11
+++ librtas.spec	15 Sep 2007 19:39:40 -0000	1.12
@@ -1,14 +1,16 @@
-Summary: Libraries to provide access to RTAS calls and RTAS events.
-Name: librtas
-Version: 1.2.4
-Release: 4%{?dist}
-URL: http://librtas.ozlabs.org
-License: IBM Common Public License (CPL) v1.0
-Group: System Environment/Libraries
-Source: http://librtas.ozlabs.org/releases/librtas-%{version}.tar.gz
-Patch0: librtas-1.2.4-no_syscall1.patch
+Summary: Libraries to provide access to RTAS calls and RTAS events
+Name:    librtas
+Version: 1.3.2
+Release: 1%{?dist}
+URL:     http://librtas.ozlabs.org
+License: IBM
+Group:   System Environment/Libraries
 
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+Source: http://librtas.ozlabs.org/releases/%{name}-%{version}.tar.gz
+
+Patch0: %{name}-1.3.2-mode.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 ExclusiveArch: ppc ppc64
 
 %description
@@ -22,48 +24,52 @@
 the contents of RTAS events.
 
 %package devel
-Summary: Static libraries and header files for librtas development.
-Group: Development/Libraries
-Requires: librtas = %{version}
+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 and static libraries
-necessary for developing programs using libdaemon.
+The librtas-devel packages contains the header files necessary for
+developing programs using libdaemon.
 
 %prep
-%setup 
-%patch0 -p1 -b .no_syscall
+%setup
+%patch0 -p1 -b .mode
 
 %build
-make CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
-
+%{__make} CFLAGS="%{optflags} -fPIC -DPIC" %{?_smp_mflags}
 
 %install
-make DESTDIR=$RPM_BUILD_ROOT LIB_DIR=%{_libdir} install
-rm -rf $RPM_BUILD_ROOT/usr/share/doc
+%{__make} install DESTDIR=%{buildroot} LIB_DIR=%{_libdir}
+%{__rm} -rf %{buildroot}%{_datadir}/doc
 
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
 
 %files
 %defattr(-, root, root, -)
-%doc COPYRIGHT README
+%doc COPYRIGHT README Changelog
 %{_libdir}/librtas.so.%{version}
 %{_libdir}/librtasevent.so.%{version}
 
 %files devel
 %defattr(-, root, root, -)
-%doc COPYRIGHT README
-%{_libdir}/*.so
-%{_libdir}/*.a
-/usr/include/*
+%{_libdir}/librtas.so
+%{_libdir}/librtasevent.so
+%{_includedir}/librtas.h
+%{_includedir}/librtasevent.h
+%{_includedir}/librtasevent_v4.h
+%{_includedir}/librtasevent_v6.h
 
 %changelog
+* Mon Sep 10 2007 David Cantrell <dcantrell at redhat.com> - 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 <dcantrell at redhat.com> - 1.2.4-4
 - Rebuild
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/librtas/devel/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- sources	31 Mar 2007 02:58:02 -0000	1.5
+++ sources	15 Sep 2007 19:39:40 -0000	1.6
@@ -1 +1 @@
-2e2a2b10ee65deb9b99f88f1502656ce  librtas-1.2.4.tar.gz
+0a3705d4983fbb18a1b98cbe15032318  librtas-1.3.2.tar.gz


--- librtas-1.2.4-no_syscall1.patch DELETED ---




More information about the fedora-extras-commits mailing list