]>
Commit | Line | Data |
---|---|---|
42b488ab | 1 | Summary: Library for IPTC metadata manipulation |
bba7f270 | 2 | Summary(pl.UTF-8): Biblioteka do manipulacji metadanymi IPTC |
42b488ab | 3 | Name: libiptcdata |
0811e8aa | 4 | Version: 1.0.1 |
42b488ab | 5 | Release: 1 |
0811e8aa | 6 | License: LGPL v2+ |
42b488ab | 7 | Group: Libraries |
8 | Source0: http://dl.sourceforge.net/libiptcdata/%{name}-%{version}.tar.gz | |
0811e8aa | 9 | # Source0-md5: 512aa266d4790da26dbab4c5873c7e92 |
01267485 | 10 | URL: http://libiptcdata.sourceforge.net/ |
0811e8aa | 11 | BuildRequires: autoconf >= 2.50 |
42b488ab | 12 | BuildRequires: automake |
13 | BuildRequires: gtk-doc | |
14 | BuildRequires: libtool | |
0811e8aa JB |
15 | BuildRequires: python-devel |
16 | BuildRequires: rpm-pythonprov | |
42b488ab | 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 | ||
e9ecfc8e JR |
27 | %description -l pl.UTF-8 |
28 | libiptcdata jest biblioteką napisaną w C pozwalająca na manipulowanie | |
42b488ab | 29 | metadanymi International Press Telecommunications Council (IPTC), |
e9ecfc8e JR |
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 | |
0811e8aa | 33 | do analizy, oglądania, modyfikowania i zapisywania metadanych. |
42b488ab | 34 | |
35 | %package devel | |
36 | Summary: Header files for libiptcdata library | |
bba7f270 | 37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libiptcdata |
42b488ab | 38 | Group: Development/Libraries |
39 | Requires: %{name} = %{version}-%{release} | |
40 | ||
41 | %description devel | |
42 | Header files for libiptcdata library. | |
43 | ||
e9ecfc8e JR |
44 | %description devel -l pl.UTF-8 |
45 | Pliki nagłówkowe biblioteki libiptcdata. | |
42b488ab | 46 | |
47 | %package static | |
48 | Summary: Static libiptcdata library | |
bba7f270 | 49 | Summary(pl.UTF-8): Statyczna biblioteka libiptcdata |
42b488ab | 50 | Group: Development/Libraries |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static libiptcdata library. | |
55 | ||
e9ecfc8e | 56 | %description static -l pl.UTF-8 |
42b488ab | 57 | Statyczna biblioteka libiptcdata. |
58 | ||
0811e8aa JB |
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 | ||
42b488ab | 72 | %prep |
73 | %setup -q | |
74 | ||
75 | %build | |
76 | %{__gtkdocize} | |
77 | %{__libtoolize} | |
78 | %{__aclocal} -I m4 | |
79 | %{__autoconf} | |
80 | %{__autoheader} | |
81 | %{__automake} | |
82 | %configure \ | |
0811e8aa JB |
83 | --enable-python \ |
84 | --enable-static \ | |
42b488ab | 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 | ||
0811e8aa JB |
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 | ||
42b488ab | 99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
0811e8aa | 106 | # -f %{name}.lang |
42b488ab | 107 | %defattr(644,root,root,755) |
108 | %doc AUTHORS ChangeLog NEWS README TODO | |
0811e8aa JB |
109 | %attr(755,root,root) %{_bindir}/iptc |
110 | %attr(755,root,root) %{_libdir}/libiptcdata.so.*.*.* | |
42b488ab | 111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
0811e8aa JB |
114 | %attr(755,root,root) %{_libdir}/libiptcdata.so |
115 | %{_libdir}/libiptcdata.la | |
42b488ab | 116 | %{_includedir}/libiptcdata |
0811e8aa | 117 | %{_pkgconfigdir}/libiptcdata.pc |
42b488ab | 118 | %{_gtkdocdir}/libiptcdata |
119 | ||
120 | %files static | |
121 | %defattr(644,root,root,755) | |
0811e8aa JB |
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 |