1 Summary: Adding icons to ELF binaries
5 # libr: LGPL v2.1; libr-libbfd backend: LGPL v3; elfres, gnome-thumbnailer: MIT
6 License: LGPL v2.1, LGPL v3, MIT
8 Source0: http://www.compholio.com/elfres/download.php?file=%{name}_%{version}.tar.gz
9 # Source0-md5: 6ad0ff2dbd9f561b7372a03b5d82c778
11 Patch1: default-icon.patch
12 URL: http://www.compholio.com/elfres/
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 This project is intended to provide an easy to use mechanism for
17 managing (embedding, retrieving, deleting) resources in ELF binaries.
18 The project has two components: elfres and libr. elfres is a resource
19 editor and an example of how to utilize the libr library. The libr
20 library provides a solid API and ABI that implements the preliminary
21 spec for adding ELF resources (icons or otherwise) documented at:
22 <https://wiki.ubuntu.com/ELFIconSpec>
25 Summary: Library to manage resources in ELF binaries
26 # library: LGPL v2.1, backend for libbfd: LGPL v3
27 License: LGPL v2.1, LGPL v3
31 This library is intended to provide an easy to use mechanism for
32 managing (embedding, retrieving, deleting) resources in ELF binaries.
34 %package -n libr-devel
35 Summary: Header files for libr library
36 Group: Development/Libraries
38 Requires: libr = %{version}-%{release}
40 %description -n libr-devel
41 Header files for libr library.
44 Summary: elfres - Manage application resources in ELF binaries
47 Requires: libr = %{version}-%{release}
49 %description -n elfres
50 This application is a technology demonstration, at this point please
51 DO NOT consider this implementation to be a specification for how ELF
52 icons will be supported by desktop environments. With that said, this
53 application and the associated "libr" resource library provide a solid
54 mechanism for managing application resources that you are free to use
55 in your own applications.
57 %package -n gnome-elf-thumbnailer
58 Summary: Generate thumbnailers for ELF binaries with icons
60 Group: X11/Applications
61 Requires: elfres = %{version}-%{release}
62 Requires: glib2 >= 1:2.26.0
63 Requires: gnome-themes-standard
65 %description -n gnome-elf-thumbnailer
66 Generate thumbnailers for ELF binaries with icons.
73 %{__make} -C libr clean
87 %if "%{?configure_cache}" == "1"
88 --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-libr.cache
92 export PKG_CONFIG_PATH=$(pwd)
93 export CPPFLAGS="%{rpmcppflags} -I$(pwd)/src"
94 export LDFLAGS="%{rpmldflags} -L$(pwd)/src/.libs"
104 %if "%{?configure_cache}" == "1"
105 --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-elfres.cache
109 # gnome-elf-thumbnailer
113 rm -rf $RPM_BUILD_ROOT
115 %{__make} -C libr install \
117 DESTDIR=$RPM_BUILD_ROOT
118 # obsoleted by pkgconfig file
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libr.la
122 %{__make} -C elfres install \
123 DESTDIR=$RPM_BUILD_ROOT
124 ln -s elfres $RPM_BUILD_ROOT%{_bindir}/elficon
127 ln -sf elfres/src/.libs/elfres elficon \
128 # disabed, as it segfaults
130 ELFRES=./elfres/src/.libs/elfres \
132 sh -x elfres/src/set-resources.sh $RPM_BUILD_ROOT%{_bindir}/elfres
135 # gnome-elf-thumbnailer
136 install -d $RPM_BUILD_ROOT%{_datadir}/gconf/schemas
137 %{__make} -C gnome-elf-thumbnailer install \
138 DESTDIR=$RPM_BUILD_ROOT
139 install -p gnome-elf-thumbnailer/src/gnome-elf-thumbnailer.sh $RPM_BUILD_ROOT%{_bindir}
143 %post -n libr -p /sbin/ldconfig
144 %postun -n libr -p /sbin/ldconfig
146 %post -n gnome-elf-thumbnailer
147 %glib_compile_schemas
149 %postun -n gnome-elf-thumbnailer
150 %glib_compile_schemas
153 rm -rf $RPM_BUILD_ROOT
156 %defattr(644,root,root,755)
157 %doc libr/{AUTHORS,ChangeLog}
158 %{_libdir}/libr.so.*.*.*
159 %ghost %{_libdir}/libr.so.0
162 %defattr(644,root,root,755)
165 %{_pkgconfigdir}/libr.pc
166 %{_mandir}/man3/IconSVG.3*
167 %{_mandir}/man3/OneCanvasIconInfo.3*
168 %{_mandir}/man3/libr_*.3*
170 %files -n elfres -f elfres.lang
171 %defattr(644,root,root,755)
172 %doc elfres/{AUTHORS,COPYING,ChangeLog,README}
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_bindir}/elficon
175 %attr(755,root,root) %{_bindir}/elfres
177 %files -n gnome-elf-thumbnailer
178 %defattr(644,root,root,755)
179 %doc gnome-elf-thumbnailer/{COPYING,README}
180 %attr(755,root,root) %{_bindir}/gnome-elf-thumbnailer.sh
181 %{_datadir}/gconf/schemas/gnome-elf-thumbnailer.schemas