Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mchristensen1
wf-testapps
wf-testapps.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wf-testapps.spec of Package wf-testapps
%define ver 0.5.95305 %if 0%{?fedora_version} %define env_options export MONO_SHARED_DIR=/tmp LOGNAME=abuild %endif Name: wf-testapps Version: %{ver} Release: 1 License: GNU General Public License (GPL) BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://www.mono-project.com/MoMA BuildRequires: mono-devel mono-core mono-jscript Group: Development/Languages/Mono Summary: A collection of winforms applications used mainly for testing. Source0: %{name}-%{version}.tar.bz2 Source1: LICENSE Buildarch: noarch Provides: mono(Microsoft.VisualStudio.HostingProcess.Utilities.Sync) = 8.0.0.0 %description A collection of winforms applications used mainly for testing. Some may be usefull. %prep %setup %build %{?env_options} for I in $(find -maxdepth 1 -type d); do (cd $I && make); done exit 0 %install cp %{SOURCE1} . # Rename some apps to not conflict with corutuls and rename duplicates too so that they all get installed. # find duplicates using the following command executed in the wf-testapps dir after compilation: # find -maxdepth 2 -name "*exe" | sed -e 's@.*/\([^/][^/]*exe\)@\1@' | sort | uniq -c | grep "^[[:space:]][[:space:]]*[23456789].*" # This could be done programatically...until then, add the apps here. mv rotate/test.exe rotate/rotate-test.exe mv rotate1bit4bit/test.exe rotate1bit4bit/rotate1bit4bit-test.exe mv formstest/FormsTest.exe formstest/formstest-FormsTest.exe mv forms/FormsTest.exe forms/forms-FormsTest.exe mkdir -p ${RPM_BUILD_ROOT}/usr/lib/wf-testapps/bin mkdir -p ${RPM_BUILD_ROOT}/usr/bin for DIR in $(find -maxdepth 1 -type d); do if ls ${DIR}/*exe > /dev/null 2>&1; then cp -r ${DIR} ${RPM_BUILD_ROOT}/usr/lib/wf-testapps/ for FILE in $(find ${DIR} -maxdepth 2 -type f -iname "*exe"); do LNAME=$(basename ${FILE}) SNAME=$(basename ${FILE} | sed -e 's@\.exe@@') echo '#!/bin/sh' > ${RPM_BUILD_ROOT}/usr/bin/${SNAME} echo "cd \"/usr/lib/wf-testapps/$(basename ${DIR})\"" >> ${RPM_BUILD_ROOT}/usr/bin/${SNAME} echo "exec -a ${SNAME} mono --debug ./${LNAME}" >> ${RPM_BUILD_ROOT}/usr/bin/${SNAME} done fi done # copy the shell scripts to a common dir that makes it easy to test them cp ${RPM_BUILD_ROOT}/usr/bin/* ${RPM_BUILD_ROOT}/usr/lib/wf-testapps/bin/ chmod 755 ${RPM_BUILD_ROOT}/usr/lib/wf-testapps/bin/* exit 0 %clean #rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc LICENSE /usr/lib/wf-testapps %attr(755,root,root) /usr/bin/* %if 0%{?fedora_version} # Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros) %define _use_internal_dependency_generator 0 %endif %define __find_provides env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq' %define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq' %changelog * Fri Jan 18 2007 Marc Christensen <mchristensen@novell.com> - initial packaging
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