public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libloc] f43: 0.9.20 bump
@ 2026-10-27 13:58
0 siblings, 0 replies; only message in thread
From: @ 2026-10-27 13:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libloc
Branch : f43
Commit : bae7e60ca7f030de6c1d38f8d04a89443e790a0d
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-10-27T14:58:34+01:00
Stats : +108/-15 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/libloc/c/bae7e60ca7f030de6c1d38f8d04a89443e790a0d?branch=f43
Log:
0.9.20 bump
---
diff --git a/.gitignore b/.gitignore
index c0289c7..1a143d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/libloc-0.9.17.tar.gz
/libloc-0.9.18.tar.gz
/libloc-0.9.19.tar.gz
+/libloc-0.9.20.tar.gz
diff --git a/libloc-0.9.20-configure-Add-without-cron-to-disable-installing-the.patch b/libloc-0.9.20-configure-Add-without-cron-to-disable-installing-the.patch
new file mode 100644
index 0000000..007f960
--- /dev/null
+++ b/libloc-0.9.20-configure-Add-without-cron-to-disable-installing-the.patch
@@ -0,0 +1,59 @@
+From d9787b1bd8f5c542c6553544c410a9a792a1687e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Tue, 27 Oct 2026 13:59:48 +0100
+Subject: [PATCH] configure: Add --without-cron to disable installing the cron
+ job
+
+Operarting systems that supports only systemd, do not need to install
+the cron job. This build-time options enables them not to install the
+cron job.
+---
+ Makefile.am | 6 ++++--
+ configure.ac | 8 ++++++++
+ 2 files changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 54e8ee3..797fd73 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -403,14 +403,16 @@ INSTALL_DIRS += \
+ $(systemdsystemunitdir)
+ endif
+
+-# The cron job is always being installed. It does nothing if systemd is
+-# running, so that the database is also being updated on systems that have
++# The cron job does nothing if systemd is running,
++# so that the database is also being updated on systems that have
+ # the units, but that have been booted with something else.
++if HAVE_CRON
+ cron_daily_SCRIPTS = \
+ src/cron/location-update
+
+ CLEANFILES += \
+ $(cron_daily_SCRIPTS)
++endif
+
+ EXTRA_DIST += \
+ src/cron/location-update.in \
+diff --git a/configure.ac b/configure.ac
+index 84e25ac..3a16f0d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -323,6 +323,14 @@ AC_DEFINE_UNQUOTED([LIBLOC_DEFAULT_DATABASE_PATH], ["${with_database_path}"],
+ [The default path for the database])
+ AC_SUBST([DEFAULT_DATABASE_PATH], [${with_database_path}])
+
++AC_ARG_WITH([cron],
++ AS_HELP_STRING([--without-cron],
++ [do not install the cront jobs that update the database]),
++ [], [with_cron=auto]
++)
++AS_IF([test "x$with_cron" != "xno"], [have_cron=yes], [have_cron="no"])
++AM_CONDITIONAL(HAVE_CRON, [test "x$have_cron" = "xyes"])
++
+ AC_ARG_WITH([systemd],
+ AS_HELP_STRING([--with-systemd],
+ [install the systemd units that update the database @<:@default=auto@:>@]),
+--
+2.56.0
+
diff --git a/libloc.spec b/libloc.spec
index cdfb123..e9a72a7 100644
--- a/libloc.spec
+++ b/libloc.spec
@@ -1,12 +1,15 @@
Name: libloc
-Version: 0.9.19
+Version: 0.9.20
Release: 1%{?dist}
Summary: Library to determine a location of an IP address in the Internet
# bash-completion/location: LGPL-2.1-or-later
# COPYING: LGPL-2.1 text
# data/database.db: CC-BY-SA-4.0
+# examples/c/lookup.c: LGPL-2.1-or-later
# man/libloc.txt: LGPL-2.1-or-later
-# po/de.po: "same as libloc"
+# po/de.po: "same license as the libloc package"
+# po/lo.po: "same license as the PACKAGE package"
+# po/ka.po: "same license as the libloc package"
# src/address.c: LGPL-2.1-or-later
# src/as.c: LGPL-2.1-or-later
# src/as-list.c: LGPL-2.1-or-later
@@ -69,31 +72,47 @@ Summary: Library to determine a location of an IP address in the Internet
# m4/attributes.m4: GPL-2.0-or-later WITH Autoconf-exception-macro
# m4/ax_prog_lua_modules.m4: FSFAP
# src/perl/Makefile.PL: "lgpl" (probably a mistake)
-# src/test-address.c: GPL-2.0-or-later
-# src/test-as.c: GPL-2.0-or-later
-# src/test-country.c: GPL-2.0-or-later
-# src/test-database.c: GPL-2.0-or-later
-# src/test-libloc.c: GPL-2.0-or-later
-# src/test-network.c: GPL-2.0-or-later
-# src/test-network-list.c: GPL-2.0-or-later
-# src/test-signature.c: GPL-2.0-or-later
-# src/test-stringpool.c: GPL-2.0-or-later
+# tests/libloc/address.c: GPL-2.0-or-later
+# tests/libloc/as.c: GPL-2.0-or-later
+# tests/libloc/as-list.c: LGPL-2.1-or-later
+# tests/libloc/country.c: GPL-2.0-or-later
+# tests/libloc/country-list.c: LGPL-2.1-or-later
+# tests/libloc/database.c: GPL-2.0-or-later
+# tests/libloc/enumerator.c: LGPL-2.1-or-later
+# tests/libloc/main.c: GPL-2.0-or-later
+# tests/libloc/network.c: GPL-2.0-or-later
+# tests/libloc/network-list.c: GPL-2.0-or-later
+# tests/libloc/reload.c: LGPL-2.1-or-later
+# tests/libloc/signature.c: GPL-2.0-or-later
+# tests/libloc/stringpool.c: GPL-2.0-or-later
+# tests/libloc/threads.c: LGPL-2.1-or-later
# tests/lua/main.lua.in: LGPL-2.1-or-later
+# tests/python/as.py: LGPL-2.1-or-later
# tests/python/country.py: LGPL-2.1-or-later
+# tests/python/network.py: LGPL-2.1-or-later
# tests/python/networks-dedup.py: LGPL-2.1-or-later
# tests/python/test-database.py: LGPL-2.1-or-later
+# tests/python/test-downloader.py: LGPL-2.1-or-later
# tests/python/test-export.py: LGPL-2.1-or-later
+# tests/python/test-gil.py: LGPL-2.1-or-later
## Unbundled, then used only at build-time, not in any binary package
# m4/ax_prog_perl_modules.m4: FSFAP
# m4/ld-version-script.m4: FSFULLR
## Not used and not in any binary package
+# contrib/rpm/build.sh: LGPL-2.1-or-later
# debian/copyright: LGPL-2.1-or-later
# src/cron/location-update.in: LGPL-2.1-or-later
+# tests/fuzz/address.c: LGPL-2.1-or-later
+# tests/fuzz/database.c: LGPL-2.1-or-later
+# tests/fuzz/fuzz.h: LGPL-2.1-or-later
# tools/copy.py: LGPL-2.1-or-later
License: LGPL-2.1-or-later
SourceLicense: LGPL-2.1-or-later AND CC-BY-SA-4.0 AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-2.0-or-later AND GPL-2.0-or-later WITH Autoconf-exception-macro AND FSFAP AND FSFULLR
-URL: https://location.ipfire.org/
+URL: https://www.ipfire.org/location/
Source0: https://source.ipfire.org/releases/%{name}/%{name}-%{version}.tar.gz
+# Stop installing a cron job, proposed upstream,
+# <https://bugzilla.ipfire.org/show_bug.cgi?id=14728>
+Patch0: libloc-0.9.20-configure-Add-without-cron-to-disable-installing-the.patch
BuildRequires: asciidoc
BuildRequires: autoconf >= 2.60
# autoconf-archive for unbundled m4/ax_prog_perl_modules.m4
@@ -143,6 +162,8 @@ BuildRequires: perl(XSLoader)
# lua executable is used by m4/ax_prog_lua_modules.m4, but pointless because
# LuaUnit <https://github.com/bluebird75/luaunit> is not yet packaged.
BuildRequires: perl(Test::More)
+# python3-pytest for unittest
+BuildRequires: python3-pytest
%description
This is a lightweight library which can be used to query the IPFire Location
@@ -218,9 +239,13 @@ autoreconf -fi -I%{_datadir}/gettext/m4 -I%{_datadir}/gnulib/m4
%global default_database_file %{_sharedstatedir}/location/database.db
%{configure} \
--disable-analyzer \
+ --disable-asan \
--enable-bash-completion \
+ --disable-coverage \
+ --without-cron \
--with-database-path=%{default_database_file} \
--enable-debug \
+ --disable-fuzzing \
--enable-largefile \
--enable-ld-version-script \
--enable-lua \
@@ -231,7 +256,8 @@ autoreconf -fi -I%{_datadir}/gettext/m4 -I%{_datadir}/gnulib/m4
--disable-silent-rules \
--disable-static \
--with-systemd \
- --with-systemdsystemunitdir=%{_unitdir}
+ --with-systemdsystemunitdir=%{_unitdir} \
+ --disable-ubsan
%{make_build}
%install
@@ -261,7 +287,7 @@ chmod 0644 %{buildroot}/%{python3_sitelib}/%{name}-%{version}.dist-info/METADATA
%find_lang %{name}
%check
-unset LOC_LOG
+unset LOC_LOG TEST_DATA_DIR
make check %{?_smp_mflags} || (cat ./test-suite.log; exit 1)
%post tools
@@ -280,6 +306,7 @@ make check %{?_smp_mflags} || (cat ./test-suite.log; exit 1)
%{_libdir}/libloc.so.1.*
%files devel
+%doc examples/c/*.c
%{_includedir}/libloc
%{_libdir}/libloc.so
%{_libdir}/pkgconfig
@@ -288,6 +315,7 @@ make check %{?_smp_mflags} || (cat ./test-suite.log; exit 1)
%files -n lua-%{name}
%{lua_libdir}/location.so
+%{_mandir}/man3/lua-location.3*
%files -n perl-%{name}
%{perl_vendorarch}/auto/Location
@@ -299,6 +327,7 @@ make check %{?_smp_mflags} || (cat ./test-suite.log; exit 1)
%{python3_sitelib}/location
%{python3_sitelib}/%{name}-%{version}.dist-info
%{python3_sitearch}/_location.so
+%{_mandir}/man3/python-location.3*
# The default path is compiled into _location.so Python module. Not into
# C libloc.so. Thus the database belongs here, to Python package.
%dir %{_sharedstatedir}/location
@@ -309,12 +338,16 @@ make check %{?_smp_mflags} || (cat ./test-suite.log; exit 1)
%files tools
%{_bindir}/location*
%{_mandir}/man1/location.1*
+%{_mandir}/man1/location-importer.1*
%{_unitdir}/location-update.*
%files tools-bash-completion
%{_datadir}/bash-completion/completions/location
%changelog
+* Tue Oct 27 2026 Petr Pisar <ppisar@redhat.com> - 0.9.20-1
+- 0.9.20 bump
+
* Wed Jun 03 2026 Petr Pisar <ppisar@redhat.com> - 0.9.19-1
- 0.9.19 bump
diff --git a/sources b/sources
index 4bcc465..ea87568 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libloc-0.9.19.tar.gz) = f3f4eaa049f61da13886b48ae7742d20233805ea02cde2ea011bb52279dffcf8307f8598cf35e60d6c38bcdd52ba287f18ab39198132758249c5dc71d6aba1ba
+SHA512 (libloc-0.9.20.tar.gz) = 98496506bf2ad10435b43b4ae985bb13be29f6809177eb180ea927a541025aae02ff4bc1542389d2199a3a33cb6f43c21cd0c2c523cf3ec08be9173441e820d4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-27 13:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27 13:58 [rpms/libloc] f43: 0.9.20 bump
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox