]> git.pld-linux.org Git - packages/gexiv2.git/blob - gexiv2.spec
- Version: 0.3.0
[packages/gexiv2.git] / gexiv2.spec
1 # TODO:
2 # - Add bcond for vapi support and subpackage
3
4 Summary:        GObject-based wrapper around the  Exiv2 library
5 Name:           gexiv2
6 Version:        0.3.0
7 Release:        1
8 License:        GPL
9 Group:          Applications/Graphics
10 Source0:        http://yorba.org/download/gexiv2/0.3/lib%{name}-%{version}.tar.bz2
11 # Source0-md5:  b6b2b2ae3c7d57a85d8c346b418ff98c
12 URL:            http://trac.yorba.org/wiki/gexiv2
13 BuildRequires:  exiv2-devel >= 0.21
14 BuildRequires:  pkgconfig
15 BuildRequires:  vala
16 Requires:       exiv2-libs >= 0.21
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes
21 the basic features of Exiv2 available to GNOME applications.
22
23 %package devel
24 Summary:        GObject-based wrapper around the  Exiv2 library
25 Group:          Development/Libraries
26 Requires:       %{name} = %{version}-%{release}
27 Requires:       exiv2-devel >= 0.19
28
29 %description devel
30 gexiv2 development files
31
32 %package static
33 Summary:        GObject-based wrapper around the  Exiv2 library
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       exiv2-static >= 0.19
37
38 %description static
39 gexiv2 static library
40
41 %prep
42 %setup -q -n lib%{name}-%{version}
43
44 %build
45 %{__libtoolize}
46 ./configure --prefix=%{_prefix}
47
48 %{__make} \
49         LIB="%{_lib}" \
50         LDFLAGS="-lm"
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT \
57         LIB="%{_lib}"
58
59 %post   -p /sbin/ldconfig
60 %postun -p /sbin/ldconfig
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.*
68 %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0
69 %attr(755,root,root) %{_libdir}/lib%{name}.so
70
71 %files devel
72 %defattr(644,root,root,755)
73 %{_libdir}/lib%{name}.la
74 %{_includedir}/%{name}
75 %{_pkgconfigdir}/%{name}.pc
76 %{_datadir}/vala/vapi/gexiv2.vapi
77
78 %files static
79 %defattr(644,root,root,755)
80 %{_libdir}/lib%{name}.a
This page took 0.064208 seconds and 3 git commands to generate.