rpms/libowfat/EL-5 libowfat.spec,1.2,1.3

Matt Domsch mdomsch at fedoraproject.org
Fri Oct 16 03:02:41 UTC 2009


Author: mdomsch

Update of /cvs/extras/rpms/libowfat/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24502

Modified Files:
	libowfat.spec 
Log Message:
build for EL-5, drop dietlibc usage


Index: libowfat.spec
===================================================================
RCS file: /cvs/extras/rpms/libowfat/EL-5/libowfat.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- libowfat.spec	25 Jul 2009 06:22:47 -0000	1.2
+++ libowfat.spec	16 Oct 2009 03:02:41 -0000	1.3
@@ -1,7 +1,7 @@
-###%define debug_package %{nil}
+%define debug_package %{nil}
 Name:           libowfat
 Version:        0.28
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Reimplementation of libdjb 
 
 Group:          System Environment/Libraries
@@ -10,9 +10,6 @@ URL:            http://www.fefe.de/libow
 Source0:        http://dl.fefe.de/%{name}-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  dietlibc-devel
-
-
 %description
 This library is a reimplementation of libdjb, which means that it provides
 Daniel Bernstein's interfaces (with some extensions).
@@ -23,13 +20,10 @@ wrappers for socket functions, mkfifo, o
 around errno.  It also includes wrappers for Unix signal functions and a
 layer of mmap and sendfile.
 
-The library is available for use with the diet libc.
-
 
 %package        devel
 Summary:        Reimplementation of libdjb
 Group:          Development/Libraries
-Requires:       dietlibc-devel
 Provides:       %{name}-static = %{version}-%{release}
 
 
@@ -43,38 +37,25 @@ wrappers for socket functions, mkfifo, o
 around errno.  It also includes wrappers for Unix signal functions and a
 layer of mmap and sendfile.
 
-The library is available for use with the diet libc.
-
 
 %prep
 %setup -q
 
-sed -i 's|\(D_REENTRANT\)|\1 %{optflags}|' GNUmakefile
+sed -i '/^CFLAGS/d' GNUmakefile
 
 %build
 make -f GNUmakefile %{?_smp_mflags} \
-        DIET="%{_bindir}/diet" \
-        prefix="%{_prefix}/lib/dietlibc" \
-        LIBDIR="%{_prefix}/lib/dietlibc/lib-%_arch" \
-        INCLUDEDIR="%{_prefix}/lib/dietlibc/include/%{name}" 
-
+     CFLAGS="%{optflags} -I." DIET=
 
 %install
 rm -rf %{buildroot}
 
 make -f GNUmakefile install \
-        DIET="%{_bindir}/diet" \
-        prefix="%{buildroot}%{_prefix}/lib/dietlibc" \
-        LIBDIR="%{buildroot}%{_prefix}/lib/dietlibc/lib-%_arch" \
-        INCLUDEDIR="%{buildroot}%{_prefix}/lib/dietlibc/include/%{name}" \
-        MAN3DIR="%{buildroot}%{_mandir}/man3"
-
-
-%post -p /sbin/ldconfig
-
-
-%postun -p /sbin/ldconfig
-
+        CFLAGS="%{optflags}" \
+        prefix="%{buildroot}%{_prefix}" \
+        MAN3DIR="%{buildroot}%{_mandir}/man3" \
+        INCLUDEDIR="%{buildroot}%{_includedir}/%{name}" \
+        LIBDIR="%{buildroot}%{_libdir}" DIET=
 
 %clean
 rm -rf %{buildroot}
@@ -83,12 +64,15 @@ rm -rf %{buildroot}
 %files devel
 %defattr(-,root,root,-)
 %doc README TODO COPYING CHANGES
-%{_prefix}/lib/dietlibc/lib-%_arch/%{name}.a
-%{_prefix}/lib/dietlibc/include/%{name}
+%{_libdir}/*
+%{_prefix}/include/%{name}
 %{_mandir}/man3/*
 
 
 %changelog
+* Thu Oct 15 2009 Matt Domsch <mdomsch at fedoraproject.org> - 0.28-4
+- build for EL-5, drop dietlibc usage
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.28-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list