diff --git a/README.md b/README.md index 67fc6ad..abe1bd5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # flickcurl +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. + diff --git a/flickcurl.spec b/flickcurl.spec new file mode 100644 index 0000000..459f166 --- /dev/null +++ b/flickcurl.spec @@ -0,0 +1,108 @@ +Name: flickcurl +Version: 1.25 +Release: 1mamba +Summary: Library for the Flickr API +Group: Applications/Graphics +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +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 +* Thu Sep 05 2013 Automatic Build System 1.25-1mamba +- automatic update by autodist + +* Thu Apr 11 2013 Automatic Build System 1.24-1mamba +- automatic version update by autodist + +* Sun Sep 02 2012 Automatic Build System 1.23-1mamba +- automatic version update by autodist + +* Sat Jan 21 2012 Davide Madrisan 1.22-1mamba +- package created by autospec