Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mywave82
ocp
ocp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ocp.spec of Package ocp
# rpm spec file for RedHat / Fedora linux %define name ocp %define version 0.1.18 Name: %{name} Version: %{version} Release: 0 Summary: Linux port of Open Cubic Player Group: Applications/Multimedia URL: http://stian.cubic.org/coding-ocp.php Buildroot: /var/tmp/ocp-buildroot Source0: http://stian.cubic.org/ocp/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.cubic.org/pub/player/gfx/opencp25image1.zip Source2: ftp://ftp.cubic.org/pub/player/gfx/opencp25ani1.zip License: GPL-2, Creative Commons Attribution 3.0 # OCP itself is GPL-2 # The extra data provided is Creative Commons Attribute 3.0 %if 0%{?suse_version} # libmad-devel dropped due to SUSE rules # adplug-devel is not supported on vanilla SUSE BuildRequires: libmad-devel ncurses-devel zlib-devel libadplug-devel libSDL-devel libogg-devel libvorbis-devel libsidplay1-devel gcc >= 3.0-0 gcc-c++ >= 3.0-0 flac-devel desktop-file-utils hicolor-icon-theme unzip update-desktop-files %else # libmad-devel dropped due to SUSE rules BuildRequires: ncurses-devel zlib-devel adplug-devel libSDL-devel libogg-devel libvorbis-devel libsidplay-devel gcc >= 3.0-0 gcc-c++ >= 3.0-0 flac-devel desktop-file-utils hicolor-icon-theme unzip %endif %description Open Cubic Player is a music player ported from DOS. Provides a nice text-based frontend, with some few optional features in graphical. Plays modules, sids, wave and mp3 %changelog * Sat Jan 09 2010 - stian (at) nixia.no - Initial makeover of the .spec file %prep %setup -q -n %{name}-%{version} unzip $RPM_SOURCE_DIR/opencp25image1.zip unzip -o $RPM_SOURCE_DIR/opencp25ani1.zip %build CFLAGS=$RPM_OPT_FLAGS CXXFLAGS=$RPM_OPT_FLAGS ./configure --prefix=%{_prefix} --exec_prefix=%{_exec_prefix} --infodir=%{_infodir} --sysconfdir=/etc make %post if [ "$1" = "1" ] ; then # first install if [ -x /sbin/install-info ]; then install-info --dir-file=%{_infodir} %{_infodir}/ocp.info.gz || true fi fi %preun if [ "$1" = "0" ] ; then # last uninstall if [ -x /sbin/install-info ]; then install-info --delete --dir-file=%{_infodir} %{_infodir}/ocp.info.gz || true fi fi %install rm -rf %{buildroot} mkdir -p %{buildroot} make DESTDIR=%{buildroot} install %if 0%{?suse_version} %suse_update_desktop_file -n -r cubic.org-opencubicplayer AudioVideo Player %endif mkdir -p %{buildroot}%{_prefix}/share/ocp-%{version}/data cp CP* %{buildroot}%{_prefix}/share/ocp-%{version}/data %clean rm -rf %{buildroot} %files %defattr(-,root,root) %config %{_prefix}/share/ocp-%{version}/etc/ocp.ini %{_exec_prefix}/lib/ocp-%{version} %{_prefix}/bin/ocp-%{version} %{_prefix}/bin/ocp %{_prefix}/bin/ocp-curses %{_prefix}/bin/ocp-sdl %{_prefix}/bin/ocp-vcsa %{_prefix}/bin/ocp-x11 %{_prefix}/bin/ultrafix.sh %{_infodir}/ocp.info.gz %{_prefix}/share/icons/hicolor/16x16/apps/opencubicplayer.xpm %{_prefix}/share/icons/hicolor/48x48/apps/opencubicplayer.xpm %{_prefix}/share/applications/cubic.org-opencubicplayer.desktop %dir %{_prefix}/share/ocp-%{version} #%dir %{_prefix}/share/ocp-%{version}/data %dir %{_prefix}/share/ocp-%{version}/etc %{_prefix}/share/ocp-%{version}/data #data/ocp.hlp #data/CP*.TAG #data/CP*.DAT %docdir %{_prefix}/share/doc/ocp-%{version} %{_prefix}/share/doc/ocp-%{version}
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