# first two digits of version %global release_version %%(echo %{version} | awk -F. '{print $1"."$2}') Name: libsecret Version: 0.1 Release: 2%{?dist} Summary: Library for storing and retrieving passwords and other secrets License: LGPLv2+ URL: https://live.gnome.org/Libsecret Source0: http://download.gnome.org/sources/libsecret/%{release_version}/libsecret-%{version}.tar.xz BuildRequires: glib2-devel BuildRequires: gobject-introspection-devel BuildRequires: intltool BuildRequires: libgcrypt-devel Provides: bundled(egglib) %description libsecret is a library for storing and retrieving passwords and other secrets. It communicates with the "Secret Service" using DBus. gnome-keyring and KSecretService are both implementations of a Secret Service. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build %configure --disable-static # Parallel make fixed in git: # http://git.gnome.org/browse/libsecret/commit/?id=f327460ef54852f1d18db64d1e185466b6591415 #make %{?_smp_mflags} make %install make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS COPYING NEWS README %{_bindir}/secret-tool %{_libdir}/libsecret-0.so.* %{_libdir}/girepository-1.0/Secret-0.typelib %files devel %{_includedir}/secret-0/ %{_libdir}/libsecret-0.so %{_libdir}/pkgconfig/libsecret-0.pc %{_datadir}/gir-1.0/Secret-0.gir %doc %{_datadir}/gtk-doc/ %changelog * Fri Mar 30 2012 Kalev Lember - 0.1-2 - Add provides bundled(egglib) (#808025) - Use global instead of define * Thu Mar 29 2012 Kalev Lember - 0.1-1 - Initial RPM release