## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %if %{undefined package_revision} %global package_revision 1 %endif %if %{undefined make_build} %global make_build %{__make} %{?_smp_mflags} %endif %if %{undefined autosetup} %global autosetup %setup -q %endif %global release_version 1.0.63 %global gittag v%{release_version} %if %{undefined make_check} %global make_check 1 %endif # # main package # Summary: Fast User Level LOCK (FULLOCK) library for C/C++ Name: libfullock Version: %{release_version} Release: %autorelease License: MIT URL: https://github.com/yahoojapan/fullock Source0: https://github.com/yahoojapan/fullock/archive/%{gittag}/fullock-%{release_version}.tar.gz BuildRequires: git-core gcc-c++ make libtool %description fullock is an open-source software for user level lock library sup- ported by Yahoo! JAPAN. It runs on user level and provides two types lock. One is a shared reader/writer lock which has the same function- ality with pthread_rwlock. Another is a shared mutex lock which also has the same functionality with pthread_mutex. Here is primary fullock features: 1. fullock is a thread safety library which can be used for multi- processing as well as for multi-threading. 2. fullock releases a mutex lock safely even if a lock owner process exit with 0 in which case OS doesn't release the lock. 3. fullock provides a shared reader/writer lock. A lock owner thread can get another lock again without deadlock. Please visit our website and get more details at: https://github.com/yahoojapan/fullock %prep %autosetup -n fullock-%{version} %build ./autogen.sh %configure --disable-static %make_build %install %make_install find %{buildroot} -name '*.la' -exec rm -f {} ';' %if %{make_check} %check %{__make} check %endif %if %{defined ldconfig_scriptlets} %ldconfig_scriptlets %else %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %endif %files %if 0%{?rhel} == 6 %doc COPYING %defattr(-,root,root) %else %license COPYING %endif %doc README AUTHORS ChangeLog %{_libdir}/libfullock.so.1* %{_mandir}/man3/* # # devel package # %package devel Summary: Fast User Level LOCK (FULLOCK) library for C/C++ (development) Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development package for building with libfullock shared library. This package has header files and symbols for it. %files devel %if 0%{?rhel} == 6 %defattr(-,root,root) %endif %doc README AUTHORS ChangeLog %{_includedir}/* %{_libdir}/libfullock.so %{_libdir}/pkgconfig/*.pc %changelog ## START: Generated by rpmautospec * Thu Jul 24 2025 Fedora Release Engineering - 1.0.63-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jul 17 2025 Hirotaka Wakabayashi - 1.0.63-1 - 1.0.63 * Fri Feb 07 2025 Hirotaka Wakabayashi - 1.0.62-1 - Updates the version * Fri Jan 17 2025 Fedora Release Engineering - 1.0.61-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Nov 25 2024 Hirotaka Wakabayashi - 1.0.61-2 - Update the version * Mon Nov 25 2024 Hirotaka Wakabayashi - 1.0.61-1 - Update the version * Mon Nov 25 2024 Hirotaka Wakabayashi - 1.0.59-4 - Avoid conflicting release and changelogs ## END: Generated by rpmautospec