From 533e2da3951d388ba8717ff423e101530f857c9c803941a161055508bdcbb075 Mon Sep 17 00:00:00 2001 From: Kristoffer Gronlund Date: Sat, 30 Jul 2016 07:25:19 +0000 Subject: [PATCH] Accepting request 415822 from home:jengelh:branches:devel:languages:misc - Guard 0-size deletion by -type f, as other types can have size 0 too. Run spec-beautifier to bring (almost) all macro uses into same style. OBS-URL: https://build.opensuse.org/request/show/415822 OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/racket?expand=0&rev=19 --- racket.changes | 7 +++++++ racket.spec | 47 +++++++++++++++++++++++------------------------ 2 files changed, 30 insertions(+), 24 deletions(-) diff --git a/racket.changes b/racket.changes index fbb5047..077e1a6 100644 --- a/racket.changes +++ b/racket.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jul 29 09:00:45 UTC 2016 - jengelh@inai.de + +- Guard 0-size deletion by -type f, as other types can have + size 0 too. Run spec-beautifier to bring (almost) all macro uses + into same style. + ------------------------------------------------------------------- Mon Jul 25 00:10:49 UTC 2016 - kgronlund@suse.com diff --git a/racket.spec b/racket.spec index 8e24edd..c51fc0e 100644 --- a/racket.spec +++ b/racket.spec @@ -60,9 +60,9 @@ BuildRequires: pkgconfig(xmu) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(zlib) -Provides: %{name}-drracket = %{version}-%{release} -Provides: %{name}-games = %{version}-%{release} -Provides: %{name}-webserver = %{version}-%{release} +Provides: %name-drracket = %version-%release +Provides: %name-games = %version-%release +Provides: %name-webserver = %version-%release # maggia has this # Disable the debug package since otherwise a build would create the following @@ -71,7 +71,7 @@ Provides: %{name}-webserver = %{version}-%{release} # /usr/bin/mzscheme # and /usr/bin/mred # this should be set from the obs -#%%define debug_package %%{nil} +#%%define debug_package %%nil %description Racket (formerly called PLT Scheme) is a multi-paradigm programming language @@ -86,7 +86,7 @@ semantics. %package devel Summary: Development header files for Racket Group: Development/Languages/Scheme -Requires: %{name} = %{version}-%{release} +Requires: %name = %version-%release Requires: glibc-devel Requires: libffi-devel @@ -104,36 +104,35 @@ cp %{S:2} src/. %build cd src -%configure --enable-shared --disable-static --docdir="%_defaultdocdir/%name" --collectsdir="%_datadir/%name/collects" --disable-strip --enable-places --enable-lt="/usr/bin/libtool" - -%{__make} %{?_smp_mflags} VERBOSE=1 +%configure --enable-shared --disable-static --docdir="%_defaultdocdir/%name" --collectsdir="%_datadir/%name/collects" --disable-strip --enable-places --enable-lt="%_bindir/libtool" +make %{?_smp_mflags} VERBOSE=1 %install cd src # use the following if setting extra plt_setup options -# export LD_LIBRARY_PATH=%%buildroot%%{_libdir} +# export LD_LIBRARY_PATH=%%buildroot%%_libdir # export PLT_SETUP_OPTIONS="-j 1 " install -d %buildroot/%_datadir/doc/%name/ %make_install -find %buildroot -size 0 | xargs rm -f +find %buildroot -type f -size 0 -delete # we do not need *.la and *.a files -find %{buildroot}%{_libdir} -name "*.la" -delete -find %{buildroot}%{_libdir} -name "*.a" -delete +find %buildroot%_libdir -name "*.la" -delete +find %buildroot%_libdir -name "*.a" -delete -install -Dm 644 %{S:2} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} -install -Dm 644 %{_builddir}/%{name}-%{version}/share/pkgs/drracket/drracket/drracket.png %{buildroot}%{_datadir}/pixmaps/drracket.png +install -Dm 644 %{S:2} %buildroot%_sysconfdir/bash_completion.d/%name +install -Dm 644 %_builddir/%name-%version/share/pkgs/drracket/drracket/drracket.png %buildroot%_datadir/pixmaps/drracket.png # rewrite path in .desktop files %suse_update_desktop_file -c drracket "DrRacket" "DrRacket is an interactive, integrated, graphical programming environment for the Racket programming languages" "%_bindir/drracket -singleInstance" "drracket" Development IDE %suse_update_desktop_file -c slideshow "Slideshow" "Slideshow is a Racket-based tool for writing slide presentations as programs" "%_bindir/slideshow" "drracket" Development Documentation -%fdupes %{buildroot}%{_prefix} +%fdupes %buildroot%_prefix %post /sbin/ldconfig @@ -175,14 +174,14 @@ install -Dm 644 %{_builddir}/%{name}-%{version}/share/pkgs/drracket/drracket/drr %_libdir/%name/starter %_libdir/%name/gracket %_libdir/%name/*.rktd -%{_mandir}/man1/mz* -%{_mandir}/man1/racket* -%{_mandir}/man1/raco* -%{_mandir}/man1/setup-plt* -%{_mandir}/man1/drracket* -%{_mandir}/man1/gracket* -%{_mandir}/man1/mred* -%{_mandir}/man1/plt-help* +%_mandir/man1/mz* +%_mandir/man1/racket* +%_mandir/man1/raco* +%_mandir/man1/setup-plt* +%_mandir/man1/drracket* +%_mandir/man1/gracket* +%_mandir/man1/mred* +%_mandir/man1/plt-help* %dir %_libdir/%name %dir %_datadir/%name %dir %_sysconfdir/bash_completion.d/ @@ -197,7 +196,7 @@ install -Dm 644 %{_builddir}/%{name}-%{version}/share/pkgs/drracket/drracket/drr %files devel %defattr(-,root,root,-) %_includedir/%name/* -%{_libdir}/%{name}/buildinfo +%_libdir/%name/buildinfo %dir %_includedir/%name %_datadir/%name/pkgs/mzscheme-lib/mzscheme/examples/*