9397
|
1 |
#
|
|
2 |
# spec file for package libexif-gtk
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
# Owner: gheet
|
|
9 |
# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=12272&atid=112272&aid=
|
|
10 |
#
|
|
11 |
Name: libexif-gtk
|
9431
|
12 |
License: LGPL
|
9397
|
13 |
Group: Development/Libraries/C and C++
|
|
14 |
Version: 0.3.5
|
|
15 |
Release: 2
|
|
16 |
Distribution: Java Desktop System
|
|
17 |
Vendor: Sun Microsystems, Inc.
|
|
18 |
Summary: GTK widgets for viewing EXIF information
|
15829
|
19 |
Source: %{sf_download}/libexif/%{name}-%{version}.tar.bz2
|
9397
|
20 |
# date:2004-01-16 owner:mattman type:bug bugzilla:1616317
|
|
21 |
Patch1: libexif-gtk-01-enable-deprecated.diff
|
12741
|
22 |
# date:2004-06-02 owner:laca type:bug bugzilla:1616397 bugster:6570425
|
9397
|
23 |
Patch2: libexif-gtk-02-gettext.diff
|
|
24 |
# date:2004-06-02 owner:yippi type:bug bugzilla:1616320
|
|
25 |
Patch3: libexif-gtk-03-solaris.diff
|
12629
|
26 |
# date:2004-06-02 owner:yippi type:feature bugzilla:1643242
|
9397
|
27 |
Patch4: libexif-gtk-04-uninstalled-pc.diff
|
|
28 |
# date:2006-02-21 owner:dcarbery type:bug bugzilla:1394423
|
|
29 |
Patch5: libexif-gtk-05-sf-bug-1394423.diff
|
16030
|
30 |
# date:2009-07-15 owner:chrisk type:bug
|
|
31 |
Patch6: libexif-gtk-06-bad-include.diff
|
9397
|
32 |
URL: http://sourceforge.net/projects/libexif
|
|
33 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
34 |
DocDir: %{_defaultdocdir}/libexif-gtk
|
|
35 |
Autoreqprov: on
|
|
36 |
Prereq: /sbin/ldconfig
|
|
37 |
|
|
38 |
|
|
39 |
%define libexif_version 0.5.9
|
|
40 |
Requires: libexif >= %{libexif_version}
|
|
41 |
Requires: gtk2
|
|
42 |
BuildRequires: libexif >= %{libexif_version}
|
|
43 |
BuildRequires: gtk2-devel
|
|
44 |
|
|
45 |
%description
|
|
46 |
This library contains GTK widgets for viewing the EXIF informations within
|
|
47 |
JPEG images created by some types of digital cameras.
|
|
48 |
|
|
49 |
%prep
|
|
50 |
%setup -q
|
|
51 |
%patch1 -p1
|
|
52 |
%patch2 -p1
|
|
53 |
%patch3 -p1
|
|
54 |
%patch4 -p1
|
|
55 |
%patch5 -p1
|
16030
|
56 |
%patch6 -p1
|
9397
|
57 |
|
|
58 |
%build
|
|
59 |
%ifos linux
|
|
60 |
if [ -x /usr/bin/getconf ]; then
|
|
61 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
62 |
fi
|
|
63 |
%else
|
|
64 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
65 |
%endif
|
|
66 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
67 |
CPUS=1
|
|
68 |
fi
|
|
69 |
|
|
70 |
glib-gettextize -f
|
|
71 |
libtoolize --force
|
|
72 |
aclocal $ACLOCAL_FLAGS
|
|
73 |
automake -a -c -f
|
|
74 |
autoconf
|
|
75 |
CFLAGS="$CFLAGS $RPM_OPT_FLAGS" \
|
|
76 |
./configure \
|
|
77 |
--prefix=%{_prefix} \
|
|
78 |
--libdir=%{_libdir} \
|
|
79 |
--disable-static
|
|
80 |
|
|
81 |
# FIXME: hack: stop the build from looping
|
|
82 |
touch po/stamp-it
|
|
83 |
|
|
84 |
make -j $CPUS
|
|
85 |
|
|
86 |
%install
|
|
87 |
make DESTDIR=${RPM_BUILD_ROOT}/ install-strip
|
|
88 |
#clean up unpackaged files
|
|
89 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
90 |
|
12147
|
91 |
#%check
|
|
92 |
make check
|
|
93 |
|
9397
|
94 |
%clean
|
|
95 |
rm -rf ${RPM_BUILD_ROOT}
|
|
96 |
|
|
97 |
%post
|
|
98 |
/sbin/ldconfig
|
|
99 |
|
|
100 |
%postun
|
|
101 |
/sbin/ldconfig
|
|
102 |
|
|
103 |
%files
|
|
104 |
%defattr(-,root,root)
|
|
105 |
%{_libdir}/lib*so*
|
|
106 |
%{_libdir}/pkgconfig/*
|
|
107 |
%{_includedir}/*
|
|
108 |
%{_datadir}/locale/*
|
|
109 |
|
|
110 |
%changelog -n libexif-gtk
|
16030
|
111 |
* Wed Jul 15 2009 - [email protected]
|
|
112 |
- Looks like gtk doesn't allow include of anything but gtk.h. Create patch 6 to
|
|
113 |
change includes.
|
|
114 |
|
15829
|
115 |
* Tue Jun 02 2009 - [email protected]
|
|
116 |
- Change download URL to generic %{sf_download}
|
|
117 |
|
12147
|
118 |
* Wed Apr 16 2008 - [email protected]
|
|
119 |
- Add 'make check' call after %install.
|
|
120 |
|
9431
|
121 |
* Mon Mar 05 2006 - [email protected]
|
|
122 |
- Correct license to LGPL, as per the source files
|
|
123 |
|
9397
|
124 |
* Tue Feb 21 2006 - [email protected]
|
|
125 |
- Add patch, 05-sf-bug-1394423, to fix configure bug, already logged at sf.net.
|
|
126 |
|
|
127 |
* Mon Feb 13 2006 - [email protected]
|
|
128 |
- Add hack to fix infinite loop problem in po/Makefile.
|
|
129 |
|
|
130 |
* Wed Jun 15 2005 - [email protected]
|
|
131 |
- Add more libs to LDADD so that it builds with the new pkgconfig
|
|
132 |
|
|
133 |
* Wed Jun 15 2005 - [email protected]
|
|
134 |
- Bump to 0.3.5
|
|
135 |
|
|
136 |
* Wed Jul 13 2004 - [email protected]
|
|
137 |
- fix for rpm4 packaging
|
|
138 |
|
|
139 |
* Thu Jul 08 2004 - [email protected]
|
|
140 |
- Updated l10n content to libexif-gtk-l10n-po-1.2.tar.bz2
|
|
141 |
|
|
142 |
* Wed Jul 07 2004 - [email protected]
|
|
143 |
- added "-j $CPUS" to make to speed up builds
|
|
144 |
|
|
145 |
* Thu Jun 17 2004 - [email protected]
|
|
146 |
- Run glib-gettextize and replace po/Makefile.in.in with standard
|
|
147 |
ones found in %{_datadir}/glib-2.0/gettext/.
|
|
148 |
|
|
149 |
* Wed Jun 06 2004 - [email protected]
|
|
150 |
- Added needed patches for Solaris.
|
|
151 |
|
|
152 |
* Wed May 12 2004 - [email protected]
|
|
153 |
- Updated l10n content to libexif-gtk-l10n-po-1.1.tar.bz2
|
|
154 |
|
|
155 |
* Mon Apr 12 2004 - [email protected]
|
|
156 |
- Add $ACLOCAL_FLAGS to aclocal call, making Solaris more happy.
|
|
157 |
|
|
158 |
* Wed Mar 31 2004 - [email protected]
|
|
159 |
- replace tar jxf with the more solaris friendly
|
|
160 |
bzcat piped through tar
|
|
161 |
|
|
162 |
* Mon Mar 29 2004 - [email protected]
|
|
163 |
- Updated l10n content to libexif-gtk-l10n-po-1.0.tar.bz2
|
|
164 |
|
|
165 |
* Thu Mar 18 2004 - <[email protected]>
|
|
166 |
- Added URL Tag
|
|
167 |
|
|
168 |
* Thu Mar 11 2004 - [email protected]
|
|
169 |
- added libexif-gtk-03-g11n-potfiles.diff
|
|
170 |
|
|
171 |
* Wed Feb 04 2004 - <[email protected]>
|
|
172 |
- l10n tarball, and patch
|
|
173 |
|
|
174 |
* Fri Jan 16 2004 - <[email protected]>
|
|
175 |
- Enable Deprecated patch
|
|
176 |
|
|
177 |
* Tue Oct 14 2003 - <[email protected]>
|
|
178 |
- Upgrade tarball to 0.3.3 for QS
|
|
179 |
|
|
180 |
* Thu Aug 14 2003 - <[email protected]>
|
|
181 |
- remove *.a, *.la
|
|
182 |
|
|
183 |
* Wed Jul 16 2003 - [email protected]
|
|
184 |
- Initial version
|