Пакет flickcurl: Specfile

%set_automake_version 1.11
%def_enable check

Name: flickcurl
Version: 1.26
Release: alt2

Summary: Flickcurl C library for the Flickr API
License: LGPL 2.1 / ASL 2.0
Group: Graphics
Url: http://librdf.org/flickcurl/

Source: %name-%version.tar

BuildRequires: gtk-doc libcurl-devel libxml2-devel raptor2-devel

%description
Flickcurl is a C library for the Flickr API, handling creating the
requests, signing, token management, calling the API, marshalling request
parameters and decoding responses. It uses libcurl to call the REST
web service and libxml2 to manipulate the XML responses. The current
version supports the majority of the API (see Flickcurl API coverage)
including the functions for photo uploading, browsing, searching, adding
and editing comments, groups, notes, photosets, categories, tags and photo
metadata. It also includes a program flickrdf to turn photo metadata,
tags and machine tags into RDF descriptions of photso and tags.

This package contains utility programs that use the %name library.

%package -n lib%name
Summary: C library for the Flickr API
Group: System/Libraries

%description -n lib%name
Flickcurl is a C library for the Flickr API, handling creating the
requests, signing, token management, calling the API, marshalling request
parameters and decoding responses. It uses libcurl to call the REST
web service and libxml2 to manipulate the XML responses. The current
version supports the majority of the API (see Flickcurl API coverage)
including the functions for photo uploading, browsing, searching, adding
and editing comments, groups, notes, photosets, categories, tags and photo
metadata. It also includes a program flickrdf to turn photo metadata,
tags and machine tags into RDF descriptions of photso and tags.

%package -n lib%name-devel
Summary: Development files for lib%name
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
This package contains the developement files for the %name library.

%prep
%setup

%build
gtkdocize
%autoreconf -fisv
%configure \
	--disable-static

%make_build

%install
%makeinstall_std

%check
%make check

%files
%doc AUTHORS NEWS.html
%_bindir/flickcurl
%_bindir/flickrdf
%_man1dir/flickcurl.1*
%_man1dir/flickrdf.1*

%files -n lib%name
%_libdir/lib%name.so.*

%files -n lib%name-devel
%_includedir/%name.h
%_bindir/%name-config
%_libdir/lib%name.so
%_pkgconfigdir/%name.pc
%_man1dir/%name-config.1*

%changelog
* Mon Mar 11 2019 Yuri N. Sedunov <aris@altlinux.org> 1.26-alt2
- updated to 1_26-10-gb2d64c8
- build with raptor2 support (ALT #36263)

* Mon Feb 06 2017 Anton V. Boyarshinov <boyarsh@altlinux.org> 1.26-alt1
- 1.26
- use https endpoints
- packaging scheme changed

* Thu Jan 16 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.14-alt1.2
- Fixed build

* Wed Aug 17 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.14-alt1.1
- Rebuilt with curl 7.21.7

* Sat Oct 17 2009 Valery Inozemtsev <shrek@altlinux.ru> 1.14-alt1
- 1.14

* Sun Sep 20 2009 Valery Inozemtsev <shrek@altlinux.ru> 1.13-alt1
- initial release