]> git.pld-linux.org Git - packages/gexiv2.git/blob - gexiv2.spec
- ver. 0.6.1
[packages/gexiv2.git] / gexiv2.spec
1 Summary:        GObject-based wrapper around the Exiv2 library
2 Summary(pl.UTF-8):      Oparte na GObject obudowanie biblioteki Exiv2
3 Name:           gexiv2
4 Version:        0.6.1
5 Release:        1
6 License:        GPL v2
7 Group:          Libraries
8 Source0:        http://yorba.org/download/gexiv2/0.6/lib%{name}_%{version}.tar.xz
9 # Source0-md5:  5bd2ba92b765a2b3721874ebd2647734
10 URL:            http://trac.yorba.org/wiki/gexiv2
11 BuildRequires:  exiv2-devel >= 0.21
12 BuildRequires:  glib2-devel >= 1:2.0
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  libtool >= 2:1.5
15 BuildRequires:  m4
16 BuildRequires:  pkgconfig
17 BuildRequires:  sed >= 4.0
18 Requires:       exiv2-libs >= 0.21
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes
23 the basic features of Exiv2 available to GNOME applications.
24
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
29 %package devel
30 Summary:        Header files for gexiv2 library
31 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gexiv2
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34 Requires:       exiv2-devel >= 0.21
35 Requires:       glib2-devel >= 1:2.0
36 Requires:       libstdc++-devel
37
38 %description devel
39 Header files for gexiv2 library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki gexiv2.
43
44 %package static
45 Summary:        Static gexiv2 library
46 Summary(pl.UTF-8):      Statyczna biblioteka gexiv2
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
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.
67
68 %prep
69 %setup -q -n lib%{name}-%{version}
70
71 %build
72 # not autoconf-generated
73 ./configure \
74         --prefix=%{_prefix}
75
76 %{__make} \
77         CFLAGS="%{rpmcflags}" \
78         CXX="%{__cxx}" \
79         LIB="%{_lib}" \
80         LDFLAGS="-lm"
81
82 # fix hardcoded ${exec_prefix}/lib
83 sed -i -e 's,^libdir=.*,libdir=%{_libdir},' gexiv2.pc
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT \
90         LIB="%{_lib}"
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc AUTHORS MAINTAINERS NEWS README THANKS
101 %attr(755,root,root) %{_libdir}/libgexiv2.so.*.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libgexiv2.so.2
103
104 %files devel
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libgexiv2.so
107 %{_libdir}/libgexiv2.la
108 %{_includedir}/gexiv2
109 %{_pkgconfigdir}/gexiv2.pc
110
111 %files static
112 %defattr(644,root,root,755)
113 %{_libdir}/libgexiv2.a
114
115 %files -n vala-gexiv2
116 %defattr(644,root,root,755)
117 %{_datadir}/vala/vapi/gexiv2.vapi
This page took 0.137566 seconds and 3 git commands to generate.