libsigsegv/libsigsegv.spec

178 lines
4.2 KiB
RPMSpec
Raw Normal View History

2008-09-29 18:30:46 +00:00
%define multilib_arches i386 x86_64 ppc ppc64 s390 s390x sparcv9 sparc64
Summary: Library for handling page faults in user mode
Name: libsigsegv
2009-02-18 16:06:21 +00:00
Version: 2.6
Release: 4%{?dist}
2007-08-12 02:09:59 +00:00
License: GPLv2+
URL: http://libsigsegv.sourceforge.net/
Source0: http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source1: sigsegv-wrapper.h
%description
This is a library for handling page faults in user mode. A page fault
occurs when a program tries to access to a region of memory that is
currently not available. Catching and handling a page fault is a useful
technique for implementing:
2007-08-12 02:09:59 +00:00
- pageable virtual memory
- memory-mapped access to persistent databases
- generational garbage collectors
- stack overflow handlers
- distributed shared memory
%package devel
Summary: Development libraries and header files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
2007-08-12 02:09:59 +00:00
%{summary}.
%package static
Summary: Static libraries for %{name}
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
%{summary}.
%prep
%setup -q
%build
%configure \
--enable-shared \
--enable-static
make %{?_smp_mflags}
%install
2008-08-04 14:30:52 +00:00
rm -rf %{buildroot}
2008-08-04 14:30:52 +00:00
make install DESTDIR=%{buildroot}
%ifarch %{multilib_arches}
# hack to allow parallel installation on 32-bit and 64-bit
mv %{buildroot}%{_includedir}/sigsegv.h \
%{buildroot}%{_includedir}/sigsegv-%{_arch}.h
install -p -m644 %{SOURCE1} %{buildroot}%{_includedir}/sigsegv.h
%endif
2008-08-04 14:30:52 +00:00
rm -f %{buildroot}%{_libdir}/lib*.la
%if 0%{?fedora} > 11
pushd %{buildroot}%{_libdir}
mkdir ../../%{_lib}
mv libsigsegv.so.0* ../../%{_lib}/
ln -sf ../../%{_lib}/libsigsegv.so.0 %{buildroot}%{_libdir}/libsigsegv.so
popd
%endif
2008-08-04 14:30:52 +00:00
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
2008-08-04 14:30:52 +00:00
rm -rf %{buildroot}
%files
2007-08-12 02:09:59 +00:00
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
%if 0%{?fedora} > 11
/%{_lib}/libsigsegv.so.0*
%else
%{_libdir}/libsigsegv.so.0*
%endif
%files devel
2007-08-12 02:09:59 +00:00
%defattr(-,root,root,-)
%{_libdir}/libsigsegv.so
%{_includedir}/sigsegv.h
%ifarch %{multilib_arches}
%{_includedir}/sigsegv-%{_arch}.h
%endif
%files static
%defattr(-,root,root,-)
%{_libdir}/libsigsegv.a
%changelog
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Jul 16 2009 Rex Dieter <rdieter@fedoraproject.org> - 2.6-3
- move libsigsegv.so.* to /lib (#512219, F-12+)
- %%doc: -ChangeLog, +COPYING
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-18 16:06:21 +00:00
* Wed Feb 18 2009 Rex Dieter <rdieter@fedoraproject.org> 2.6-1
- libsigsegv-2.6 (#486090)
2008-09-29 18:30:46 +00:00
* Mon Sep 29 2008 Rex Dieter <rdieter@fedoraproject.org> 2.4-7
- multilib (sparc) fixes
* Fri Feb 22 2008 Rex Dieter <rdieter@fedoraproject.org> 2.4-6
- multiarch conflicts (#342391)
- -static subpkg
2008-02-19 21:24:01 +00:00
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.4-5
- Autorebuild for GCC 4.3
2007-08-22 23:47:20 +00:00
* Wed Aug 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.4-4
- respin (ppc32)
2007-08-12 02:09:59 +00:00
* Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.4-3
- License: GPLv2+
2006-08-29 18:38:18 +00:00
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.4-2
- fc6 respin
2006-07-20 11:34:31 +00:00
* Thu Jul 20 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.4-1
- 2.4
2006-04-28 12:41:55 +00:00
* Fri Apr 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.3-1
- 2.3
2006-03-01 16:00:06 +00:00
* Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net>
2006-02-10 13:33:04 +00:00
- fc5: gcc/glibc respin
* Thu Oct 06 2005 Rex Dieter <rexdieter[AT]users.sf.net> - 2.2-1
- 2.2
- omit .la file(s)
- include (tiny) static lib
2005-05-22 23:57:28 +00:00
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 2.1
- rebuild on all arches
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt
* Thu Jul 22 2004 Rex Dieter <rexdieter at sf.net> 0:2.1-0.fdr.2
- add URL: tag
- make check
* Mon Apr 12 2004 Rex Dieter <rexdieter at sf.net> 0:2.1-0.fdr.1
- 2.1
- cleanup macro usage
- -devel: Requires: %%name
* Thu Oct 02 2003 Rex Dieter <rexdieter at sf.net> 0:2.0-0.fdr.1
- first try.