%define github_owner cern-mig %define github_name c-dirq Summary: C implementation of the simple directory queue algorithm Name: libdirq Version: 0.4 Release: 1%{?dist} License: ASL 2.0 URL: https://github.com/%{github_owner}/%{github_name}/ Group: System Environment/Libraries Source0: https://github.com/%{github_owner}/%{github_name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: perl BuildRequires: perl-No-Worries BuildRequires: /usr/bin/pod2html %description The goal of this library is to offer a "simple" queue system using the underlying filesystem for storage, security and to prevent race conditions via atomic operations. It focuses on simplicity, robustness and scalability. Multiple concurrent readers and writers can interact with the same queue. Other implementations of the same algorithm exist so readers and writers can be written in different programming languages. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains header files, libraries and documentation for developing programs using the %{name} library. %package static Summary: Static libraries for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description static The %{name}-static package contains static libraries for developing programs using the %{name} library. %prep %setup -q -n %{github_name}-%{version} ./configure --includedir=%{_includedir} --libdir=%{_libdir} --mandir=%{_mandir} %build make %{?_smp_mflags} make -C doc all clean %check make test %install make install INSTALLROOT=%{buildroot} %clean make clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc CHANGES DESIGN LICENSE README doc/dirq.html src/dqt.c %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_mandir}/*/* %files static %defattr(-,root,root,-) %{_libdir}/*.a %changelog * Mon Nov 14 2016 Lionel Cons - 0.4-1 - Initial Fedora/EPEL packaging.