]>
Commit | Line | Data |
---|---|---|
7cbb7954 JB |
1 | Summary: GObject-based wrapper around the Exiv2 library |
2 | Summary(pl.UTF-8): Oparte na GObject obudowanie biblioteki Exiv2 | |
819f5fc4 | 3 | Name: gexiv2 |
56265065 | 4 | Version: 0.6.1 |
5 | Release: 1 | |
7cbb7954 JB |
6 | License: GPL v2 |
7 | Group: Libraries | |
56265065 | 8 | Source0: http://yorba.org/download/gexiv2/0.6/lib%{name}_%{version}.tar.xz |
9 | # Source0-md5: 5bd2ba92b765a2b3721874ebd2647734 | |
a4ad3ac7 | 10 | URL: http://trac.yorba.org/wiki/gexiv2 |
3be85c32 | 11 | BuildRequires: exiv2-devel >= 0.21 |
7cbb7954 JB |
12 | BuildRequires: glib2-devel >= 1:2.0 |
13 | BuildRequires: libstdc++-devel | |
14 | BuildRequires: libtool >= 2:1.5 | |
15 | BuildRequires: m4 | |
819f5fc4 | 16 | BuildRequires: pkgconfig |
7cbb7954 | 17 | BuildRequires: sed >= 4.0 |
3be85c32 | 18 | Requires: exiv2-libs >= 0.21 |
819f5fc4 CM |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
dfb42d93 | 22 | gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes |
819f5fc4 CM |
23 | the basic features of Exiv2 available to GNOME applications. |
24 | ||
7cbb7954 JB |
25 | %description -l pl.UTF-8 |
26 | gexiv2 to oparte na GObject obudowanie biblioteki Exiv2. Udostępnia | |
27 | podstawowe możliwości Exiv2 aplikacjom GNOME. | |
28 | ||
819f5fc4 | 29 | %package devel |
7cbb7954 JB |
30 | Summary: Header files for gexiv2 library |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gexiv2 | |
dfb42d93 | 32 | Group: Development/Libraries |
b23ae6ce | 33 | Requires: %{name} = %{version}-%{release} |
7cbb7954 JB |
34 | Requires: exiv2-devel >= 0.21 |
35 | Requires: glib2-devel >= 1:2.0 | |
36 | Requires: libstdc++-devel | |
819f5fc4 CM |
37 | |
38 | %description devel | |
7cbb7954 JB |
39 | Header files for gexiv2 library. |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki gexiv2. | |
819f5fc4 CM |
43 | |
44 | %package static | |
7cbb7954 JB |
45 | Summary: Static gexiv2 library |
46 | Summary(pl.UTF-8): Statyczna biblioteka gexiv2 | |
dfb42d93 | 47 | Group: Development/Libraries |
7cbb7954 | 48 | Requires: %{name}-devel = %{version}-%{release} |
819f5fc4 CM |
49 | |
50 | %description static | |
7cbb7954 JB |
51 | Static gexiv2 library. |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka gexiv2. | |
55 | ||
56 | %package -n vala-gexiv2 | |
57 | Summary: Vala binding for gexiv2 library | |
58 | Summary(pl.UTF-8): Wiązanie języka vala do biblioteki gexiv2 | |
59 | Group: Development/Languages | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description -n vala-gexiv2 | |
63 | Vala binding for gexiv2 library. | |
64 | ||
65 | %description -n vala-gexiv2 -l pl.UTF-8 | |
66 | Wiązanie języka vala do biblioteki gexiv2. | |
819f5fc4 CM |
67 | |
68 | %prep | |
69 | %setup -q -n lib%{name}-%{version} | |
819f5fc4 CM |
70 | |
71 | %build | |
7cbb7954 JB |
72 | # not autoconf-generated |
73 | ./configure \ | |
74 | --prefix=%{_prefix} | |
819f5fc4 | 75 | |
83b73faf | 76 | %{__make} \ |
7cbb7954 JB |
77 | CFLAGS="%{rpmcflags}" \ |
78 | CXX="%{__cxx}" \ | |
15b3496d JK |
79 | LIB="%{_lib}" \ |
80 | LDFLAGS="-lm" | |
819f5fc4 | 81 | |
7cbb7954 JB |
82 | # fix hardcoded ${exec_prefix}/lib |
83 | sed -i -e 's,^libdir=.*,libdir=%{_libdir},' gexiv2.pc | |
84 | ||
819f5fc4 CM |
85 | %install |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
83b73faf JK |
89 | DESTDIR=$RPM_BUILD_ROOT \ |
90 | LIB="%{_lib}" | |
819f5fc4 CM |
91 | |
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
7cbb7954 JB |
95 | %post -p /sbin/ldconfig |
96 | %postun -p /sbin/ldconfig | |
97 | ||
819f5fc4 CM |
98 | %files |
99 | %defattr(644,root,root,755) | |
7cbb7954 JB |
100 | %doc AUTHORS MAINTAINERS NEWS README THANKS |
101 | %attr(755,root,root) %{_libdir}/libgexiv2.so.*.*.* | |
56265065 | 102 | %attr(755,root,root) %ghost %{_libdir}/libgexiv2.so.2 |
819f5fc4 CM |
103 | |
104 | %files devel | |
105 | %defattr(644,root,root,755) | |
7cbb7954 JB |
106 | %attr(755,root,root) %{_libdir}/libgexiv2.so |
107 | %{_libdir}/libgexiv2.la | |
108 | %{_includedir}/gexiv2 | |
109 | %{_pkgconfigdir}/gexiv2.pc | |
819f5fc4 CM |
110 | |
111 | %files static | |
112 | %defattr(644,root,root,755) | |
7cbb7954 JB |
113 | %{_libdir}/libgexiv2.a |
114 | ||
115 | %files -n vala-gexiv2 | |
116 | %defattr(644,root,root,755) | |
117 | %{_datadir}/vala/vapi/gexiv2.vapi |