SHA256
1
0
forked from pool/racket

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
This commit is contained in:
Kristoffer Gronlund 2016-07-30 07:25:19 +00:00 committed by Git OBS Bridge
parent dc21c5d631
commit 533e2da395
2 changed files with 30 additions and 24 deletions

View File

@ -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 Mon Jul 25 00:10:49 UTC 2016 - kgronlund@suse.com

View File

@ -60,9 +60,9 @@ BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
Provides: %{name}-drracket = %{version}-%{release} Provides: %name-drracket = %version-%release
Provides: %{name}-games = %{version}-%{release} Provides: %name-games = %version-%release
Provides: %{name}-webserver = %{version}-%{release} Provides: %name-webserver = %version-%release
# maggia has this # maggia has this
# Disable the debug package since otherwise a build would create the following # Disable the debug package since otherwise a build would create the following
@ -71,7 +71,7 @@ Provides: %{name}-webserver = %{version}-%{release}
# /usr/bin/mzscheme # /usr/bin/mzscheme
# and /usr/bin/mred # and /usr/bin/mred
# this should be set from the obs # this should be set from the obs
#%%define debug_package %%{nil} #%%define debug_package %%nil
%description %description
Racket (formerly called PLT Scheme) is a multi-paradigm programming language Racket (formerly called PLT Scheme) is a multi-paradigm programming language
@ -86,7 +86,7 @@ semantics.
%package devel %package devel
Summary: Development header files for Racket Summary: Development header files for Racket
Group: Development/Languages/Scheme Group: Development/Languages/Scheme
Requires: %{name} = %{version}-%{release} Requires: %name = %version-%release
Requires: glibc-devel Requires: glibc-devel
Requires: libffi-devel Requires: libffi-devel
@ -104,36 +104,35 @@ cp %{S:2} src/.
%build %build
cd src cd src
%configure --enable-shared --disable-static --docdir="%_defaultdocdir/%name" --collectsdir="%_datadir/%name/collects" --disable-strip --enable-places --enable-lt="/usr/bin/libtool" %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
%{__make} %{?_smp_mflags} VERBOSE=1
%install %install
cd src cd src
# use the following if setting extra plt_setup options # 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 " # export PLT_SETUP_OPTIONS="-j 1 "
install -d %buildroot/%_datadir/doc/%name/ install -d %buildroot/%_datadir/doc/%name/
%make_install %make_install
find %buildroot -size 0 | xargs rm -f find %buildroot -type f -size 0 -delete
# we do not need *.la and *.a files # we do not need *.la and *.a files
find %{buildroot}%{_libdir} -name "*.la" -delete find %buildroot%_libdir -name "*.la" -delete
find %{buildroot}%{_libdir} -name "*.a" -delete find %buildroot%_libdir -name "*.a" -delete
install -Dm 644 %{S:2} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} 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 %_builddir/%name-%version/share/pkgs/drracket/drracket/drracket.png %buildroot%_datadir/pixmaps/drracket.png
# rewrite path in .desktop files # 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 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 %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 %post
/sbin/ldconfig /sbin/ldconfig
@ -175,14 +174,14 @@ install -Dm 644 %{_builddir}/%{name}-%{version}/share/pkgs/drracket/drracket/drr
%_libdir/%name/starter %_libdir/%name/starter
%_libdir/%name/gracket %_libdir/%name/gracket
%_libdir/%name/*.rktd %_libdir/%name/*.rktd
%{_mandir}/man1/mz* %_mandir/man1/mz*
%{_mandir}/man1/racket* %_mandir/man1/racket*
%{_mandir}/man1/raco* %_mandir/man1/raco*
%{_mandir}/man1/setup-plt* %_mandir/man1/setup-plt*
%{_mandir}/man1/drracket* %_mandir/man1/drracket*
%{_mandir}/man1/gracket* %_mandir/man1/gracket*
%{_mandir}/man1/mred* %_mandir/man1/mred*
%{_mandir}/man1/plt-help* %_mandir/man1/plt-help*
%dir %_libdir/%name %dir %_libdir/%name
%dir %_datadir/%name %dir %_datadir/%name
%dir %_sysconfdir/bash_completion.d/ %dir %_sysconfdir/bash_completion.d/
@ -197,7 +196,7 @@ install -Dm 644 %{_builddir}/%{name}-%{version}/share/pkgs/drracket/drracket/drr
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%_includedir/%name/* %_includedir/%name/*
%{_libdir}/%{name}/buildinfo %_libdir/%name/buildinfo
%dir %_includedir/%name %dir %_includedir/%name
%_datadir/%name/pkgs/mzscheme-lib/mzscheme/examples/* %_datadir/%name/pkgs/mzscheme-lib/mzscheme/examples/*