|
| 1 | +%global pkg_name libpkgmanifest |
| 2 | + |
| 3 | +%global forgeurl https://github.com/rpm-software-management/%{pkg_name} |
| 4 | + |
1 | 5 | %global version_major 0 |
2 | 6 | %global version_minor 5 |
3 | 7 | %global version_patch 8 |
4 | 8 |
|
5 | | -Name: libpkgmanifest |
| 9 | +Name: %{pkg_name} |
6 | 10 | Version: %{version_major}.%{version_minor}.%{version_patch} |
7 | | -Release: 1%{?dist} |
| 11 | +Release: %{autorelease} |
| 12 | + |
| 13 | +%forgemeta |
| 14 | + |
8 | 15 | Summary: Library for working with RPM manifests |
9 | 16 | License: LGPL-2.1-or-later |
10 | | -URL: https://github.com/rpm-software-management/libpkgmanifest |
11 | | -Source0: %{url}/archive/%{version}/libpkgmanifest-%{version}.tar.gz |
| 17 | +URL: %{forgeurl} |
| 18 | +Source: %{forgesource} |
12 | 19 |
|
13 | 20 | %bcond_with clang |
14 | 21 | %bcond_with docs |
@@ -42,45 +49,45 @@ BuildRequires: python3dist(sphinx-rtd-theme) |
42 | 49 | %endif |
43 | 50 |
|
44 | 51 | %description |
45 | | -libpkgmanifest is a library for parsing and creating RPM manifests. |
| 52 | +%{name} is a library for parsing and creating RPM manifests. |
46 | 53 | It provides a native C++ API and Python bindings. |
47 | 54 |
|
48 | | -%files -n libpkgmanifest |
49 | | -%{_libdir}/libpkgmanifest.so.0 |
| 55 | +%files -n %{name} |
| 56 | +%{_libdir}/%{name}.so.0 |
50 | 57 | %license LICENSE |
51 | 58 |
|
52 | | -%package -n libpkgmanifest-devel |
53 | | -Summary: Development files for libpkgmanifest |
| 59 | +%package -n %{name}-devel |
| 60 | +Summary: Development files for %{name} |
54 | 61 | License: LGPL-2.1-or-later |
55 | | -Requires: libpkgmanifest%{?_isa} = %{version}-%{release} |
| 62 | +Requires: %{name}%{?_isa} = %{version}-%{release} |
56 | 63 |
|
57 | | -%description -n libpkgmanifest-devel |
58 | | -Development files for libpkgmanifest. |
| 64 | +%description -n %{name}-devel |
| 65 | +Development files for %{name}. |
59 | 66 |
|
60 | | -%files -n libpkgmanifest-devel |
61 | | -%{_includedir}/libpkgmanifest/ |
62 | | -%{_libdir}/libpkgmanifest.so |
63 | | -%{_libdir}/pkgconfig/libpkgmanifest.pc |
| 67 | +%files -n %{name}-devel |
| 68 | +%{_includedir}/%{name}/ |
| 69 | +%{_libdir}/%{name}.so |
| 70 | +%{_libdir}/pkgconfig/%{name}.pc |
64 | 71 | %license LICENSE |
65 | 72 |
|
66 | 73 | %if %{with python} |
67 | | -%package -n python3-libpkgmanifest |
68 | | -%{?python_provide:%python_provide python3-libpkgmanifest} |
69 | | -Summary: Python 3 bindings for the libpkgmanifest library |
| 74 | +%package -n python3-%{name} |
| 75 | +%{?python_provide:%python_provide python3-%{name}} |
| 76 | +Summary: Python 3 bindings for the %{name} library |
70 | 77 | License: LGPL-2.1-or-later |
71 | | -Requires: libpkgmanifest%{?_isa} = %{version}-%{release} |
| 78 | +Requires: %{name}%{?_isa} = %{version}-%{release} |
72 | 79 |
|
73 | | -%description -n python3-libpkgmanifest |
74 | | -Python 3 bindings for the libpkgmanifest library. |
| 80 | +%description -n python3-%{name} |
| 81 | +Python 3 bindings for the %{name} library. |
75 | 82 |
|
76 | | -%files -n python3-libpkgmanifest |
77 | | -%{python3_sitearch}/libpkgmanifest |
78 | | -%{python3_sitearch}/libpkgmanifest-*.dist-info |
| 83 | +%files -n python3-%{name} |
| 84 | +%{python3_sitearch}/%{name} |
| 85 | +%{python3_sitearch}/%{name}-*.dist-info |
79 | 86 | %license LICENSE |
80 | 87 | %endif |
81 | 88 |
|
82 | 89 | %prep |
83 | | -%autosetup -p1 -n libpkgmanifest-%{version} |
| 90 | +%autosetup -p1 -n %{name}-%{version} |
84 | 91 |
|
85 | 92 | %build |
86 | 93 | %cmake \ |
|
0 commit comments