Hello community, here is the log from the commit of package mozilla-nspr for openSUSE:Factory checked in at Mon Sep 26 10:09:29 CEST 2011. -------- --- mozilla-nspr/mozilla-nspr.changes 2011-08-12 22:28:25.000000000 +0200 +++ /mounts/work_src_done/STABLE/mozilla-nspr/mozilla-nspr.changes 2011-09-21 11:09:51.000000000 +0200 @@ -1,0 +2,7 @@ +Wed Sep 21 09:01:27 UTC 2011 - wr@rosenauer.org + +- some spec file cleanup +- override the build time detection and use the last change time + instead to incorporate into the build + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mozilla-nspr.spec ++++++ --- /var/tmp/diff_new_pack.LFwrFh/_old 2011-09-26 10:09:22.000000000 +0200 +++ /var/tmp/diff_new_pack.LFwrFh/_new 2011-09-26 10:09:22.000000000 +0200 @@ -16,16 +16,16 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: mozilla-nspr -BuildRequires: gcc-c++ pkg-config -License: MPLv1.1 or GPLv2+ or LGPLv2.1+ Version: 4.8.9 Release: 1 +License: MPLv1.1 or GPLv2+ or LGPLv2.1+ Summary: Netscape Portable Runtime Url: http://www.mozilla.org/projects/nspr/ +BuildRequires: gcc-c++ +BuildRequires: pkg-config # bug437293 %ifarch ppc64 Obsoletes: mozilla-nspr-64bit @@ -34,7 +34,7 @@ Group: System/Libraries Source: ftp://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/nspr-%{version}.tar.bz2 Source1: baselibs.conf -Patch3: pkgconfig.patch +Patch: pkgconfig.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -65,11 +65,16 @@ %prep %setup -n nspr-%{version} -q cd mozilla -%patch3 -p2 +%patch -p2 %build +# set buildtime to "last-modification-time" +modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" +BUILD_STRING="$(date -u -d "${modified}" "+%%F %%T")" +BUILD_TIME="$(date -u -d "${modified}" "+%%s000000")" +# cd mozilla/nsprpub -export CFLAGS="$RPM_OPT_FLAGS" +export CFLAGS="%{optflags}" ./configure --enable-optimize="$CFLAGS" \ --disable-debug \ %ifarch x86_64 @@ -78,23 +83,23 @@ --libdir=%{_libdir} \ --includedir=%{_includedir}/nspr4 \ --prefix=%{_prefix} -make %{?jobs:-j%jobs} +make SH_DATE="$BUILD_STRING" SH_NOW="$BUILD_TIME" %{?_smp_mflags} %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/ +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_libdir}/nspr +mkdir -p %{buildroot}%{_libdir}/pkgconfig +mkdir -p %{buildroot}%{_includedir}/nspr4 +cp mozilla/nsprpub/config/nspr-config %{buildroot}%{_bindir}/ +cp mozilla/nsprpub/config/nspr.pc %{buildroot}%{_libdir}/pkgconfig +cp -L mozilla/nsprpub/dist/lib/*.so %{buildroot}%{_libdir} +cp -L mozilla/nsprpub/dist/lib/*.a %{buildroot}%{_libdir}/nspr/ +cp -rL mozilla/nsprpub/dist/include/nspr/* %{buildroot}%{_includedir}/nspr4/ # #31667 -chmod -x $RPM_BUILD_ROOT/%{_includedir}/nspr4/prvrsion.h +chmod -x %{buildroot}%{_includedir}/nspr4/prvrsion.h %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} %post -p /sbin/ldconfig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org