flickcurl/flickcurl.spec

112 lines
3.5 KiB
RPMSpec

Name: flickcurl
Version: 1.26
Release: 1mamba
Summary: Library for the Flickr API
Group: Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://librdf.org/flickcurl/
Source: http://download.dajobe.org/flickcurl/flickcurl-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: gtk-doc
BuildRequires: libcurl-devel
BuildRequires: libraptor2-devel
BuildRequires: libxml2-devel
#p AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%debug_package
%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.
Flickcurl supports all of the API including the functions for photo/video uploading, browsing, searching, adding and editing comments, groups, notes, photosets, categories, activity, blogs, favorites, places, tags, machine tags, institutions, pandas and photo/video metadata.
It also includes a program flickrdf to turn photo metadata, tags, machine tags and places into an RDF triples description.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
This package includes the %{name} API documentation.
%prep
%setup -q
%build
%configure --disable-static --enable-gtk-doc
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/flickcurl
%{_bindir}/flickrdf
%{_mandir}/man1/flickcurl.*
%{_mandir}/man1/flickrdf.*
%doc AUTHORS COPYING COPYING.LIB
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libflickcurl.so.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_bindir}/flickcurl-config
%{_includedir}/flickcurl.h
%{_libdir}/libflickcurl.la
%{_libdir}/libflickcurl.so
%{_libdir}/pkgconfig/flickcurl.pc
%{_mandir}/man1/flickcurl-config.*
%doc ChangeLog NEWS README README.html
%files apidocs
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/%{name}
%changelog
* Fri Aug 22 2014 Automatic Build System <autodist@mambasoft.it> 1.26-1mamba
- automatic version update by autodist
* Thu Sep 05 2013 Automatic Build System <autodist@mambasoft.it> 1.25-1mamba
- automatic update by autodist
* Thu Apr 11 2013 Automatic Build System <autodist@mambasoft.it> 1.24-1mamba
- automatic version update by autodist
* Sun Sep 02 2012 Automatic Build System <autodist@mambasoft.it> 1.23-1mamba
- automatic version update by autodist
* Sat Jan 21 2012 Davide Madrisan <davide.madrisan@gmail.com> 1.22-1mamba
- package created by autospec