Below is a guide to get cgminer compiled and working on Fedora 19 with scrypt using the AMD Catalyst and OpenCL drivers.
First, you will need to enable the RPMFusion Repo for the AMD Catalyst drivers.
sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-19.noarch.rpm sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-19.noarch.rpm
Then, you will need to yum install the AMD Catalyst driver and some other needed libraries.
sudo yum -y install curl-devel automake gcc ncurses-devel kmod-catalyst
You should reboot after installing the AMD binary drivers and then run the following command if you have multiple amd cards to get them into the Xorg config.
sudo DISPLAY=:0 aticonfig -f --initial --adapter=all
You will want to reload X or reboot after running that command to load the changes.
Grab the AMD-APP-SDK from here: http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/
Then use the below commands to install it.
tar -xvzf AMD-APP-SDK-v2.9-lnx64.tgz sudo ./Install-AMD-APP.sh
The installer now creates files in /etc/ld.so.conf.d to load the libraries. I think you may be able to trigger this with the ldconfig command, but a reboot definitely reloads it.
Grab the latest AMD-ADL-SDK from here: http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/
Then in the same directory where you downloaded the ADL_SDK zip file, run the below commands:
wget http://ck.kolivas.org/apps/cgminer/3.7/cgminer-3.7.2.tar.bz2 tar -xvjf cgminer-3.7.2.tar.bz2 unzip -j ADL_SDK_*.zip include/*.h -d cgminer-3.7.2/ADL_SDK/ cd cgminer-3.7.2 ./configure --enable-scrypt --enable-opencl make sudo make install
Now, you should have cgminer installed and ready to run using your AMD videocard. Run the below command to test that it sees your videocard and everything.
sudo /usr/local/bin/cgminer -n
If you are running this over SSH, you may need to export the display as part of the command.
DISPLAY=:0 sudo /usr/local/bin/cgminer -n