]>
Commit | Line | Data |
---|---|---|
819f5fc4 CM |
1 | # TODO: |
2 | # - Add bcond for vapi support and subpackage | |
3 | ||
4 | Summary: GObject-based wrapper around the Exiv2 library | |
5 | Name: gexiv2 | |
a4ad3ac7 | 6 | Version: 0.2.0 |
b23ae6ce | 7 | Release: 1 |
819f5fc4 CM |
8 | License: GPL |
9 | Group: Applications/Graphics | |
a4ad3ac7 JK |
10 | Source0: http://yorba.org/download/gexiv2/0.2/lib%{name}-%{version}.tar.bz2 |
11 | # Source0-md5: 2bdedaa705260a1f36ae335a5a426f6a | |
12 | URL: http://trac.yorba.org/wiki/gexiv2 | |
dfb42d93 CM |
13 | Patch0: %{name}-libtool.patch |
14 | BuildRequires: exiv2-devel >= 0.19 | |
819f5fc4 | 15 | BuildRequires: pkgconfig |
dfb42d93 | 16 | Requires: exiv2-libs >= 0.19 |
819f5fc4 CM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
dfb42d93 | 20 | gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes |
819f5fc4 CM |
21 | the basic features of Exiv2 available to GNOME applications. |
22 | ||
23 | %package devel | |
dfb42d93 CM |
24 | Summary: GObject-based wrapper around the Exiv2 library |
25 | Group: Development/Libraries | |
b23ae6ce | 26 | Requires: %{name} = %{version}-%{release} |
dfb42d93 | 27 | Requires: exiv2-devel >= 0.19 |
819f5fc4 CM |
28 | |
29 | %description devel | |
30 | gexiv2 development files | |
31 | ||
32 | %package static | |
dfb42d93 CM |
33 | Summary: GObject-based wrapper around the Exiv2 library |
34 | Group: Development/Libraries | |
b23ae6ce | 35 | Requires: %{name} = %{version}-%{release} |
dfb42d93 | 36 | Requires: exiv2-static >= 0.19 |
819f5fc4 CM |
37 | |
38 | %description static | |
39 | gexiv2 static library | |
40 | ||
41 | %prep | |
42 | %setup -q -n lib%{name}-%{version} | |
a4ad3ac7 | 43 | #%patch0 -p0 |
819f5fc4 CM |
44 | |
45 | %build | |
46 | %{__libtoolize} | |
47 | ./configure --prefix=%{_prefix} | |
48 | ||
49 | %{__make} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.* | |
63 | %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0 | |
64 | %attr(755,root,root) %{_libdir}/lib%{name}.so | |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %{_libdir}/lib%{name}.la | |
69 | %{_includedir}/%{name} | |
70 | %{_pkgconfigdir}/%{name}.pc | |
71 | ||
72 | %files static | |
73 | %defattr(644,root,root,755) | |
74 | %{_libdir}/lib%{name}.a |