|
1 | | -Summary: A python interface to libconfig |
| 1 | +Summary: A Python interface to libconfig |
2 | 2 | Name: python-libconfig |
3 | | -Version: 0.0.4 |
| 3 | +Version: 0.2.1 |
4 | 4 | Release: 1%{?dist} |
5 | 5 | License: bsd |
6 | 6 | Group: Development/Libraries |
7 | 7 | Source0: %{name}-%{version}.tar.gz |
8 | 8 | URL: https://github.com/cnangel/python-libconfig |
9 | 9 |
|
10 | 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
11 | | -BuildRequires: boost-devel python-devel libconfig libconfig-devel |
| 11 | +BuildRequires: boost-devel python3-devel libconfig libconfig-devel gcc-c++ |
12 | 12 | Requires: libconfig |
13 | 13 |
|
14 | 14 | %description |
15 | | -Python interface to libconfig |
16 | | - |
17 | | -python-libconfig is an interface to the popular config for Python. |
| 15 | +Python bindings to the C++ library libconfig (1.1.x ~ 1.8.x). |
| 16 | +Supports reading, writing, and manipulating configuration files |
| 17 | +via the libconfig C++ API through Boost.Python. |
18 | 18 |
|
19 | 19 | %prep |
20 | 20 | %setup -q -n %{name}-%{version} |
21 | 21 |
|
22 | 22 | %build |
23 | | -rm -f doc/*~ |
24 | 23 | export libdirname=%{_lib} |
25 | | -CFLAGS="$RPM_OPT_FLAGS" python setup.py build |
| 24 | +CFLAGS="$RPM_OPT_FLAGS" python3 setup.py build |
26 | 25 |
|
27 | 26 | %install |
28 | 27 | rm -rf $RPM_BUILD_ROOT |
29 | 28 |
|
30 | 29 | export libdirname=%{_lib} |
31 | | -python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES |
| 30 | +python3 setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES |
32 | 31 |
|
33 | 32 | %clean |
34 | 33 | rm -rf $RPM_BUILD_ROOT |
35 | 34 |
|
36 | 35 | %files -f INSTALLED_FILES |
37 | 36 | %defattr(-,root,root) |
38 | | -%doc README |
| 37 | +%doc README.md |
39 | 38 |
|
40 | 39 | %changelog |
41 | | -* Sat Mar 18 2023 Cnangel <cnangel@gmail.com> 0.0.4-1 |
42 | | -- fix root path issue. |
43 | | -* Mon Nov 04 2019 Cnangel <cnangel@gmail.com> 0.0.3-1 |
44 | | -- update for support python3 |
45 | | -* Mon Apr 14 2014 Cnangel <cnangel@gmail.com> 0.0.2-1 |
46 | | -- modify some deps method |
| 40 | +* Sat May 16 2026 Cnangel <cnangel@gmail.com> 0.2.1-1 |
| 41 | +- Fix version guards for multi-version libconfig compatibility (1.1.x ~ 1.8.x) |
| 42 | +- Fix isString() implementation to use getType() instead of non-existent API |
| 43 | + |
| 44 | +* Fri May 15 2026 Cnangel <cnangel@gmail.com> 0.2.0-1 |
| 45 | +- Upgrade to support libconfig 1.1.x ~ 1.8.x |
| 46 | +- Export Setting class with full API |
| 47 | +- Add type-safe lookup methods (lookupInt, lookupString, etc.) |
| 48 | +- Add options, format, precision, tab_width, clear |
| 49 | +- Export type/format/option constants |
| 50 | +- Fix bugs: children() shadowed declaration, setValue type dispatch, add* empty path |
| 51 | +- Use setValue with Python type introspection dispatching |
| 52 | + |
47 | 53 | * Fri Apr 16 2010 Cnangel <cnangel@gmail.com> 0.0.1-1 |
48 | | -- build the first spec file |
| 54 | +- Initial build |
0 commit comments