diff --git a/README.md b/README.md index 6766391..747a3cd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # librest +This library has been designed to make it easier to access web services that claim to be "RESTful". + diff --git a/librest.spec b/librest.spec new file mode 100644 index 0000000..4ea8323 --- /dev/null +++ b/librest.spec @@ -0,0 +1,98 @@ +%define majver %(echo %version | cut -d. -f1-2) +Name: librest +Version: 0.7.91 +Release: 1mamba +Summary: A library designed to make it easier to access web services which support it +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://live.gnome.org +Source: ftp://ftp.gnome.org/pub/gnome/sources/rest/0.7/rest-%{version}.tar.xz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: gtk-doc +BuildRequires: libglib-devel +BuildRequires: libsoup-devel +BuildRequires: libxml2-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This library has been designed to make it easier to access web services that claim to be "RESTful". + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This library has been designed to make it easier to access web services that claim to be "RESTful". + +This package contains static libraries and header files need for development. + +%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 -n rest-%{version} + +%build +%configure --enable-gtk-doc +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/librest-%{majver}.so.* +%{_libdir}/librest-extras-%{majver}.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/rest-%{majver} +%{_includedir}/rest-%{majver}/* +%{_libdir}/librest-%{majver}.la +%{_libdir}/librest-%{majver}.so +%{_libdir}/librest-extras-%{majver}.la +%{_libdir}/librest-extras-%{majver}.so +%{_libdir}/girepository-1.0/Rest*.typelib +%{_datadir}/gir-1.0/Rest*.gir +%{_libdir}/pkgconfig/rest-%{majver}.pc +%{_libdir}/pkgconfig/rest-extras-%{majver}.pc +%doc README + +%files apidocs +%defattr(-,root,root) +## note: this list is just an example; modify as required +%dir %{_datadir}/gtk-doc/html/rest-%{majver} +%{_datadir}/gtk-doc/html/rest-%{majver}/* + +%changelog +* Mon Mar 10 2014 Automatic Build System 0.7.91-1mamba +- automatic version update by autodist + +* Sat Aug 18 2012 Automatic Build System 0.7.90-1mamba +- update to 0.7.90 + +* Sun Apr 01 2012 Automatic Build System 0.7.12-1mamba +- automatic version update by autodist + +* Mon Oct 03 2011 Silvan Calarco 0.7.10-1mamba +- package created by autospec