diff --git a/README.md b/README.md index 3afdbe8..923366d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # libepc +The Easy Publish and Consume library provides an easy method to: + +* publish data using HTTPS: EpcPublisher +* announce that information via DNS-SD: EpcDispatcher +* find that information: EpcConsumer +* and finally consume it + +You can use this library as a key/value store published to the network, using encryption, authentication and service discovery. + diff --git a/libepc.spec b/libepc.spec new file mode 100644 index 0000000..435b06e --- /dev/null +++ b/libepc.spec @@ -0,0 +1,145 @@ +%define majver %(echo %version | cut -d. -f 1-2) +Name: libepc +Version: 0.4.4 +Release: 1mamba +Summary: Easy Publish and Consume Library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://live.gnome.org/libepc/ +Source: http://ftp.acc.umu.se/pub/GNOME/sources/libepc/%{majver}/libepc-%{version}.tar.xz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: gtk-doc +BuildRequires: libatk-devel +BuildRequires: libavahi-devel +BuildRequires: libavahi-glib-devel +BuildRequires: libbzip2-devel +BuildRequires: libcairo-devel +BuildRequires: libdbus-devel +BuildRequires: libelf-devel +BuildRequires: libexpat-devel +BuildRequires: libffi-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libGL-devel +BuildRequires: libglib-devel +BuildRequires: libgmp-devel +BuildRequires: libgnutls-devel +BuildRequires: libgtk-devel +BuildRequires: liblzma-devel +BuildRequires: libnettle-devel +BuildRequires: libpango-devel +BuildRequires: libpixman-devel +BuildRequires: libpng14-devel +BuildRequires: libpng-devel +BuildRequires: libpthread-stubs-devel +BuildRequires: libselinux-devel +BuildRequires: libsoup-devel +BuildRequires: libssp-devel +BuildRequires: libstdc++6-devel +BuildRequires: libtasn1-devel +BuildRequires: libuuid-devel +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libxcb-devel +BuildRequires: libXdmcp-devel +BuildRequires: libxml2-devel +BuildRequires: libXrender-devel +BuildRequires: libz-devel +BuildRequires: p11-kit-devel +BuildRequires: pkg-config +BuildRequires: udev-devel +## AUTOBUILDREQ-END +BuildRequires: intltool +BuildRequires: perl(XML::Parser) +BuildRequires: libavahi-gtk3-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The Easy Publish and Consume library provides an easy method to: + +* publish data using HTTPS: EpcPublisher +* announce that information via DNS-SD: EpcDispatcher +* find that information: EpcConsumer +* and finally consume it + +You can use this library as a key/value store published to the network, using encryption, authentication and service discovery. + +%package devel +Group: Development/Libraries +Summary: Libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Easy Publish and Consume Library. + +This package contains libraries and header files need for development. + +%package apidocs +Group: Documentation +Summary: Easy Publish and Consume Library API documentation +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: gtk-doc + +%description apidocs +Easy Publish and Consume Library. + +This package includes the %{name} API documentation. + +%prep +%setup -q + +%build +%configure \ + --enable-static=no +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +# package fails to compile using smp_mflags +make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +make DESTDIR=%{buildroot} INSTALL="install -p" install +find %{buildroot} -name '*.la' -exec rm -f {} ';' +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(-,root,root) +%{_libdir}/libepc-1.0.so.* +%{_libdir}/libepc-ui-1.0.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libepc-1.0 +%dir %{_includedir}/libepc-1.0/libepc +%{_includedir}/libepc-1.0/libepc/*.h +%dir %{_includedir}/libepc-ui-1.0 +%dir %{_includedir}/libepc-ui-1.0/libepc-ui +%{_includedir}/libepc-ui-1.0/libepc-ui/*.h +%{_libdir}/libepc-1.0.so +%{_libdir}/libepc-ui-1.0.so +%{_libdir}/pkgconfig/libepc-1.0.pc +%{_libdir}/pkgconfig/libepc-ui-1.0.pc +%doc ChangeLog NEWS README + +%files apidocs +%defattr(-,root,root) +%doc %{_datadir}/gtk-doc/html/libepc-1.0 + +%changelog +* Tue Aug 14 2012 Silvan Calarco 0.4.4-1mamba +- update to 0.4.4 + +* Tue Mar 22 2011 gil 0.3.11-1mamba +- package created by autospec