]>
Commit | Line | Data |
---|---|---|
1 | Summary: Library for IPTC metadata manipulation | |
2 | Summary(pl.UTF-8): Biblioteka do manipulacji metadanymi IPTC | |
3 | Name: libiptcdata | |
4 | Version: 1.0.1 | |
5 | Release: 1 | |
6 | License: LGPL v2+ | |
7 | Group: Libraries | |
8 | Source0: http://dl.sourceforge.net/libiptcdata/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 512aa266d4790da26dbab4c5873c7e92 | |
10 | URL: http://libiptcdata.sourceforge.net/ | |
11 | BuildRequires: autoconf >= 2.50 | |
12 | BuildRequires: automake | |
13 | BuildRequires: gtk-doc | |
14 | BuildRequires: libtool | |
15 | BuildRequires: python-devel | |
16 | BuildRequires: rpm-pythonprov | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | libiptcdata is a library, written in C, for manipulating the | |
21 | International Press Telecommunications Council (IPTC) metadata stored | |
22 | within multimedia files such as images. This metadata can include | |
23 | captions and keywords, often used by popular photo management | |
24 | applications. The library provides routines for parsing, viewing, | |
25 | modifying, and saving this metadata. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | libiptcdata jest biblioteką napisaną w C pozwalająca na manipulowanie | |
29 | metadanymi International Press Telecommunications Council (IPTC), | |
30 | zapisanymi w plikach multimedialnych jak np. obrazy. Metadane te mogą | |
31 | zawierać tytuł i słowa kluczowe, często używane przez popularne | |
32 | programy zarządzające kolekcjami zdjęć. Biblioteka dostarcza procedury | |
33 | do analizy, oglądania, modyfikowania i zapisywania metadanych. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for libiptcdata library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libiptcdata | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | ||
41 | %description devel | |
42 | Header files for libiptcdata library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki libiptcdata. | |
46 | ||
47 | %package static | |
48 | Summary: Static libiptcdata library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka libiptcdata | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static libiptcdata library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka libiptcdata. | |
58 | ||
59 | %package -n python-iptcdata | |
60 | Summary: Python wrapper for libiptcdata | |
61 | Summary(pl.UTF-8): Wiązanie Pythona do libiptcdata | |
62 | Group: Libraries/Python | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | %pyrequires_eq python-libs | |
65 | ||
66 | %description -n python-iptcdata | |
67 | Python wrapper for libiptcdata. | |
68 | ||
69 | %description -n python-iptcdata -l pl.UTF-8 | |
70 | Wiązanie Pythona do libiptcdata. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | ||
75 | %build | |
76 | %{__gtkdocize} | |
77 | %{__libtoolize} | |
78 | %{__aclocal} -I m4 | |
79 | %{__autoconf} | |
80 | %{__autoheader} | |
81 | %{__automake} | |
82 | %configure \ | |
83 | --enable-python \ | |
84 | --enable-static \ | |
85 | --with-html-dir=%{_gtkdocdir} | |
86 | %{__make} | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
94 | # libiptcdata and iptc domains (no translations yet) | |
95 | #find_lang %{name} --all-name | |
96 | ||
97 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/iptcdata.{la,a} | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | # -f %{name}.lang | |
107 | %defattr(644,root,root,755) | |
108 | %doc AUTHORS ChangeLog NEWS README TODO | |
109 | %attr(755,root,root) %{_bindir}/iptc | |
110 | %attr(755,root,root) %{_libdir}/libiptcdata.so.*.*.* | |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libiptcdata.so | |
115 | %{_libdir}/libiptcdata.la | |
116 | %{_includedir}/libiptcdata | |
117 | %{_pkgconfigdir}/libiptcdata.pc | |
118 | %{_gtkdocdir}/libiptcdata | |
119 | ||
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libiptcdata.a | |
123 | ||
124 | %files -n python-iptcdata | |
125 | %defattr(644,root,root,755) | |
126 | %doc python/README | |
127 | %attr(755,root,root) %{py_sitedir}/iptcdata.so |