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