Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 575880 Details for
Bug 810059
Review request: opencl-utils - Useful OpenCL tools and utilities
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Pkg-config, complete patch
03-adding-a-pkgconfig-pc-file.patch (text/plain), 2.35 KB, created by
Alec Leamas
on 2012-04-07 07:45:04 UTC
(
hide
)
Description:
Pkg-config, complete patch
Filename:
MIME Type:
Creator:
Alec Leamas
Created:
2012-04-07 07:45:04 UTC
Size:
2.35 KB
patch
obsolete
>Adding a pkgconfig .pc file > >From: Alec Leamas <leamas.alec@gmail.com> > >The examples can now be built using >$ cc $(pkg-config --cflags --libs opencl-utils) example1.c >$ g++ $(pkg-config --cflags --libs opencl-utils) example2.cpp >--- > > opencl-utils.pc | 8 ++++++++ > opencl-utils.spec | 7 ++++++- > 2 files changed, 14 insertions(+), 1 deletions(-) > create mode 100644 opencl-utils.pc > > >diff --git a/opencl-utils.pc b/opencl-utils.pc >new file mode 100644 >index 0000000..d438d15 >--- /dev/null >+++ b/opencl-utils.pc >@@ -0,0 +1,8 @@ >+prefix=@prefix@ >+includedir=${prefix}/include >+ >+Name: opencl-utils >+Description: OpenCL tools and utilities. >+Version: @version@ >+Libs: -lclrun >+Cflags: -I${includedir}/opencl-utils >diff --git a/opencl-utils.spec b/opencl-utils.spec >index a013f96..fd038e8 100644 >--- a/opencl-utils.spec >+++ b/opencl-utils.spec >@@ -15,6 +15,7 @@ Url: http://code.google.com/p/%{name} > #rm -f -r opencl-utils > Source: %{name}.tar.xz > Source1: Makefile.linux >+Source2: %{name}.pc > #Adapted from Dolphin-Emu: > #http://code.google.com/p/dolphin-emu/issues/detail?id=2927 > Patch0: %{name}-correctOpenCLpointers.patch >@@ -24,6 +25,7 @@ BuildRequires: mesa-libGL-devel > %package devel > Summary: Devel files for OpenCL Utils > Requires: %{name} = %{version}-%{release} >+Requires: pkgconfig > > %description > #Modified from the homepage >@@ -44,6 +46,7 @@ optimization hints and common kernel templates. > cp %SOURCE1 src/clrun/Makefile > #unneed windows build file > rm -f examples/OCLUtilsExamples.vcproj >+sed -i -e 's/@version@/%{version}/' -e 's|@prefix@|%{_prefix}|' %SOURCE2 > > %build > cd src/clrun/ >@@ -54,12 +57,13 @@ env CFLAGS="%{optflags} -fPIC -Wl,-soname=%{soname}" make > mkdir -p %{buildroot}%{_includedir}/%{name} > cp -ar src/include/* %{buildroot}%{_includedir}/%{name}/ > #install the library and the links >-mkdir -p %{buildroot}%{_libdir} >+mkdir -p %{buildroot}%{_libdir}/pkgconfig > install -p -D -m 0755 src/clrun/libclrun.so %{buildroot}%{_libdir}/%{soname} > cd %{buildroot}%{_libdir} > soname=%{soname} > ln -sf $soname ${soname%%.*} > ln -sf $soname ${soname%%.*.*} >+cp -a %SOURCE2 %{buildroot}%{_libdir}/pkgconfig/%{name}.pc > > %files > %doc examples >@@ -68,6 +72,7 @@ ln -sf $soname ${soname%%.*.*} > %files devel > %{_includedir}/%{name} > %{_libdir}/*.so >+%{_libdir}/pkgconfig/*.pc > > %post -p /sbin/ldconfig >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 810059
:
575645
|
575878
|
575879
| 575880