File libsyncdir.spec of Package libsyncdir

Name: libsyncdir
Summary: Library for synchronous directory access
Version: 1.0
Release: 3
License: GPL-2.0+
Group: System/Libraries
Source: http://untroubled.org/syncdir/syncdir-%{version}.tar.gz
URL: http://untroubled.org/syncdir/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Provides an alternate implementation for open, link, rename, and unlink
that executes a fsync on any modified directories.

%prep
%setup -n syncdir-%{version}

%build
make CFLAGS="%{optflags} -g" LDFLAGS=-g

%install
mkdir -p "%{buildroot}%{_libdir}"
make prefix="%{buildroot}%{_prefix}" libdir="%{buildroot}%{_libdir}" install
rm -f "%{buildroot}%{_libdir}"/libsyncdir.a
%__debug_install_post

%clean
[ "%{buildroot}" = "/" ] || rm -rf "%{buildroot}"

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libsyncdir.so

%changelog
openSUSE Build Service is sponsored by