Search
j0ke.net Open Build Service
>
Projects
>
mozilla
>
mozilla-nspr
> mozilla-nspr.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mozilla-nspr.spec of Package mozilla-nspr
# # spec file for package mozilla-nspr (Version 4.7.2) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: mozilla-nspr BuildRequires: gcc-c++ License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) Version: 4.7.2 Release: 1 Summary: Netscape Portable Runtime URL: http://www.mozilla.org/projects/nspr/ Group: System/Libraries Source: nspr-%{version}.tar.bz2 Patch1: prdtoa.patch Patch3: pkgconfig.patch # Remove remnant traces form the packages split. Provides: libnspr4 = %{version}-%{release} Obsoletes: libnspr4 <= %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description NSPR provides platform independence for non-GUI operating system facilities. These facilities include threads, thread synchronization, normal file and network I/O, interval timing and calendar time, basic memory management (malloc and free), and shared library linking. Authors: -------- Mozilla Foundation <drivers@mozilla.org> %package devel License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) Summary: Netscape Portable Runtime development files Group: Development/Libraries/Other Requires: mozilla-nspr = %{version} %description devel NSPR provides platform independence for non-GUI operating system facilities. These facilities include threads, thread synchronization, normal file and network I/O, interval timing and calendar time, basic memory management (malloc and free), and shared library linking. Authors: -------- Mozilla Foundation <drivers@mozilla.org> %prep %setup -n nspr-%{version} -q cd mozilla %patch1 %patch3 -p2 %build cd mozilla/nsprpub export CFLAGS="$RPM_OPT_FLAGS -g -fno-strict-aliasing" ./configure --enable-optimize="$CFLAGS" \ --disable-debug \ %ifarch x86_64 --enable-64bit \ %endif --libdir=%{_libdir} \ --includedir=%{_includedir}/nspr4 \ --prefix=%{_prefix} make %{?jobs:-j%jobs} %install mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_libdir}/nspr mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig mkdir -p $RPM_BUILD_ROOT%{_includedir}/nspr4 cp mozilla/nsprpub/config/nspr-config $RPM_BUILD_ROOT%{_bindir}/ cp mozilla/nsprpub/config/nspr.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig cp -L mozilla/nsprpub/dist/lib/*.so $RPM_BUILD_ROOT/%{_libdir} cp -L mozilla/nsprpub/dist/lib/*.a $RPM_BUILD_ROOT/%{_libdir}/nspr/ cp -rL mozilla/nsprpub/dist/include/nspr/* $RPM_BUILD_ROOT/%{_includedir}/nspr4/ # #31667 chmod -x $RPM_BUILD_ROOT/%{_includedir}/nspr4/prvrsion.h %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root) %{_libdir}/*.so %files devel %defattr(-, root, root) %{_bindir}/nspr-config %{_libdir}/pkgconfig/nspr.pc %{_includedir}/nspr4/ %exclude %{_includedir}/nspr4/md/* %{_libdir}/nspr/