Skip to content

Commit 968e3fd

Browse files
committed
Sync up specfile.
1 parent 2aca66c commit 968e3fd

File tree

1 file changed

+57
-66
lines changed

1 file changed

+57
-66
lines changed

xml-security-c.spec

Lines changed: 57 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
Name: xml-security-c
2-
Version: 2.0.4
3-
Release: 1
4-
Summary: Shibboleth XML Security C++ Library
5-
Group: Development/Libraries/C and C++
6-
Vendor: Shibboleth Consortium
7-
License: Apache-2.0
8-
URL: http://www.opensaml.org/
9-
Source: %{name}-%{version}.tar.bz2
10-
BuildRoot: %{_tmppath}/%{name}-%{version}-build
11-
12-
%{?_with_xalan:BuildRequires: libxalan-c-devel >= 1.11}
13-
BuildRequires: libxerces-c-devel >= 3.2
14-
BuildRequires: openssl-devel gcc-c++ pkgconfig
1+
%define compname xml-security-c
2+
%define libname lib%{compname}20
3+
%define develname lib%{compname}-devel
4+
%define utilname %{compname}-bin
5+
6+
Name: %{libname}
7+
Version: 3.0.0
8+
Release: 1%{?dist}
9+
Summary: XML security C++ library
10+
Group: Development/Libraries/C and C++
11+
License: Apache-2.0
12+
URL: https://shibboleth.net/downloads/xml-security-c
13+
Source0: %{compname}-%{version}.tar.bz2
14+
Provides: %{compname} = %{version}-%{release}
15+
Obsoletes: %{compname} < %{version}-%{release}
16+
17+
BuildRequires: libxerces-c-devel >= 3.2
18+
BuildRequires: openssl-devel gcc-c++ pkgconfig
1519
%if "%{_vendor}" == "redhat"
1620
BuildRequires: redhat-rpm-config
1721
%endif
@@ -22,95 +26,82 @@ BuildRequires: gdb
2226

2327
%description
2428
The xml-security-c library is a C++ implementation of the XML Digital Signature
25-
and Encryption specifications. The library makes use of the Apache XML project's
26-
Xerces-C XML Parser and Xalan-C XSLT processor. The latter is used for processing
27-
XPath and XSLT transforms.
29+
and Encryption specifications. The library makes use of the Apache Xerces-C XML Parser.
2830

29-
%package -n xml-security-c-bin
30-
Summary: Utilities for Shibboleth XML Security C++ Library
31-
Group: Development/Libraries/C and C++
31+
The main package contains just the shared library.
3232

33-
%description -n xml-security-c-bin
33+
%package -n %{utilname}
34+
Summary: Utilities for XML security C++ library
35+
Group: Development/Libraries/C and C++
36+
37+
%description -n %{utilname}
3438
The xml-security-c library is a C++ implementation of the XML Digital Signature
35-
and Encryption specifications. The library makes use of the Apache XML project's
36-
Xerces-C XML Parser and Xalan-C XSLT processor. The latter is used for processing
37-
XPath and XSLT transforms.
39+
and Encryption specifications. The library makes use of the Apache Xerces-C XML Parser.
3840

3941
This package contains the utility programs.
4042

41-
%package -n libxml-security-c20
42-
Summary: Shibboleth XML Security C++ Library
43-
Group: Development/Libraries/C and C++
44-
Provides: xml-security-c = %{version}-%{release}
43+
%package -n %{develname}
44+
Summary: Development files for the C++ XML security library
45+
Group: Development/Libraries/C and C++
46+
Requires: %{libname} = %{version}-%{release}
47+
Requires: openssl-devel
48+
Requires: libxerces-c-devel >= 3.2
49+
Provides: %{compname}-devel = %{version}-%{release}
4550

46-
%description -n libxml-security-c20
47-
The xml-security-c library is a C++ implementation of the XML Digital Signature
48-
and Encryption specifications. The library makes use of the Apache XML project's
49-
Xerces-C XML Parser and Xalan-C XSLT processor. The latter is used for processing
50-
XPath and XSLT transforms.
51-
52-
This package contains just the shared library.
53-
54-
%package -n libxml-security-c-devel
55-
Summary: Development files for the Shibboleth C++ XML Security Library
56-
Group: Development/Libraries/C and C++
57-
Requires: libxml-security-c20 = %{version}-%{release}
58-
Requires: openssl-devel
59-
Requires: libxerces-c-devel >= 3.2
60-
%{?_with_xalan:Requires: libxalan-c-devel >= 1.11}
61-
Provides: xml-security-c-devel = %{version}-%{release}
62-
63-
%description -n libxml-security-c-devel
51+
%description -n %{develname}
6452
The xml-security-c library is a C++ implementation of the XML Digital Signature
65-
and Encryption specifications. The library makes use of the Apache XML project's
66-
Xerces-C XML Parser and Xalan-C XSLT processor. The latter is used for processing
67-
XPath and XSLT transforms.
53+
and Encryption specifications. The library makes use of the Apache Xerces-C XML Parser.
6854

6955
This package includes files needed for development with xml-security-c.
7056

7157
%prep
72-
%setup -q
58+
%setup -q -n %{compname}-%{version}
7359

7460
%build
75-
%configure --with-openssl %{!?_with_xalan: --without-xalan} %{!?_enable_xkms: --disable-xkms}
61+
%configure --with-openssl
7662
%{__make}
7763

7864
%install
79-
%{__make} install DESTDIR=$RPM_BUILD_ROOT
65+
%make_install
8066

8167
%clean
8268
%{__rm} -rf $RPM_BUILD_ROOT
8369

8470

85-
%post -n libxml-security-c20 -p /sbin/ldconfig
71+
%post -p /sbin/ldconfig
8672

87-
%postun -n libxml-security-c20 -p /sbin/ldconfig
73+
%postun -p /sbin/ldconfig
8874

89-
%files -n xml-security-c-bin
75+
%files -n %{utilname}
9076
%defattr(-,root,root,-)
9177
%{_bindir}/*
9278

93-
%files -n libxml-security-c20
79+
%files
9480
%defattr(-,root,root,-)
9581
%{_libdir}/*.so.*
9682

97-
%files -n libxml-security-c-devel
83+
%files -n %{develname}
9884
%defattr(-,root,root,-)
9985
%{_includedir}/*
10086
%{_libdir}/*.so
10187
%{_libdir}/pkgconfig/xml-security-c.pc
10288
%exclude %{_libdir}/*.la
10389

10490
%changelog
105-
* Thu Jun 27 2024 Scott Cantor <[email protected]> 2.0.4-1
106-
- Adjust for migration to Shibboleth Project
107-
108-
* Thu Oct 14 2021 Scott Cantor <[email protected]> 2.0.3-1
109-
- Bump version for OpenSSL 3 fix
110-
111-
* Fri Sep 27 2019 Scott Cantor <[email protected]> 2.0.0-2
112-
- Add CentOS 8 dependency rule
113-
- Remove Solaris exclusions
91+
* Wed Oct 16 2024 Scott Cantor <[email protected]> 3.0.0-1
92+
- Update to version 3.0.0
93+
- Sanitize Apache references in metadata
94+
- Remove Xalan/XKMS references in build
95+
96+
* Sat Jun 17 2023 John W. O'Brien <[email protected]> 2.0.4-2
97+
- Normalize SPEC file whitespace
98+
- Delete obsolete BuildRoot macro
99+
- Conform License field to SPDX License List
100+
- Ensure Source is valid and fetchable
101+
- Adopt %make_install
102+
- Parameterize (sub-)package names
103+
- Replace empty main package with lib sub-package
104+
- Append %dist to Release
114105

115106
* Mon Nov 13 2017 Scott Cantor <[email protected]> 2.0.0-1
116107
- update to 2.0.0

0 commit comments

Comments
 (0)