How to require a file not owned by an RPM in a spec file "Requires" line?
<p>I have installed (in CentOS 7) a program called Rational Software Architect (RSA 9.5) which is a rich client platform that acts just like Eclipse, but without actually installing an RPM. RSA came with an installation bash script which pretty much just dropped eclipse files onto the file system. My Eclipse executable lives at <code>/opt/IBM/SDP/eclipse</code> with the normal Eclipse folders like "plugins", "features", and "dropins" at the same level.</p>

<p>I had written a spec file for a previous version of the "real" Eclipse that simply installed some java plugins I wrote as jar files, placing them in the "dropins" folder and calling <code>eclipse -clean -initialize</code> afterwards to sync Eclipse with my new plugins. This still works with RSA.</p>

<p>My question comes down to the fact that before, I would simply have a line in the spec file similar to<br/><br/>
<code>Requires: eclipse &gt;= 4.4.2</code><br/><br/>
because Eclipse was installed as an RPM. Now that RSA is installed, taking the place of Eclipse, and has no RPM associated with it, I need to find a way to tell the spec file to require that the "dropins" folder exists before installing the RPM. Perhaps something like this:<br/><br/>
<code>Requires: /opt/IBM/SDP/eclipse</code><br/><br/>
I have not had any success with the above approach and wonder if it is even possible to set an RPM requirement based on a file and not a package? I cannot find any documentation on the subject and was hoping you all could help! Thanks in advance.</p>

<p>FYI...I am working in CentOS 7.2 with rpm-build-4.11.3 and rpmdevtools-8.3.</p>

<hr>

<p><strong>EDIT: Adding error message returned from yum when using absolute path in spec</strong><br/><br/>
<code>[root@localhost trunk]# yum localinstall myplugin-1.1.6-rev1255.x86_64.rpm 
Loaded plugins: fastestmirror, langpacks, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Examining myplugin-1.1.6-rev1255.x86_64.rpm: myplugin-1.1.6-rev1255.x86_64
Marking myplugin-1.1.6-rev1255.x86_64.rpm to be installed
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package myplugin.x86_64 0:1.1.6-rev1255 will be installed
--&gt; Processing Dependency: /opt/IBM/SDP/eclipse for package: myplugin-1.1.6-rev1255.x86_64
Loading mirror speeds from cached hostfile
--&gt; Processing Dependency: /opt/IBM/SDP/eclipse for package: myplugin-1.1.6-rev1255.x86_64
--&gt; Finished Dependency Resolution
Error: Package: myplugin-1.1.6-rev1255.x86_64 (/myplugin-1.1.6-rev1255.x86_64)
           Requires: /opt/IBM/SDP/eclipse
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest</code></p>

<p><code>[root@localhost trunk]# ll /opt/IBM/SDP/eclipse
-rwxr-xr-x. 1 root root 74675 Jan 28  2015 /opt/IBM/SDP/eclipse</code></p>