Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Simmphonie
3dfsb
3dfsb.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3dfsb.spec of Package 3dfsb
# # spec file # Name: 3dfsb Version: 1.2 Release: 0 License: GPL-2.0 Summary: 3D File System Browser Url: https://github.com/tomvanbraeckel/3dfsb Group: Productivity/Office/Organizers Source: %{name}-%{version}.tar.gz # Patch1: 3dfsb.patch BuildRequires: pkg-config gtk2-devel vim xdotool-devel libXtst-devel #BuildRequires: pkgconfig(SDL_stretch) BuildRequires: file-devel ImageMagick BuildRequires: libXi-devel libXmu-devel BuildRequires: freeglut-devel libSDL_image-devel libSDL-devel SDL_stretch-devel BuildRequires: gstreamer-devel gstreamer-plugins-base-devel #libgstreamer-plugins-base-devel libgstreamer-plugins-bad-devel BuildRoot: %{_tmppath}/%{name}-build %description 3D File System Browser - cleaned up and improved fork of the old tdfsb which runs on GNU/Linux and should also run on BeOS/Haiku and FreeBSD. %prep %setup -q # %patch1 %build #./compile.sh execfind () { for cmd in $*; do if "$cmd" --version > /dev/null; then echo "$cmd"; break; fi; done; } # SDL stuff SDL_CONFIG=$(execfind sdl-config sdl11-config sdl10-config sdl12-config \/boot\/develop\/tools/gnupro\/bin\/sdl-config); #SDL_CONFIG="sdl-config" echo "Using $SDL_CONFIG."; SDL_CFLAGS=$($SDL_CONFIG --cflags); # Example: -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT SDL_LIBS=$($SDL_CONFIG --libs); # Example: -L/usr/lib/x86_64-linux-gnu -lSDL GSTREAMER_CFLAGS=$(pkg-config --cflags gstreamer-1.0) # Example: -pthread -I/usr/local/include/gstreamer-1.0 -I/usr/local/lib/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include GSTREAMER_LIBS=$(pkg-config --libs gstreamer-1.0) # Example: -L/usr/local/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 # GTK is useful for debugging purposes (dumping an image to a file) #GTK_CFLAGS=$(pkg-config --cflags gtk+-2.0) #GTK_LIBS=$(pkg-config --libs gtk+-2.0) OTHER_LIBS=$(pkg-config --libs glu) # Example: -lGLU -lGL NOPKGCONFIG_LIBS="-lglut -lmagic -lm -lxdo -lX11 -lXtst" echo "Converting built-in images to XPM format with imagemagick's 'mogrify' tool..." mogrify -format xpm images/*.png echo "Converting other built-in files to .h file format with the xxd tool..." xxd -i resources/xorg.conf > resources/xorg.conf.h # On Linux, pkg-config is easier to use than sdl-config SDL_CFLAGS=$(pkg-config --cflags SDL_image); # Example: -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL SDL_LIBS=$(pkg-config --libs SDL_image); # Example: -lSDL_image -lSDL # -Wconversion fails for a non-fixable reason, IIRC... # -Werror=format-nonliteral fails when we read the command to execute from the config file and put it in an snprintf() to substitute the %s... but can't we just do a simple find and replace of the %s? warnings="-Wint-conversion -pedantic -pedantic-errors -std=c99 -Waggregate-return -Wall -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Werror -Wextra -Wfloat-equal -Wformat -Wformat-security -Wformat-y2k -Wformat=2 -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wunused" # This fails #gccopt="-static -static-libgcc" gccopt="-g" # debugging info by default gcc $i386option $gccopt $warnings $SDL_CFLAGS $GSTREAMER_CFLAGS $GTK_CFLAGS *.c -o 3dfsb $GSTREAMER_LIBS $SDL_LIBS $OTHER_LIBS $GTK_LIBS $NOPKGCONFIG_LIBS %install install -D -m 755 ./3dfsb %{buildroot}%{_bindir}/%{name} # Desktop file install -d %{buildroot}%{_datadir}/applications cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop [Desktop Entry] Type=Application Name=3D File System Browser Icon=system-file-manager Exec=3dfsb Terminal=false Categories=Qt;KDE;System;FileManager; X-SuSE-translate=false EOF %files %defattr(-,root,root) %doc README.md LICENSE CHANGELOG %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor